fix: nginx healthcheck (wget / instead of curl /health); add backup healthcheck
Deploy / deploy (push) Failing after 2m42s

This commit is contained in:
valitovgaziz
2026-06-12 12:55:13 +05:00
parent e1807167d2
commit 17b194dd30
+7 -1
View File
@@ -60,7 +60,7 @@ services:
valitovgaziz: valitovgaziz:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"] test: ["CMD", "wget", "--spider", "http://localhost/"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
@@ -319,6 +319,12 @@ services:
RCLONE_REMOTE: "yadisk:tp-backups" RCLONE_REMOTE: "yadisk:tp-backups"
BACKUP_RETENTION_DAYS: 7 BACKUP_RETENTION_DAYS: 7
BACKUP_TIME: "0 3 * * *" 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: depends_on:
db: db:
condition: service_healthy condition: service_healthy