feat: agent platform initial commit
- FastAPI + HTMX UI: dashboard, agents CRUD, chat, audit, tools - SQLite schema: agents, conversations, messages, audit, sessions - Code-agent sync (agents/*.py -> DB on startup) - MCP client with health check - Token auth (Bearer + session) - LiteLLM integration via llm.py - Docker Compose: agent-platform + mcp-tools services - Smoke tests pass: /health 200, /api/agents 200, / 401
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
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
|
||||
Reference in New Issue
Block a user