In one deployment, we saw:
postgres: db is not ready to create databases...
postgres: db is not ready to create databases...
postgres: db is not ready to create databases...
...
..postgres becomes ready..
... postgres restarts
curl: geo-data is not ready..
curl: geo-data is not ready..
curl: geo-data is not ready..
curl: geo-data is not ready..
curl: geo-data is not ready..
curl: geo-data is not ready..
but the geo-data would never become ready because the databases were not created. And it seemed like the database would never be created because we were at the step of curling in the geo data.
The wait for postgres to be ready picked up the first time postgres was up and tried to create the databases at this time and failed because postgres was restarting