From 958f0970685c2eefd755bb46a88ed9e9d0a30c47 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Sun, 21 Dec 2025 03:49:47 -0800 Subject: [PATCH] fix: Update docker-compose to use start.sh migration runner --- backend/start.sh | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/start.sh b/backend/start.sh index c46756e..f6050be 100644 --- a/backend/start.sh +++ b/backend/start.sh @@ -13,5 +13,5 @@ done echo "✅ Migrations complete. Starting server..." -# Start the main application -exec uvicorn main:app --host 0.0.0.0 --port 8000 +# Start the main application with production settings +exec uvicorn main:app --host 0.0.0.0 --port 8000 --root-path /api --proxy-headers --forwarded-allow-ips '*' diff --git a/docker-compose.yml b/docker-compose.yml index b1fda94..1ec9170 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: environment: - DATABASE_URL=postgresql://elmeg:elmeg_password@db:5432/elmeg - 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: - db restart: unless-stopped