From 77da47a40d5439927d9339ba03f3a33603683e8a Mon Sep 17 00:00:00 2001 From: Bill Date: Fri, 31 Oct 2025 12:42:28 -0400 Subject: [PATCH] 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. --- entrypoint-api.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entrypoint-api.sh b/entrypoint-api.sh index 0deb41e..64a808d 100755 --- a/entrypoint-api.sh +++ b/entrypoint-api.sh @@ -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