Created
March 4, 2016 17:55
-
-
Save munhitsu/c0d0bff53ad5219818cd to your computer and use it in GitHub Desktop.
wait for postgresql (i.e. within docker container)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
until nc -z ${POSTGRES_PORT_5432_TCP_ADDR} ${POSTGRES_PORT_5432_TCP_PORT}; do | |
echo "$(date) - waiting for postgres..." | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment