Dockerize client, server, and postgres database for production with container healthchecks

This commit is contained in:
2026-05-28 12:23:50 +02:00
parent 9a2052f623
commit 572d38e490
10 changed files with 176 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import {
bufferToBase64
} from './crypto.js'
const API_BASE = 'http://localhost:5000/api/auth'
const API_BASE = '/api/auth'
// Shared in-memory container for the active user's session master key
let activeMasterKey: ArrayBuffer | null = null
+1 -1
View File
@@ -2,7 +2,7 @@ import { db, type LocalLogbook } from './db.js'
import { getActiveMasterKey } from './auth.js'
import { encryptJson, decryptJson } from './crypto.js'
const API_BASE = 'http://localhost:5000/api/logbooks'
const API_BASE = '/api/logbooks'
export interface DecryptedLogbook {
id: string
+1 -1
View File
@@ -1,7 +1,7 @@
import { db } from './db.js'
import { getActiveMasterKey } from './auth.js'
const API_BASE = 'http://localhost:5000/api/sync'
const API_BASE = '/api/sync'
const syncingLogbooks = new Set<string>()
let isSyncing = false