I was looking to set a initialization sequence for a docker-compose services to start. Like service 'web' should wait for 'db' to complete in docker-compose.
I guess previously 'depends_on' was used for this purpose but since version 3, 'depends_on' no longer imposes the docker services start-up sequence due to docker wants to start services at any moment when they fail independently. I guess that's a good reason to remove the previous waiting feature.
But, if that's true, what is the alternative for implementing initialization sequence where I don't want to start 'web' service until 'db' is fully initialization and completes the startup.
Please correct me if I'm wrong in my understanding about this topic.