Add database initialization for first superuser setup
All checks were successful
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Successful in 51s
Build and Push Docker Images / build-frontend (push) Has been skipped

Introduced a script to create the initial superuser during app startup if none exists. Updated the entrypoint to call this script and added stricter logging for passlib. Adjusted .env.template for a stronger default superuser password.
This commit is contained in:
2025-03-04 18:54:00 +01:00
parent 67f1dfbd9d
commit a88ebd40a7
4 changed files with 59 additions and 2 deletions

View File

@@ -4,5 +4,8 @@ echo "Starting Backend"
# Apply database migrations
alembic upgrade head
python app/init_db.py
# Execute the command passed to docker run
exec "$@"