Skip to content

Commit 928fc20

Browse files
committed
fix: standalone mysql service healthcheck
1 parent e60af16 commit 928fc20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker-compose.standalone.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ services:
1919
# - ./docker/production/data/mysql:/var/lib/mysql
2020
#command: --authentication-policy=mysql_native_password
2121
healthcheck:
22-
test: "/usr/bin/mysql --user=root --password=\"${STANDALONE_MYSQL_ROOT_PASSWORD}\" --execute \"SHOW DATABASES;\""
23-
interval: 5s
24-
timeout: 300s
22+
test: "/usr/bin/mysql --host=127.0.0.1 --user=root --password=\"${STANDALONE_MYSQL_ROOT_PASSWORD}\" --execute \"SHOW DATABASES;\""
23+
interval: 1s
24+
timeout: 5s
2525
retries: 60
2626

2727
nginx:

0 commit comments

Comments
 (0)