The Revival of depends_on: condition in Compose

11 March 2021 @ Docker Community All-Hands #2

During 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.

Slides | Demo