Files
Checkmate/Docker/prod/docker-compose.yaml
T

56 lines
1.3 KiB
YAML
Raw Normal View History

2024-06-13 15:09:20 -07:00
services:
2024-06-24 16:04:06 -07:00
client:
image: uptime_client:latest
2024-12-23 09:49:01 -08:00
restart: always
2024-10-25 12:03:38 +08:00
environment:
2024-12-05 10:24:50 +08:00
UPTIME_APP_API_BASE_URL: "https://checkmate-demo.bluewavelabs.ca/api/v1"
2024-06-24 16:04:06 -07:00
ports:
2024-08-18 19:17:50 -07:00
- "80:80"
2024-08-23 09:46:45 -07:00
- "443:443"
2024-06-24 16:04:06 -07:00
depends_on:
- server
2024-08-23 09:46:45 -07:00
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d/:ro
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
certbot:
image: certbot/certbot:latest
2024-12-23 09:49:01 -08:00
restart: always
2024-08-23 09:46:45 -07:00
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
2024-06-13 15:09:20 -07:00
server:
image: uptime_server:latest
2024-12-23 09:49:01 -08:00
restart: always
2024-06-13 15:09:20 -07:00
ports:
- "5000:5000"
env_file:
2024-06-24 16:04:06 -07:00
- server.env
2024-06-13 15:09:20 -07:00
depends_on:
- redis
- mongodb
redis:
image: uptime_redis:latest
2024-12-23 09:49:01 -08:00
restart: always
ports:
- "6379:6379"
volumes:
- ./redis/data:/data
2025-01-02 10:54:30 -08:00
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
start_period: 5s
2024-06-13 15:09:20 -07:00
mongodb:
image: uptime_database_mongo:latest
2024-12-23 09:49:01 -08:00
restart: always
2024-09-08 14:29:17 -07:00
command: ["mongod", "--quiet", "--auth"]
ports:
- "27017:27017"
volumes:
- ./mongo/data:/data/db
2024-09-08 14:29:17 -07:00
- ./mongo/init/create_users.js:/docker-entrypoint-initdb.d/create_users.js
env_file:
2024-09-30 12:24:53 +08:00
- mongo.env