Skip to content

Commit 120b064

Browse files
authored
docs: clarify depends_on short syntax does not wait for healthy services (#24144)
## Description Clarifies that the `depends_on` short syntax does not wait for services to become healthy, and waits only for them to be started (running). This aligns with the long syntax section, which defines `service_started` as equivalent to the short syntax, and with the [Control startup and shutdown order](https://docs.docker.com/compose/how-tos/startup-order/#control-startup) manual: > On startup, Compose does not wait until a container is "ready", only until it's running. Confirmed locally that short syntax behaves equivalently to `condition: service_started`. ## Related issues or tickets None ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [x] Technical review - [x] Editorial review - [ ] Product review
1 parent 0e3ce26 commit 120b064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/reference/compose-file/services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ services:
438438

439439
Compose guarantees dependency services have been started before
440440
starting a dependent service.
441-
Compose waits for dependency services to be "ready" before
441+
With short syntax, Compose does not wait for dependency services to be "healthy" before
442442
starting a dependent service.
443443

444444
#### Long syntax

0 commit comments

Comments
 (0)