mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-17 04:55:58 +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 8000
|