depends_on:
condition
in ComposeDuring the v2/v3 split in Compose, the condition
form of depends_on
was
lost. This made waiting on service dependencies difficult and usually required
modifying the ENTRYPOINT
of a dependent service’s image. But thanks to the new
Compose Spec, depends_on:
condition
is back! You
can now wait for containers to be started or “healthy” before starting their
dependent containers.