dev1/docker-compose.yml
2025-07-10 12:15:13 +00:00

43 lines
1.3 KiB
YAML

services:
server1:
image: us-central1-docker.pkg.dev/aptivaai-dev/aptiva-repo/server1:prod-20250710
restart: unless-stopped
expose: ["5000"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5000/healthz || exit 1"]
interval: 30s
timeout: 5s
retries: 3
server2:
image: us-central1-docker.pkg.dev/aptivaai-dev/aptiva-repo/server2:prod-20250710
restart: unless-stopped
expose: ["5001"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5001/healthz || exit 1"]
interval: 30s
timeout: 5s
retries: 3
server3:
image: us-central1-docker.pkg.dev/aptivaai-dev/aptiva-repo/server3:prod-20250710
restart: unless-stopped
expose: ["5002"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5002/healthz || exit 1"]
interval: 30s
timeout: 5s
retries: 3
nginx:
image: nginx:1.25-alpine
command: ["nginx", "-g", "daemon off;"]
ports:
- "80:80"
- "443:443"
volumes:
- ./build:/usr/share/nginx/html:ro # React build
- ./nginx.conf:/etc/nginx/nginx.conf:ro # overwrite default
- /etc/letsencrypt:/etc/letsencrypt:ro # certs
- ./empty:/etc/nginx/conf.d # hide default.conf
depends_on: [server1, server2, server3]