Currently I have a docker-compose.yaml which still contains depends_on
with a condition
. Unfortunately this feature got removed in newer versions. There is already a discussion here where some alternatives like healthcheck and dockerize are mentioned. But I specifically liked about depends_on
that you don't have to do this. Also helathchecks get executed periodically, and dockerize seems to only work by wating for ports to be availabkle. It was so easy to configure the flow of your containers in a way that one starts after another.
So I was wondering if there is some alternative that is as easy as adding depends_on into your compose-file. Without having to setup anything else? Maybe there is some way to utilize docker events
?