hoàn thành bước tạo docker compose

This commit is contained in:
2026-03-31 14:47:29 +07:00
parent c362692c51
commit 5d5ec7fb1a
16 changed files with 427 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Docker entrypoint: wait for Postgres, run migrations, then start the app.
set -e
echo "⏳ Running Alembic migrations..."
alembic upgrade head
echo "🚀 Starting FastAPI..."
exec uvicorn main:app --host 0.0.0.0 --port 8000