From 52bd1fa698038702212a8f99484ca0b2922d24ea Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Tue, 14 Jan 2025 12:42:52 -0500 Subject: [PATCH] Adding restart true for services dependent on mariadb. --- docker-compose.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 694ce1ad..ddf442bf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -556,7 +556,10 @@ services: castopod: container_name: castopod depends_on: - - mariadb + mariadb: + condition: service_healthy + required: true + restart: true environment: MYSQL_DATABASE: castopod MYSQL_USER: castopod @@ -1704,7 +1707,7 @@ services: container_name: hortusfox depends_on: mariadb: - condition: service_started + condition: service_healthy required: true restart: true environment: @@ -3027,6 +3030,11 @@ services: PUID: 1000 TZ: America/New_York MYSQL_PASSWORD: VQU23wHKRNmfpAPt5E9BxMaSGJdWjLuz + healthcheck: + test: "/usr/bin/mariadb -u root -p${MARIADB_ENVIRONMENT_MYSQL_ROOT_PASSWORD} -e \"SHOW DATABASES;\"" + interval: 10s + timeout: 5s + retries: 3 hostname: Rinoa image: ghcr.io/linuxserver/mariadb networks: @@ -6081,7 +6089,7 @@ services: container_name: wallabag depends_on: mariadb: - condition: service_started + condition: service_healthy required: true restart: true redis: