-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Hi!
I'm following the docker php sample guide but having problems checking the healthy state.
These are the lines in the docs:
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
But, unfortunatly, don't work. db-server is unhealthy and cannot let server to fully load and serve php.
Instead, if i change these lines for others:
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 3
I can run the demo without problems.
After search i try many options, like in mariadb official docs are information about not using '--su-mysql' or using 'healthcheck.sh' without path, only sh file, but none of them work.
I cannot find why this fail and my attemp works.
Running on macos 13.6.6 with latest docker desktop in macbook air m1.