From da0279d9b6b3c7e47a3e5112afcd9984d9eab840 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Tue, 11 Nov 2025 11:41:42 +0500 Subject: [PATCH] modified: main_dc/docker-compose.yml add health check for nginx --- main_dc/docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main_dc/docker-compose.yml b/main_dc/docker-compose.yml index cf3a614..7e98aea 100644 --- a/main_dc/docker-compose.yml +++ b/main_dc/docker-compose.yml @@ -47,10 +47,17 @@ services: - app-network - bb-network depends_on: - - certbot + certbot: + condition: service_healthy - api - api_bb - analytics + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s analytics: build: