From 296428dafc433688791fbbaeb17efe18d60986d0 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Tue, 6 Feb 2024 12:31:56 -0300 Subject: [PATCH] try health --- default.yml | 9 ++++++++- dev.yml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/default.yml b/default.yml index c1da695..9029553 100644 --- a/default.yml +++ b/default.yml @@ -10,7 +10,14 @@ services: - database:/var/lib/mysql restart: always healthcheck: - test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + test: + [ + "CMD", + "healthcheck.sh", + "--su-mysql", + "--connect", + "--innodb_initialized", + ] interval: 10s timeout: 5s retries: 3 diff --git a/dev.yml b/dev.yml index c33d20a..7c6527e 100644 --- a/dev.yml +++ b/dev.yml @@ -12,7 +12,14 @@ services: - ${DB_PORT}:3306 restart: always healthcheck: - test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + test: + [ + "CMD", + "healthcheck.sh", + "--su-mysql", + "--connect", + "--innodb_initialized", + ] interval: 10s timeout: 5s retries: 3