Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

jannis-baratheon/stackoverflow--docker-container-synchronization-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a code reference for a StackOverflow answer.

Docker container synchronization example

This is an example of how to synchronize docker containers, i.e. how to make some containers wait for dependant containers to start.

The idea is that every container opens up a diagnostic port which serves component's status (warming up/running). The dependant containers can then delay their start until the server is ready.

Running the example

Make sure you have docker and docker-compose installed. Then just run this convenience script from the root of the cloned sources:

./run-example.sh

or call docker compose directly:

docker-compose -f app.yml build && docker-compose -f app.yml up

About

Shows how to control services boot order in docker-compose.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published