fastapi-react icon indicating copy to clipboard operation
fastapi-react copied to clipboard

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

Open jaredtkatz opened this issue 5 years ago • 1 comments

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).

jaredtkatz avatar Sep 28 '20 21:09 jaredtkatz

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.

Buuntu avatar Sep 29 '20 23:09 Buuntu