# VM 5703 — Agent worker: calls 5701 (MCP) and 5702 (inference) # Copy to /opt/ai/agent/ and copy agent.py to /opt/ai/agent/config/ # See: docs/02-architecture/AI_AGENTS_57XX_DEPLOYMENT_PLAN.md Appendix E services: agent: image: python:3.11-slim container_name: ai-agent-prod working_dir: /app volumes: - /opt/ai/agent/config:/app - /opt/ai/agent/logs:/logs env_file: .env environment: MCP_URL: ${MCP_URL:-http://5701:3000/mcp/call} INF_URL: ${INF_URL:-http://5702:8000} MODE: ${MODE:-read-only} POOL_ADDRESS: ${POOL_ADDRESS:-POOL_ADDRESS_HERE} # PG_DSN: postgresql://ai:...@5704:5432/ai # REDIS_URL: redis://5704:6379/0 command: > sh -lc "pip install --no-cache-dir requests && python agent.py" restart: unless-stopped