From 5c3076ba6ff1a228dcfa9cb266ec0882113bf36c Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Tue, 29 Oct 2024 09:04:56 +0100 Subject: [PATCH] - Fix database healthcheck! --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index d13cafd..34283d2 100644 --- a/compose.yaml +++ b/compose.yaml @@ -21,7 +21,7 @@ services: MARIADB_PASSWORD: ${MARIADB_PASSWORD} healthcheck: - test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRESQL_USER} -d ${POSTGRESQL_DATABASE}'"] + test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p${MARIADB_ROOT_PASSWORD}' ] interval: 10s timeout: 3s retries: 3