Skip to content

Commit ea09140

Browse files
committed
Fix percona healthcheck to use TCP instead of socket
1 parent 24ec4f8 commit ea09140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ services:
5050
MYSQL_ROOT_PASSWORD: iznik
5151
MYSQL_DATABASE: iznik
5252
healthcheck:
53-
test: ["CMD-SHELL", "mysqladmin ping -h localhost || exit 1"]
53+
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -P 3306 || exit 1"]
5454
interval: 5s
5555
timeout: 3s
56-
retries: 5
57-
start_period: 30s
56+
retries: 10
57+
start_period: 60s
5858

5959
postgres:
6060
container_name: freegle-postgres

0 commit comments

Comments
 (0)