services: # Upstream MCP Service (Rust) upstream-rs: build: context: ./upstream-rs ports: - "8080:8080" environment: RUST_LOG: info # AgentGateway # Configuration: 4 worker threads agentgateway: image: ghcr.io/agentgateway/agentgateway:latest volumes: - ./agentgateway/config.yaml:/config.yaml ports: - "3000:3000" command: ["-f", "/config.yaml"] deploy: resources: limits: cpus: '4.0' depends_on: - upstream-rs # Envoy AI Gateway # ENVOY_CONCURRENCY=2 GOMAXPROCS=4 aigw run --mcp-config envoy-ai-gateway/mcp-servers.json # Official CLI image # "Envoy part using 2 worker threads, Go sidecar part using 4 threads" #envoy-ai-gateway: #image: envoyproxy/ai-gateway-cli:latest #ports: #- "1975:1975" #volumes: #- ./envoy-ai-gateway/mcp-servers.json:/etc/ai-gateway/mcp-servers.json #command: ["run", "--mcp-config", "/etc/ai-gateway/mcp-servers.json"] #environment: #GOMAXPROCS: "4" # Go sidecar threads #ENVOY_CONCURRENCY: "2" # Envoy threads #depends_on: #- upstream-rs