47 lines
958 B
YAML
47 lines
958 B
YAML
services:
|
|
fastapi-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "${API_PORT:-8000}:8000"
|
|
env_file: .env
|
|
volumes:
|
|
- opus-data:/data
|
|
depends_on:
|
|
claude-worker:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"python",
|
|
"-c",
|
|
"import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')",
|
|
]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
claude-worker:
|
|
build:
|
|
context: ./worker
|
|
dockerfile: Dockerfile
|
|
expose:
|
|
- "3001"
|
|
env_file: .env
|
|
volumes:
|
|
- opus-data:/data
|
|
- claude-auth:/home/node/.claude
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3001/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
volumes:
|
|
opus-data:
|
|
claude-auth:
|