<p>Even though the order of how containers starts can be controlled through <code>depends_on</code> and container order in docker-compose.yml, compose won't really wait until a container is ready before starting the next one. If you don't want to deal with it at application level, there are some other paths you might try: </p>