From 76f309d0e91fe890cb93c905abf77cb924dd6323 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 6 Nov 2024 20:43:47 +0100 Subject: [PATCH] nextcloud: db: fix healthcheck --- docker-compose/nextcloud/docker-compose.yml.j2 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docker-compose/nextcloud/docker-compose.yml.j2 b/docker-compose/nextcloud/docker-compose.yml.j2 index b313a8ba..4ae9b205 100644 --- a/docker-compose/nextcloud/docker-compose.yml.j2 +++ b/docker-compose/nextcloud/docker-compose.yml.j2 @@ -19,17 +19,10 @@ services: networks: - intern healthcheck: + test: ["CMD", "mariadb-show", "nextcloud", "-h", "localhost", "-u", "nextcloud", "-p{{ lookup('viczem.keepass.keepass', 'nextcloud_mysql_password', 'password') }}"] interval: 30s + timeout: 10s retries: 3 - test: - [ - "CMD", - "healthcheck.sh", - "--su-mysql", - "--connect" - ] - timeout: 30s - # Error ## [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255). ## [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').