File size: 584 Bytes
c4ae742 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | services:
app:
build:
context: .
dockerfile: Dockerfile
image: task-optimizer:latest
container_name: task-optimizer
ports:
- "3001:3001"
volumes:
- ./data:/app/data
env_file:
- path: .env.example
required: true
- path: .env
required: false
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3001/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
|