From eedcabe7bf0d00ff3685c98ae6a118d13da5d5cb Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Tue, 11 Nov 2025 11:46:18 +0500 Subject: [PATCH] modified: main_dc/docker-compose.yml depends on health check all --- main_dc/docker-compose.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/main_dc/docker-compose.yml b/main_dc/docker-compose.yml index 7e98aea..280a3f2 100644 --- a/main_dc/docker-compose.yml +++ b/main_dc/docker-compose.yml @@ -1,5 +1,4 @@ services: - certbot: build: context: ./certbot @@ -17,7 +16,11 @@ services: - STAGING=0 restart: unless-stopped 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 timeout: 10s retries: 3 @@ -49,9 +52,12 @@ services: depends_on: certbot: condition: service_healthy - - api - - api_bb - - analytics + api: + condition: service_healthy + api_bb: + condition: service_healthy + analytics: + condition: service_healthy healthcheck: test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"] interval: 30s