From 9acca37f5c920b30d93d133a0be10300d7091e63 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Apr 2026 21:34:30 +0000 Subject: [PATCH] Run alembic migrations on container startup before uvicorn https://claude.ai/code/session_01EkgZTPPvHWLmGuqDc5LrXT --- scripts/docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index af941e4..b14b8b4 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -5,5 +5,8 @@ set -e mkdir -p /app/.redis redis-server --daemonize yes --dir /app/.redis +# Run database migrations +alembic upgrade head + # Run FastAPI as main process (replace shell so signals propagate) exec uvicorn src.main:app --host 0.0.0.0 --port 8000