Basic ash shell script extracted from Docker compose service with sole purpose of synchronizarion of other services example converted too use alpine base image, modified to accept the hostname argument
To guarantee that the_database and another_service are ready before running the_web_server:
export COMPOSE_HTTP_TIMEOUT=600
docker-compose -f docker-compose.yaml run --rm start_dependencieswhere the service is defined as:
start_dependencies:
image: dadarek/wait-for-dependencies
environment:
- SLEEP_LENGTH: 0.5- shell script to wait for specified
HOSTandPORTwithTIMEOUT(cloned locally) - shell script to wait for specified
HOSTandPORTwithTIMEOUT(cloned locally) - variant of the same script with support of TCP / HTTP "protocol" argument
- Docker Compose startup shutdown order documentation
- variant of the same script with support of TCP / HTTP "protocol" argument
- Docker Compose startup shutdown order documentation
