88ddc21e64
tests / pytest (push) Has been cancelled
LiteLLM requires openrouter/ prefix to route through openrouter API. Without it, deepseek/* models route to Deepseek native API and fail with the openrouter API key.
78 lines
2.4 KiB
YAML
78 lines
2.4 KiB
YAML
services:
|
|
agent-platform:
|
|
build: ./agent_platform
|
|
expose:
|
|
- "8000"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME:-agent-platform}.rule=Host(`${FQDN:-staging.agent-platform.media-on.de}`)"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME:-agent-platform}.entrypoints=websecure"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME:-agent-platform}.tls=true"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME:-agent-platform}.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.${COMPOSE_PROJECT_NAME:-agent-platform}.loadbalancer.server.port=8000"
|
|
environment:
|
|
- HOST=${HOST:-0.0.0.0}
|
|
- PORT=${PORT:-8000}
|
|
- LLM_PROVIDER=${LLM_PROVIDER:-openrouter}
|
|
- LLM_API_KEY=${LLM_API_KEY}
|
|
- LLM_MODEL=${LLM_MODEL:-openrouter/deepseek/deepseek-v4-flash}
|
|
- LLM_API_BASE=${LLM_API_BASE:-}
|
|
- MCP_SERVER_URL=${MCP_SERVER_URL:-http://mcp-tools:8501/mcp}
|
|
- MCP_TIMEOUT=${MCP_TIMEOUT:-10}
|
|
- AUTH_TOKEN=${AUTH_TOKEN}
|
|
- DB_PATH=${DB_PATH:-/data/agent-platform.db}
|
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
|
- MAX_HISTORY_MESSAGES=${MAX_HISTORY_MESSAGES:-10}
|
|
- MAX_PARALLEL_AGENTS=${MAX_PARALLEL_AGENTS:-5}
|
|
- AGENT_IDLE_TIMEOUT_SEC=${AGENT_IDLE_TIMEOUT_SEC:-300}
|
|
volumes:
|
|
- agent-data:/data
|
|
depends_on:
|
|
mcp-tools:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
restart: unless-stopped
|
|
networks:
|
|
- agent-net
|
|
# Informational only in docker compose standalone; apply via Coolify per-container limits UI
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
cpus: '0.5'
|
|
|
|
mcp-tools:
|
|
build: ./mcp_tools
|
|
expose:
|
|
- "8501"
|
|
environment:
|
|
- MCP_HOST=0.0.0.0
|
|
- MCP_PORT=8501
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "(echo > /dev/tcp/127.0.0.1/8501) >/dev/null 2>&1 || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
restart: unless-stopped
|
|
networks:
|
|
- agent-net
|
|
# Informational only in docker compose standalone; apply via Coolify per-container limits UI
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 128M
|
|
cpus: '0.25'
|
|
|
|
volumes:
|
|
agent-data:
|
|
|
|
networks:
|
|
agent-net:
|
|
driver: bridge
|