mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-02 09:37:23 -04:00
MCP services are completely internal to the container and accessed only via localhost. They should not be configurable or exposed. Changes: - Remove MATH_HTTP_PORT, SEARCH_HTTP_PORT, TRADE_HTTP_PORT, GETPRICE_HTTP_PORT from docker-compose.yml environment - Remove MCP service port mappings from docker-compose.yml - Remove MCP port configuration from .env.example - Update README.md to remove MCP port configuration - Update CLAUDE.md to clarify MCP services use fixed internal ports - Update CHANGELOG.md with these simplifications Technical details: - MCP services hardcode to ports 8000-8003 via os.getenv() defaults - Services only accessed via localhost URLs within container: - http://localhost:8000/mcp (math) - http://localhost:8001/mcp (search) - http://localhost:8002/mcp (trade) - http://localhost:8003/mcp (price) - No external access needed or desired for these services - Only API (8080) and web dashboard (8888) should be exposed Benefits: - Simpler configuration (4 fewer environment variables) - Reduced attack surface (4 fewer exposed ports) - Clearer architecture (internal vs external services) - Prevents accidental misconfiguration of internal services
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
# =============================================================================
|
|
# AI-Trader Environment Configuration
|
|
# =============================================================================
|
|
# Copy this file to .env and fill in your actual values
|
|
# Docker Compose automatically reads .env from project root
|
|
|
|
# AI Model API Configuration
|
|
# OPENAI_API_BASE: Leave empty to use default OpenAI endpoint, or set to custom proxy URL
|
|
OPENAI_API_BASE=
|
|
OPENAI_API_KEY=your_openai_key_here # https://platform.openai.com/api-keys
|
|
|
|
# Data Source Configuration
|
|
ALPHAADVANTAGE_API_KEY=your_alphavantage_key_here # https://www.alphavantage.co/support/#api-key
|
|
JINA_API_KEY=your_jina_key_here # https://jina.ai/
|
|
|
|
# API Server Port (exposed on host machine for REST API)
|
|
# Container ALWAYS uses port 8080 internally (hardcoded in entrypoint.sh)
|
|
# This variable ONLY controls the host port mapping (host:API_PORT -> container:8080)
|
|
# Change this if port 8080 is already in use on your host machine
|
|
# Example: API_PORT=8889 if port 8080 is occupied by another service
|
|
# Used for Windmill integration and external API access
|
|
API_PORT=8080
|
|
|
|
# Web Interface Host Port (exposed on host machine)
|
|
# Container always uses 8888 internally
|
|
WEB_HTTP_PORT=8888
|
|
|
|
# Agent Configuration
|
|
AGENT_MAX_STEP=30
|
|
|
|
# Data Volume Configuration
|
|
# Base directory for all persistent data (will contain data/, logs/, configs/ subdirectories)
|
|
# Use relative paths (./volumes) or absolute paths (/home/user/ai-trader-volumes)
|
|
# Defaults to current directory (.) if not set
|
|
VOLUME_PATH=.
|