2025-04-20 11:29:53 -07:00
|
|
|
services:
|
|
|
|
|
client:
|
2025-06-10 14:19:57 +08:00
|
|
|
image: ghcr.io/bluewave-labs/checkmate-client:latest
|
2025-04-20 11:29:53 -07:00
|
|
|
restart: always
|
|
|
|
|
environment:
|
2025-05-13 09:15:41 -07:00
|
|
|
UPTIME_APP_API_BASE_URL: "http://localhost:52345/api/v1"
|
2025-05-06 18:46:35 -07:00
|
|
|
UPTIME_APP_CLIENT_HOST: "http://localhost"
|
2025-04-20 11:29:53 -07:00
|
|
|
ports:
|
|
|
|
|
- "80:80"
|
|
|
|
|
- "443:443"
|
|
|
|
|
depends_on:
|
|
|
|
|
- server
|
|
|
|
|
server:
|
2025-06-05 10:44:27 +08:00
|
|
|
image: ghcr.io/bluewave-labs/checkmate-backend:latest
|
2025-04-20 11:29:53 -07:00
|
|
|
restart: always
|
|
|
|
|
ports:
|
2025-05-10 16:24:39 -07:00
|
|
|
- "52345:52345"
|
2025-04-20 11:29:53 -07:00
|
|
|
depends_on:
|
|
|
|
|
- redis
|
|
|
|
|
- mongodb
|
|
|
|
|
environment:
|
2025-04-28 12:25:02 -07:00
|
|
|
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db?replicaSet=rs0
|
|
|
|
|
- REDIS_URL=redis://redis:6379
|
2025-04-25 12:51:29 -07:00
|
|
|
- CLIENT_HOST=http://localhost
|
2025-05-13 09:59:21 -07:00
|
|
|
- JWT_SECRET=my_secret
|
2025-04-20 11:29:53 -07:00
|
|
|
# volumes:
|
|
|
|
|
# - /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
redis:
|
2025-06-05 10:44:27 +08:00
|
|
|
image: ghcr.io/bluewave-labs/checkmate-redis:latest
|
2025-04-20 11:29:53 -07:00
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- ./redis/data:/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 5s
|
|
|
|
|
mongodb:
|
2025-06-05 10:44:27 +08:00
|
|
|
image: ghcr.io/bluewave-labs/checkmate-mongo:latest
|
2025-04-20 11:29:53 -07:00
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- ./mongo/data:/data/db
|
2025-04-28 12:25:02 -07:00
|
|
|
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
2025-04-28 11:51:37 -07:00
|
|
|
healthcheck:
|
|
|
|
|
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 30s
|
|
|
|
|
start_period: 0s
|
|
|
|
|
start_interval: 1s
|
|
|
|
|
retries: 30
|