vtacquet/wait

By vtacquet

Updated over 7 years ago

Wait until the service in another container is ready.

Image
0

43

Usage: use environment variables WAIT_HOST and WAIT_PORT to wait until a service in another container is ready.

Example (docker-compose):

mariadb:
  image: mariadb
  environment:
    - MYSQL_ROOT_PASSWORD: vincerules

wait:
  image: vtacquet/wait
  links:
    - mariadb
  environment:
    - WAIT_HOST=mariadb
    - WAIT_PORT=3306

containerX:
  links: 
    - wait

Docker Pull Command

docker pull vtacquet/wait