Skip to content

Commit 66d9050

Browse files
Merge pull request docker#2239 from londoncalling/compose-startup-order-waitforit
clarified scripts logic for compose startup order
2 parents 5ce24b0 + d1723bf commit 66d9050

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compose/startup-order.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ script:
4747
db:
4848
image: postgres
4949

50+
>**Tip:** There are limitations to this first solution; e.g., it doesn't verify when a specific service is really ready. If you add more arguments to the command, you'll need to use the `bash shift` command with a loop, as shown in the next example.
51+
5052
- Alternatively, write your own wrapper script to perform a more application-specific health
5153
check. For example, you might want to wait until Postgres is definitely
5254
ready to accept commands:

0 commit comments

Comments
 (0)