From 17b194dd3090de9ecf4e49f37a740a9108999ac5 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Fri, 12 Jun 2026 12:55:13 +0500 Subject: [PATCH] fix: nginx healthcheck (wget / instead of curl /health); add backup healthcheck --- main_dc/docker-compose.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main_dc/docker-compose.yml b/main_dc/docker-compose.yml index e6ca85b..b250fc6 100644 --- a/main_dc/docker-compose.yml +++ b/main_dc/docker-compose.yml @@ -60,7 +60,7 @@ services: valitovgaziz: condition: service_healthy healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"] + test: ["CMD", "wget", "--spider", "http://localhost/"] interval: 30s timeout: 10s retries: 3 @@ -319,6 +319,12 @@ services: RCLONE_REMOTE: "yadisk:tp-backups" BACKUP_RETENTION_DAYS: 7 BACKUP_TIME: "0 3 * * *" + healthcheck: + test: ["CMD-SHELL", "pidof crond > /dev/null && ls /backups/ > /dev/null || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 15s depends_on: db: condition: service_healthy