From 9e211712a4558135f18526c55adbc8e6a4e0e0ed Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Wed, 16 Oct 2024 15:27:49 +0200 Subject: [PATCH] added healthcheck --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 26f1876..0563f7d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,12 @@ services: - MARIADB_USER=${MARIADB_USER} - MARIADB_PASSWORD=${MARIADB_PASSWORD} - MARIADB_DATABASE=${MARIADB_DATABASE} + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + start_period: 5s + interval: 3s + timeout: 3s + retries: 3 labels: ### Section Diun - diun.enable=${DIUN_ENABLE}