mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-16 14:57:24 -04:00
fix: use fixed internal ports with configurable host ports
Internal container ports are now fixed at 8000-8003. Host ports are configurable via .env variables. This prevents port conflicts inside the container while allowing users to map to different host ports if needed.
This commit is contained in:
@@ -15,7 +15,9 @@ JINA_API_KEY=your_jina_key_here
|
|||||||
# System Configuration (Docker default paths)
|
# System Configuration (Docker default paths)
|
||||||
RUNTIME_ENV_PATH=/app/data/runtime_env.json
|
RUNTIME_ENV_PATH=/app/data/runtime_env.json
|
||||||
|
|
||||||
# MCP Service Ports (defaults shown)
|
# MCP Service Host Ports (exposed on host machine)
|
||||||
|
# Container always uses 8000-8003 internally
|
||||||
|
# Change these if you need different ports on your host
|
||||||
MATH_HTTP_PORT=8000
|
MATH_HTTP_PORT=8000
|
||||||
SEARCH_HTTP_PORT=8001
|
SEARCH_HTTP_PORT=8001
|
||||||
TRADE_HTTP_PORT=8002
|
TRADE_HTTP_PORT=8002
|
||||||
|
|||||||
@@ -19,18 +19,19 @@ services:
|
|||||||
# System Configuration
|
# System Configuration
|
||||||
- RUNTIME_ENV_PATH=/app/data/runtime_env.json
|
- RUNTIME_ENV_PATH=/app/data/runtime_env.json
|
||||||
|
|
||||||
# MCP Service Ports
|
# MCP Service Ports (fixed internally)
|
||||||
- MATH_HTTP_PORT=${MATH_HTTP_PORT:-8000}
|
- MATH_HTTP_PORT=8000
|
||||||
- SEARCH_HTTP_PORT=${SEARCH_HTTP_PORT:-8001}
|
- SEARCH_HTTP_PORT=8001
|
||||||
- TRADE_HTTP_PORT=${TRADE_HTTP_PORT:-8002}
|
- TRADE_HTTP_PORT=8002
|
||||||
- GETPRICE_HTTP_PORT=${GETPRICE_HTTP_PORT:-8003}
|
- GETPRICE_HTTP_PORT=8003
|
||||||
|
|
||||||
# Agent Configuration
|
# Agent Configuration
|
||||||
- AGENT_MAX_STEP=${AGENT_MAX_STEP:-30}
|
- AGENT_MAX_STEP=${AGENT_MAX_STEP:-30}
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
# Format: "HOST:CONTAINER" - container ports are fixed, host ports configurable via .env
|
||||||
- "8001:8001"
|
- "${MATH_HTTP_PORT:-8000}:8000"
|
||||||
- "8002:8002"
|
- "${SEARCH_HTTP_PORT:-8001}:8001"
|
||||||
- "8003:8003"
|
- "${TRADE_HTTP_PORT:-8002}:8002"
|
||||||
|
- "${GETPRICE_HTTP_PORT:-8003}:8003"
|
||||||
- "8888:8888"
|
- "8888:8888"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user