Buuntu / fastapi-react

🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
MIT License
2.22k stars 350 forks source link

Wait for Postgres to become available instead of naively sleeping before running Alembic migrations #126

Open jaredtkatz opened 4 years ago

jaredtkatz commented 4 years ago

Wait for the postgres Docker Compose service to become available instead of naively sleeping for 5 seconds before running Alembic migrations. Implemented using the popular wait-for-it.sh script (added to the repo as a git submodule).

Buuntu commented 4 years ago

I'd rather the wait for it script be copied into the scripts directory than maintaining it as a submodule personally. That script is made to be copy+pasted anyway.