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"