From 1c23ba75b85785d01e1320dff6ef98820bdf9096 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Tue, 29 Oct 2024 09:10:02 +0100 Subject: [PATCH] - Add healthcheck example in compose file. --- ReleaseNotes.txt | 8 ++++++++ compose.yaml | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index a0d90a3..54451db 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,3 +1,11 @@ +------------------------------------------------------------------------------------------------------------------------------------ +Rx3/MariaDB-Mga9 V 1.0.2 - A. GIBERT - 2024/11/xx +------------------------------------------------------------------------------------------------------------------------------------ + +- Add healthcheck example in compose file. + + + ------------------------------------------------------------------------------------------------------------------------------------ Rx3/MariaDB-Mga9 V 1.0.1 - A. GIBERT - 2024/10/05 ------------------------------------------------------------------------------------------------------------------------------------ diff --git a/compose.yaml b/compose.yaml index 0e565ae..f359bbc 100644 --- a/compose.yaml +++ b/compose.yaml @@ -30,6 +30,12 @@ services: MARIADB_USER: ${MARIADB_USER} MARIADB_PASSWORD: ${MARIADB_PASSWORD} + healthcheck: + test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p${MARIADB_ROOT_PASSWORD}' ] + interval: 10s + timeout: 3s + retries: 3 + volumes: - ./var/lib/mysql:/var/lib/mysql