Wait for service(s) to be available before startup docker container.
pip install wait-for-utils
Example:
wait-for-postgres
Additional documentation:
wait-for-postgres --help
By default, all settings are taken from the environment variables.
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_CHECK_TIMEOUT
- POSTGRES_CHECK_INTERVAL