23 lines
553 B
YAML
23 lines
553 B
YAML
services:
|
|
gemini-draw:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: gemini-draw
|
|
init: true
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.local
|
|
environment:
|
|
API_PORT: "3002"
|
|
API_AUTH_DISABLED: "false"
|
|
ports:
|
|
- "3000:3000"
|
|
- "3002:3002"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3002/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|