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