Open smcpeck opened 1 year ago
please try to keep the default database credentials and let me know.
please try to keep the default database credentials and let me know.
Both containers are setup with MYSQL_RANDOM_ROOT_PASSWORD: "yes"
. So trying a healthcheck with -u root -pexample
will definitely fail all the time.
Besides, as I mentioned, the wrong (non-existent) command is being used in the healthcheck. I've given you the fix above if you wish to implement it.
I've moved on from AVideo. Too tough to get it up and running without troubleshooting a lot of the internals. Good luck with the project, though. Cheers!
I am also using the docker version. I do not know what you are doing differently.
The containers still work, but they report as unhealthy because of the bad healthcheck. I bet if you do docker ps
you will see your DB containers report as unhealthy. If you don't care about the healthcheck being bad and/or don't intend for it to provide a valid report, then you should probably just remove it.
I see, I you are right, the -pexample
is wrong, anyway, I just removed it because it seems to be useless
Check this update, thanks for helping find it
Describe the bug After a new
docker compose up -d
, database containers are unhealthy.Expected behavior Containers should be healthy upon deployment.
Solution There are two problems with the current healthcheck.
mariadb-admin
should be used instead ofmysqladmin
root
andexample