From 14ec244f97cdb18f6f5fc1fa863d770dc74b959b Mon Sep 17 00:00:00 2001 From: Danny Groenewegen Date: Sun, 9 Aug 2026 20:48:18 +0200 Subject: [PATCH] fix: use pgautoupgrade's default healthcheck --- compose.postgres.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compose.postgres.yml b/compose.postgres.yml index 777f9df..c3f071b 100644 --- a/compose.postgres.yml +++ b/compose.postgres.yml @@ -23,11 +23,11 @@ services: POSTGRES_DB: nextcloud secrets: - db_password - healthcheck: - test: ["CMD-SHELL", "pg_isready", "-U", "nextcloud"] - interval: 10s - timeout: 5s - retries: 5 + # The pgautoupgrade image already ships its own HEALTHCHECK. + # This runs pg_isready but also takes into accounts if pg_upgrade is being run. + # No need to override it here. + # healthcheck: + # test: ["CMD", "/usr/local/bin/pgautoupgrade-healthcheck.sh"] deploy: labels: backupbot.backup.pre-hook: "/pg_backup.sh backup"