From be9fd7fa06b1ee6c387073d091b293c1e9b6b6b8 Mon Sep 17 00:00:00 2001 From: constantprojects Date: Tue, 24 Feb 2026 09:04:23 -0700 Subject: [PATCH] Fix MariaDB healthcheck failing on MariaDB 11.8 The 'healthcheck --su-mysql' binary isn't reliably available in newer MariaDB images. Switch to 'mariadb-admin ping' which is always present. Also add start_period and increase retries for slow first-boot initialization on small VPS instances. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7db24c7..01db454 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -82,10 +82,11 @@ services: networks: - websitebox_internal healthcheck: - test: ["CMD", "healthcheck", "--su-mysql", "--connect", "--innodb_initialized"] - interval: 30s - timeout: 10s - retries: 5 + test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-u", "root", "-p${DB_ROOT_PASSWORD}"] + interval: 10s + timeout: 5s + retries: 10 + start_period: 30s certbot: image: certbot/certbot