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