Files
AI-Trader/docker-compose.yml
Bill 6a675bc811 refactor: update docker-compose.yml service and container names
Update service name from 'ai-trader' to 'ai-trader-server'
Update container name from 'ai-trader' to 'ai-trader-server'
Update Docker image reference to ghcr.io/xe138/ai-trader-server:latest

Part of Phase 2: Configuration Files rebrand
2025-11-01 11:48:45 -04:00

33 lines
1.0 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
- ${VOLUME_PATH:-.}/logs:/app/logs
- ${VOLUME_PATH:-.}/configs:/app/configs
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}
# 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