Skip to content

Commit

Permalink
Fix docker compose healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
spacentropy committed Dec 15, 2023
1 parent 04f57f7 commit 9ac5317
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions integration-tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ services:
environment:
MYSQL_ROOT_PASSWORD: mover
healthcheck:
test: /usr/bin/mysql -h localhost -u root -p$${MYSQL_ROOT_PASSWORD} -e "EXIT"
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"root",
"-pmover",
]
timeout: 10s
interval: 5s
retries: 10
Expand All @@ -20,7 +30,17 @@ services:
environment:
MYSQL_ROOT_PASSWORD: mover
healthcheck:
test: /usr/bin/mysql -h localhost -u root -p$${MYSQL_ROOT_PASSWORD} -e "EXIT"
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"root",
"-pmover",
]
timeout: 10s
interval: 5s
retries: 10
Expand Down

0 comments on commit 9ac5317

Please sign in to comment.