maestro/docker-compose.yml
oss-sync c526adddc2
Some checks failed
CI / build-and-test (push) Has been cancelled
sync: update from private repo (402599f)
2026-06-04 13:41:33 +00:00

40 lines
1.1 KiB
YAML

services:
maestro:
build:
context: .
dockerfile: Dockerfile
image: maestro:latest
container_name: maestro
restart: unless-stopped
ports:
# Auth is optional, so keep the default deployment local-only.
- "127.0.0.1:9876:9876"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
environment:
- NODE_ENV=production
- PORT=9876
- DB_PATH=/data/maestro.db
- WORKTREE_DIR=/workspaces
volumes:
# SQLite DB 永続化
- maestro-data:/data
# エージェントワークスペース永続化
- maestro-workspaces:/workspaces
# 設定ファイル (任意でホストから read-only マウント)
# - ./config.yaml:/app/config.yaml:ro
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:9876/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
maestro-data:
driver: local
maestro-workspaces:
driver: local