fix: Update docker-compose to use start.sh migration runner
This commit is contained in:
parent
aa3faaa7e4
commit
958f097068
2 changed files with 3 additions and 3 deletions
|
|
@ -13,5 +13,5 @@ done
|
||||||
|
|
||||||
echo "✅ Migrations complete. Starting server..."
|
echo "✅ Migrations complete. Starting server..."
|
||||||
|
|
||||||
# Start the main application
|
# Start the main application with production settings
|
||||||
exec uvicorn main:app --host 0.0.0.0 --port 8000
|
exec uvicorn main:app --host 0.0.0.0 --port 8000 --root-path /api --proxy-headers --forwarded-allow-ips '*'
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql://elmeg:elmeg_password@db:5432/elmeg
|
- DATABASE_URL=postgresql://elmeg:elmeg_password@db:5432/elmeg
|
||||||
- SECRET_KEY=${SECRET_KEY:-demo-secret-change-in-production}
|
- SECRET_KEY=${SECRET_KEY:-demo-secret-change-in-production}
|
||||||
command: uvicorn main:app --host 0.0.0.0 --port 8000 --root-path /api --proxy-headers --forwarded-allow-ips '*'
|
command: ./start.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue