mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-05 13:13:11 +07:00
hoàn thành bước tạo docker compose
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user