Files
Checkmate/docker/dev/docker-compose.yaml
T

61 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2025-04-20 11:29:53 -07:00
services:
2025-07-29 00:22:14 +05:30
client:
image: uptime_client:latest
2025-04-20 11:29:53 -07:00
restart: always
2025-07-27 03:47:30 +05:30
ports:
2025-07-29 00:22:14 +05:30
- "80:80"
environment:
UPTIME_APP_API_BASE_URL: "http://localhost:52345/api/v1"
UPTIME_APP_CLIENT_HOST: "http://localhost"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d/
depends_on:
- server
server:
image: uptime_server:latest
restart: always
ports:
- "52345:52345"
env_file:
- server.env
depends_on:
- mongodb
2026-06-25 11:03:04 -07:00
worker:
image: uptime_server:latest
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:
- mongodb
2025-04-20 11:29:53 -07:00
mongodb:
2025-07-29 00:22:14 +05:30
image: uptime_mongo:latest
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