From 4af00d3709831e3304c252d64e8ce06f4ceb729e Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 30 Oct 2025 18:36:25 -0400 Subject: [PATCH] Add docker-compose configuration Mounts data and logs volumes for persistence Injects environment variables from .env file Exposes all MCP service ports and web dashboard Auto-restart on failure --- docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..520b15f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +version: '3.8' + +services: + ai-trader: + build: . + container_name: ai-trader-app + volumes: + - ./data:/app/data + - ./logs:/app/logs + environment: + # AI Model API Configuration + - OPENAI_API_BASE=${OPENAI_API_BASE} + - OPENAI_API_KEY=${OPENAI_API_KEY} + + # Data Source Configuration + - ALPHAADVANTAGE_API_KEY=${ALPHAADVANTAGE_API_KEY} + - JINA_API_KEY=${JINA_API_KEY} + + # System Configuration + - RUNTIME_ENV_PATH=/app/data/runtime_env.json + + # MCP Service Ports + - MATH_HTTP_PORT=${MATH_HTTP_PORT:-8000} + - SEARCH_HTTP_PORT=${SEARCH_HTTP_PORT:-8001} + - TRADE_HTTP_PORT=${TRADE_HTTP_PORT:-8002} + - GETPRICE_HTTP_PORT=${GETPRICE_HTTP_PORT:-8003} + + # Agent Configuration + - AGENT_MAX_STEP=${AGENT_MAX_STEP:-30} + ports: + - "8000:8000" + - "8001:8001" + - "8002:8002" + - "8003:8003" + - "8888:8888" + restart: unless-stopped