modified: main_dc/docker-compose.yml

add health check for certbot
This commit is contained in:
2025-11-11 11:30:30 +05:00
parent 9b3d0a5fe9
commit f082d0ee37
+6
View File
@@ -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: