This commit is contained in:
+7
-5
@@ -16,15 +16,17 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=9876
|
||||
- DB_PATH=/data/maestro.db
|
||||
- DB_PATH=/app/data/maestro.db
|
||||
- WORKTREE_DIR=/workspaces
|
||||
volumes:
|
||||
# SQLite DB 永続化
|
||||
- maestro-data:/data
|
||||
# アプリの状態 (DB / users / skills / secrets) を永続化。
|
||||
# アプリは WORKDIR /app からの相対 ./data に書くので /app/data にマウントする。
|
||||
- maestro-data:/app/data
|
||||
# エージェントワークスペース永続化
|
||||
- maestro-workspaces:/workspaces
|
||||
# 設定ファイル (任意でホストから read-only マウント)
|
||||
# - ./config.yaml:/app/config.yaml:ro
|
||||
# config.yaml をホストから永続化したい場合は bind-mount (書き込み可)。
|
||||
# Settings UI / npm run setup で書き換えるなら :ro は付けないこと。
|
||||
# - ./config.yaml:/app/config.yaml
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "fetch('http://localhost:9876/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user