mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-03 17:47:24 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user