From 7b7899fde72fce026d1276e5d35f1c2467612339 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Tue, 26 Aug 2025 16:22:44 +0200 Subject: [PATCH] healthcheck --- nextcloud/docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 167c16a..54cfc27 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -13,7 +13,8 @@ services: - MYSQL_USER=${MYSQL_USER} - MYSQL_HOST=${MYSQL_HOST} healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/status.php"] + test: ["CMD-SHELL", "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