fix: use hardcoded port 8080 internally in container

API_PORT env var now only controls host port mapping in docker-compose.yml.
Container always binds uvicorn to port 8080 internally for consistency
with health checks and documentation.
This commit is contained in:
2025-10-31 12:42:28 -04:00
parent c63cdffd0e
commit 77da47a40d

View File

@@ -52,10 +52,12 @@ echo "⏳ Waiting for MCP services to start..."
sleep 3
# Step 4: Start FastAPI server with uvicorn
echo "🌐 Starting FastAPI server on port ${API_PORT:-8080}..."
# Note: Container always uses port 8080 internally
# The API_PORT env var only affects the host port mapping in docker-compose.yml
echo "🌐 Starting FastAPI server on port 8080..."
uvicorn api.main:app \
--host 0.0.0.0 \
--port ${API_PORT:-8080} \
--port 8080 \
--log-level info \
--access-log