Files
agent_management/agent_templates/agents/code_ai_agent/docker-compose.yml
T

46 lines
1.4 KiB
YAML

version: '3.8'
services:
code-assistant-api:
build: .
container_name: code-assistant-agent
ports:
- "8000:8000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-sk-rxegkFOciNmQLhOHr3qP3A}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://litellm.graystone-fb459c5d.southeastasia.azurecontainerapps.io/v1}
- LITELLM_MODEL=${LITELLM_MODEL:-openai:taiji/gpt-4o-mini}
- API_HOST=0.0.0.0
- API_PORT=8000
volumes:
- ./projects:/tmp/projects
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
code-assistant-mcp:
build: .
container_name: code-assistant-mcp
ports:
- "8001:8001"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-sk-rxegkFOciNmQLhOHr3qP3A}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://litellm.graystone-fb459c5d.southeastasia.azurecontainerapps.io/v1}
- LITELLM_MODEL=${LITELLM_MODEL:-openai:taiji/gpt-4o-mini}
- MCP_HOST=0.0.0.0
- MCP_PORT=8001
volumes:
- ./projects:/tmp/projects
restart: unless-stopped
command: python run_mcp_server.py --transport http --host 0.0.0.0 --port 8001
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s