From 260cef943ff075fc10db6a9f61d00002f7617358 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Mon, 25 Aug 2025 11:19:28 +0200 Subject: [PATCH] =?UTF-8?q?healthcheck=20f=C3=BCr=20nextcloud.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nextcloud/docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 084a576..167c16a 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -12,6 +12,12 @@ services: - MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_USER=${MYSQL_USER} - MYSQL_HOST=${MYSQL_HOST} + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost/status.php"] + interval: "30s" # alle 30 Sekunden prüfen + timeout: "10s" # max. 10 Sekunden auf Antwort warten + retries: "3" # nach 3 Fehlversuchen gilt der Container als unhealthy + start_period: "1m" # Wartezeit nach dem Start, bevor geprüft wird volumes: - /mnt/nextcloud/nextcloud/html:/var/www/html - /mnt/nextcloud/nextcloud/apps:/var/www/html/custom_apps