From 902bce445b8c63de0f0ab41dfc433fb79625b610 Mon Sep 17 00:00:00 2001 From: sulthan Date: Thu, 4 Jun 2026 22:08:20 +0700 Subject: [PATCH] update healthcheck using the default sh --- docker-compose.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7ca6d84..7ab8cc5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,10 +37,11 @@ services: MYSQL_PASSWORD: ${DB_PASSWORD} MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] - interval: 5s - timeout: 3s - retries: 10 + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 60s volumes: app-public: