SurfingNerd / blockscout-docker-compose

A docker-compose ready setup for blockscout to spin up a new instance fast.
Apache License 2.0
7 stars 10 forks source link

Waiting for Database... #2

Open SurfingNerd opened 3 years ago

SurfingNerd commented 3 years ago

Blockscout and the DB are in a race during startup. Blockscout should wait for the DB to be available.

currently it just sleeps 5 seconds, what should work on most machines - but could be done better:

echo "waiting 5 seconds for DB..."
sleep 5