I have a docker compose file, which startes multiple docker containers in an order.
When executing docker compose up
I would like to wait until the last container has sucessfully_completed
The --wait
option only seems to wait until the docker container is running or healthy, which is too early.
I could add another dummy container waiting for my last container to sucessfully_completed
but this seems a bit odd.
How can I wait for my last docker container of my docker compose to be completed, when running a docker compose file?