54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
|
|
version: "3.9"
|
||
|
|
|
||
|
|
services:
|
||
|
|
agent-platform:
|
||
|
|
build: ./agent_platform
|
||
|
|
container_name: agent-platform
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
environment:
|
||
|
|
- LLM_PROVIDER=${LLM_PROVIDER:-openrouter}
|
||
|
|
- LLM_API_KEY=${LLM_API_KEY}
|
||
|
|
- LLM_MODEL=${LLM_MODEL:-anthropic/claude-3.5-sonnet}
|
||
|
|
- LLM_API_BASE=${LLM_API_BASE:-}
|
||
|
|
- MCP_SERVER_URL=http://mcp-tools:8501
|
||
|
|
- AUTH_TOKEN=${AUTH_TOKEN}
|
||
|
|
- DB_PATH=/data/agent-platform.db
|
||
|
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||
|
|
volumes:
|
||
|
|
- agent-data:/data
|
||
|
|
depends_on:
|
||
|
|
- mcp-tools
|
||
|
|
restart: unless-stopped
|
||
|
|
networks:
|
||
|
|
- agent-net
|
||
|
|
deploy:
|
||
|
|
resources:
|
||
|
|
limits:
|
||
|
|
memory: 256M
|
||
|
|
cpus: '0.5'
|
||
|
|
|
||
|
|
mcp-tools:
|
||
|
|
build: ./mcp_tools
|
||
|
|
container_name: mcp-tools
|
||
|
|
expose:
|
||
|
|
- "8501"
|
||
|
|
environment:
|
||
|
|
- MCP_HOST=0.0.0.0
|
||
|
|
- MCP_PORT=8501
|
||
|
|
restart: unless-stopped
|
||
|
|
networks:
|
||
|
|
- agent-net
|
||
|
|
deploy:
|
||
|
|
resources:
|
||
|
|
limits:
|
||
|
|
memory: 128M
|
||
|
|
cpus: '0.25'
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
agent-data:
|
||
|
|
|
||
|
|
networks:
|
||
|
|
agent-net:
|
||
|
|
driver: bridge
|