mirror of https://github.com/docker/docs.git
fixed code example in Compose startup order per feedback (#3275)
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
parent
b46ee7e6a7
commit
8a9ffb234d
|
|
@ -71,8 +71,11 @@ script:
|
||||||
>&2 echo "Postgres is up - executing command"
|
>&2 echo "Postgres is up - executing command"
|
||||||
exec $cmd
|
exec $cmd
|
||||||
|
|
||||||
You can use this as a wrapper script as in the previous example, by setting
|
You can use this as a wrapper script as in the previous example, by setting:
|
||||||
`command: ["./wait-for-postgres.sh", "db", "python", "app.py"]`.
|
|
||||||
|
```none
|
||||||
|
command: ["./wait-for-postgres.sh", "db", "python", "app.py"]
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Compose documentation
|
## Compose documentation
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue