How do you "tell" the docker-compose to delay before starting the container?
The container is already up and the service is not ready yet.
Docker does not take into account the readiness of the service (the container is raised) and it starts the next one. The next one looks at the availability of the service and it is not there yet – it falls.
Source: Docker Questions