You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
condition was removed compose spec in versions 3.0 to 3.8 but is now back! Using version of the compose spec v3.9, you can use condition as an option in long syntax form of depends_on.
I use docker compose to start MySQL and Java Web projects,
The startup of JavaWeb needs to rely on MySQL to create complete data, so I use healthcheck
But there is a problem with the healthcheck of mysql, this is my docker-compose
pro-mysql-1 | 2022-04-07T08:16:54.203710Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
container for service "mysql" is unhealthy
Since fubaquant depends_on mysql healthcheck, fubaquant is not started either
The health check log of the mysql container is:
I checked th healthcheck log of mysql and it's also healthy
thanks for any help
The text was updated successfully, but these errors were encountered:
You configured health check to only allow 3 retries, 1 second intervals. While compose is starting your app, mysql service has not reached the healthy state within this 3s delay, so compose stops and report this error. Try to increase this delay or number of retries.
I use docker compose to start MySQL and Java Web projects,
The startup of JavaWeb needs to rely on MySQL to create complete data, so I use healthcheck
But there is a problem with the
healthcheck
of mysql, this is mydocker-compose
The statement in error is:
The console outputs :
Since fubaquant depends_on mysql healthcheck, fubaquant is not started either
The health check log of the mysql container is:
I checked th healthcheck log of mysql and it's also healthy
thanks for any help
The text was updated successfully, but these errors were encountered: