Skip to content

Commit

Permalink
Add information on shutdown-support
Browse files Browse the repository at this point in the history
Documentation should also mention that compose takes dependency order into account for shutdown as well.
docker/compose#2679
  • Loading branch information
msgeissler authored Mar 3, 2018
1 parent 313ec1f commit a8be2c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compose/startup-order.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
description: How to control service startup order in Docker Compose
keywords: documentation, docs, docker, compose, startup, order
title: Control startup order in Compose
description: How to control service startup and shutdown order in Docker Compose
keywords: documentation, docs, docker, compose, startup, shutdown, order
title: Control startup and shutdown order in Compose
notoc: true
---

You can control the order of service startup with the
[depends_on](compose-file.md#depends-on) option. Compose always starts
You can control the order of service startup and shutdown with the
[depends_on](compose-file.md#depends-on) option. Compose always starts and stops
containers in dependency order, where dependencies are determined by
`depends_on`, `links`, `volumes_from`, and `network_mode: "service:..."`.

However, Compose does not wait until a container is "ready" (whatever that means
However, for startup Compose does not wait until a container is "ready" (whatever that means
for your particular application) - only until it's running. There's a good
reason for this.

Expand Down

0 comments on commit a8be2c7

Please sign in to comment.