From 928fc20df335beb60850d998e6c16a7f2cb1307c Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 8 Apr 2024 20:38:33 +0300 Subject: [PATCH] fix: standalone mysql service healthcheck --- docker-compose.standalone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.standalone.yml b/docker-compose.standalone.yml index efcfa725f..7487de365 100644 --- a/docker-compose.standalone.yml +++ b/docker-compose.standalone.yml @@ -19,9 +19,9 @@ services: # - ./docker/production/data/mysql:/var/lib/mysql #command: --authentication-policy=mysql_native_password healthcheck: - test: "/usr/bin/mysql --user=root --password=\"${STANDALONE_MYSQL_ROOT_PASSWORD}\" --execute \"SHOW DATABASES;\"" - interval: 5s - timeout: 300s + test: "/usr/bin/mysql --host=127.0.0.1 --user=root --password=\"${STANDALONE_MYSQL_ROOT_PASSWORD}\" --execute \"SHOW DATABASES;\"" + interval: 1s + timeout: 5s retries: 60 nginx: