Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.16 KB

use_docker-compose-wait.md

File metadata and controls

21 lines (13 loc) · 1.16 KB

Use docker-compose-wait

When have Docker compose components, which have to wait for each other docker-compose-wait can be of great help.

version 3 of the Docker compose file format has a depends_on parameter.

It does however have issues you have to be aware of.

depends_on does not wait for db and redis to be “ready” before starting web - only until they have been started. If you need to wait for a service to be ready,

The article on Controlling startup order contains mentions of tools to use or examples of how to roll your own. docker-compose-wait has worked for me and is my recommendation in this problem area.

Version 1.0.0 is shell based, newer versions are based on Rust.

References