Skip to content

Commit

Permalink
fix: standalone mysql service healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragory committed Apr 8, 2024
1 parent e60af16 commit 928fc20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 928fc20

Please sign in to comment.