How to make Docker Compose wait for container X before starting Y? You can make Docker Compose wait for a container X to be fully up and running before starting container Y by using the depends_on option in your docker-compose.yml file.