From 0587f0e56ae125d6ef574aeafe7b2c952ad46335 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Mon, 23 Dec 2024 15:12:10 +0100 Subject: [PATCH] fix healthcheck of nextcloud db --- nextcloud/docker-compose.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nextcloud/docker-compose.yaml b/nextcloud/docker-compose.yaml index 59fe9eb..644f0fd 100644 --- a/nextcloud/docker-compose.yaml +++ b/nextcloud/docker-compose.yaml @@ -111,9 +111,12 @@ services: - nextcloud - mariadb healthcheck: - test: ["CMD", "mysqladmin" ,"--user" ,"$MYSQL_USER" ,"--password=$MYSQL_PASSWORD" ,"ping" ,"-h" ,"localhost"] - interval: 20s - timeout: 3s + test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] + start_period: 1m + start_interval: 10s + interval: 1m + timeout: 5s + retries: 3 labels: - "docker.group=netxtcloud"