Add alembic migration support to Docker*

This commit is contained in:
Darryl Nixon 2023-06-02 19:46:04 -07:00
parent ce30df0520
commit d05141075e
2 changed files with 9 additions and 2 deletions

View file

@ -34,4 +34,4 @@ EXPOSE ${ENV_GHOSTFORGE_INTERNAL_WEB_PORT}
# TODO: Replace with ghostforge_serve when it works.
# This currently just keeps the container running for development.
CMD ["sh", "-c", "uvicorn ghostforge.serve:gf --host 0.0.0.0 --port $GHOSTFORGE_INTERNAL_WEB_PORT"]
CMD ["sh", "-c", "alembic upgrade head && uvicorn ghostforge.serve:gf --host 0.0.0.0 --port $GHOSTFORGE_INTERNAL_WEB_PORT"]