Comments - Best way to make our automation script wait until the database has been imported before proceeding to next step
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Like using-healthcheck-sh.
The initialization from /docker-entrypoint-initdb.d occurs while mariadbd is running under --skip-networking, so will return healthy once its finished.
Use https://docs.docker.com/compose/compose-file/05-services/#healthcheck (and the meanings on https://docs.docker.com/reference/dockerfile/#healthcheck).
The start_period covers the estimated startup time.
Then for the services depending on mariadb (service name):