From f082d0ee373d271887af5be0406395fca260cc08 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Tue, 11 Nov 2025 11:30:30 +0500 Subject: [PATCH] modified: main_dc/docker-compose.yml add health check for certbot --- main_dc/docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main_dc/docker-compose.yml b/main_dc/docker-compose.yml index 51e0902..cf3a614 100644 --- a/main_dc/docker-compose.yml +++ b/main_dc/docker-compose.yml @@ -16,6 +16,12 @@ services: - DOMAINS=${ALL_DOMAINS} - STAGING=0 restart: unless-stopped + healthcheck: + test: ["CMD-SHELL", "test -f /etc/letsencrypt/live/$$(echo $${DOMAINS} | cut -d',' -f1)/fullchain.pem || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s nginx: build: