modified: main_dc/docker-compose.yml

depends on health check all
This commit is contained in:
2025-11-11 11:46:18 +05:00
parent da0279d9b6
commit eedcabe7bf
+11 -5
View File
@@ -1,5 +1,4 @@
services: services:
certbot: certbot:
build: build:
context: ./certbot context: ./certbot
@@ -17,7 +16,11 @@ services:
- STAGING=0 - STAGING=0
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD-SHELL", "test -f /etc/letsencrypt/live/$$(echo $${DOMAINS} | cut -d',' -f1)/fullchain.pem || exit 1"] test:
[
"CMD-SHELL",
"test -f /etc/letsencrypt/live/$$(echo $${DOMAINS} | cut -d',' -f1)/fullchain.pem || exit 1",
]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
@@ -49,9 +52,12 @@ services:
depends_on: depends_on:
certbot: certbot:
condition: service_healthy condition: service_healthy
- api api:
- api_bb condition: service_healthy
- analytics api_bb:
condition: service_healthy
analytics:
condition: service_healthy
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"]
interval: 30s interval: 30s