#!/bin/sh echo "Waiting for redis startup..." while ! nc -z "${REDIS_HOST}" "${REDIS_PORT}"; do sleep 1 done echo "Redis has started!" echo "Waiting for database startup..." while ! nc -z "${DB_HOST}" "${DB_PORT}"; do sleep 1 done echo "Database has started!" echo "Running supervisor daemon..." exec /usr/bin/supervisord $@