I am using docker-compose to spin up two containers as shown in below example. DB image has start up script which takes around 5 mins to get it’s execution completed.
Is there any way to start ‘web’ container once the start up script execution is finished from ‘db’ container?
Or lets say I have just one container and want to only start that container when the execution of start up script is finished,
I have referred https://docs.docker.com/compose/startup-order/ this one.