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