version: '3.8'
services:
opmanager-mcp:
build:
context: .
dockerfile: Dockerfile
container_name: opmanager-mcp-server
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Server configuration only (credential-less design)
# Allowed HTTP methods (comma-separated) - GET,POST,PUT,DELETE,PATCH are supported
- MCP_SERVER_LOG_LEVEL=${MCP_SERVER_LOG_LEVEL:-INFO}
- MCP_SERVER_LOG_JSON=${MCP_SERVER_LOG_JSON:-true}
- ALLOWED_HTTP_METHODS=${ALLOWED_HTTP_METHODS:-GET}
# Optional: Custom OpenAPI spec path
# - LOCAL_OPENAPI_SPEC_PATH=/app/openapi.json
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
- ./logs:/app/logs
networks:
- mcp-network
networks:
mcp-network:
driver: bridge