From 4478137cf0c966d2de96ef59243edc8102c5044d Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Mon, 14 Jul 2025 07:12:22 -0400 Subject: [PATCH] MariaDB healthcheck script. --- docker-compose.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 94982418..bce31303 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3326,7 +3326,7 @@ services: PUID: 1000 TZ: America/New_York healthcheck: - test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-p${MARIADB_ENVIRONMENT_MYSQL_ROOT_PASSWORD}"] + test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] interval: 1m30s timeout: 10s retries: 5 @@ -3338,27 +3338,11 @@ services: - 3306:3306 restart: unless-stopped volumes: - - bind: - create_host_path: true - read_only: true - source: /etc/localtime - target: /etc/localtime - type: bind - - bind: - create_host_path: true - source: ${DOCKER_VOLUME_CONFIG}/mariadb - target: /config - type: bind - - source: ${DOCKER_VOLUME_STORAGE} - target: /storage - type: bind - bind: - create_host_path: true - - source: ${DOCKER_VOLUME_CONFIG}/mariadb - target: /var/lib/mysql - type: bind - bind: - create_host_path: true + - /etc/localtime:/etc/localtime:ro + - ${DOCKER_VOLUME_CONFIG}/mariadb:/config + - ${DOCKER_VOLUME_STORAGE}:/storage + - ${DOCKER_VOLUME_CONFIG}/mariadb:/var/lib/mysql + - ${DOCKER_VOLUME_CONFIG}/mariadb/healthcheck.sh:/usr/local/bin/healthcheck.sh mastodon: container_name: mastodon depends_on: