Closed
Description
To wait for a postgres container to be "ready", I've been using a script like this:
# Wait for PG to be ready
until $PSQL -c "select version()" &> /dev/null
do
echo "waiting for postgres container..."
sleep 2
done
But it seems even this is too early. Is there any unequivocal way that another container can tell once the postgres container is ready to be provisioned, without resorting to more arbitrary wait timers?