mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-05 12:53:11 +07:00
10 lines
238 B
Bash
10 lines
238 B
Bash
#!/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 8001
|