Files

55 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2025-04-20 11:29:53 -07:00
services:
2026-07-09 10:19:38 -07:00
checkmate:
build:
context: ../..
dockerfile: docker/Dockerfile
2025-07-29 00:22:14 +05:30
restart: always
ports:
- "52345:52345"
env_file:
- server.env
depends_on:
2026-07-09 10:19:38 -07:00
mongodb:
condition: service_healthy
2026-06-25 11:03:04 -07:00
worker:
2026-07-09 10:19:38 -07:00
build:
context: ../..
dockerfile: docker/Dockerfile
2026-06-25 11:03:04 -07:00
restart: always
ports:
- "52346:52346"
env_file:
- server.env
environment:
QUEUE_MODE: "worker"
HEALTH_PORT: "52346"
2026-06-25 12:29:21 -07:00
stop_grace_period: 30s
2026-06-25 11:03:04 -07:00
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:52346/livez',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))",
]
interval: 15s
timeout: 3s
retries: 3
depends_on:
2026-07-09 10:19:38 -07:00
mongodb:
condition: service_healthy
2025-04-20 11:29:53 -07:00
mongodb:
2026-07-09 10:19:38 -07:00
image: mongo:8.0
2025-04-20 11:29:53 -07:00
restart: always
2026-06-25 11:03:04 -07:00
ports:
- "27017:27017"
command: ["mongod", "--quiet", "--bind_ip_all"]
2025-04-20 11:29:53 -07:00
volumes:
- ./mongo/data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30