mirror of https://github.com/docker/docs.git
clarified scripts logic for compose startup order
changed 'note' to 'tip' Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
parent
0e5a7842e9
commit
ec7774f46c
|
@ -47,6 +47,8 @@ script:
|
|||
db:
|
||||
image: postgres
|
||||
|
||||
>**Tip:** There are limitations to this first solution; e.g., it doesn't verify when 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.
|
||||
|
||||
- Alternatively, write your own wrapper script to perform a more application-specific health
|
||||
check. For example, you might want to wait until Postgres is definitely
|
||||
ready to accept commands:
|
||||
|
|
Loading…
Reference in New Issue