mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
Remove redundant log file creation for MCP services since output is already captured by Docker logs. This simplifies deployment by removing unnecessary volume mounts and file management. Changes: - Remove logs/ directory creation from Dockerfile - Remove logs/ volume mount from docker-compose.yml - Update start_mcp_services.py to send output to DEVNULL - Update documentation to reflect changes (DOCKER.md, docs/DOCKER.md) - Update .env.example to remove logs/ from volume description Users can still view MCP service output via 'docker logs' or 'docker-compose logs -f'. Trading session logs in data/agent_data/ remain unchanged.
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
services:
|
|
# REST API server for Windmill integration
|
|
ai-trader-server:
|
|
# image: ghcr.io/xe138/ai-trader-server:latest
|
|
# Uncomment to build locally instead of pulling:
|
|
build: .
|
|
container_name: ai-trader-server
|
|
volumes:
|
|
- ${VOLUME_PATH:-.}/data:/app/data
|
|
# User configs mounted to /app/user-configs (default config baked into image)
|
|
- ${VOLUME_PATH:-.}/configs:/app/user-configs
|
|
environment:
|
|
# Deployment Configuration
|
|
- DEPLOYMENT_MODE=${DEPLOYMENT_MODE:-PROD}
|
|
- PRESERVE_DEV_DATA=${PRESERVE_DEV_DATA:-false}
|
|
|
|
# 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}
|
|
|
|
# Agent Configuration
|
|
- AGENT_MAX_STEP=${AGENT_MAX_STEP:-30}
|
|
ports:
|
|
# API server port (primary interface for external access)
|
|
- "${API_PORT:-8080}:8080"
|
|
restart: unless-stopped # Keep API server running
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|