Skip to content

Commit

Permalink
Add sh/alpine -compliant wait-for to options. (docker#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrako authored and johndmulhausen committed May 4, 2017
1 parent e75306d commit 1efadb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compose/startup-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ startup and whenever a connection is lost for any reason. However, if you don't
need this level of resilience, you can work around the problem with a wrapper
script:

- Use a tool such as [wait-for-it](https://github.com/vishnubob/wait-for-it)
or [dockerize](https://github.com/jwilder/dockerize). These are small
- Use a tool such as [wait-for-it](https://github.com/vishnubob/wait-for-it),
[dockerize](https://github.com/jwilder/dockerize) or sh-compatible
[wait-for](https://github.com/Eficode/wait-for). These are small
wrapper scripts which you can include in your application's image and will
poll a given host and port until it's accepting TCP connections.

For example, to use `wait-for-it.sh` to wrap your service's command:
   For example, to use `wait-for-it.sh` or `wait-for` to wrap your service's command:

version: "2"
services:
Expand Down

0 comments on commit 1efadb8

Please sign in to comment.