feat: add docker-compose.yml for ollama-mcp

This commit is contained in:
Claude AI
2026-01-11 13:14:47 +00:00
parent abd4f5c1d6
commit 814af9efd6

View File

@@ -0,0 +1,61 @@
version: '3.8'
services:
# MCP Server для Kubernetes
mcp-kubernetes:
build: ./mcp-kubernetes
container_name: ollama-mcp-kubernetes
restart: unless-stopped
volumes:
- ./config/kubeconfig:/root/.kube/config:ro
ports:
- "${MCP_K8S_PORT:-3001}:3000"
environment:
- KUBECONFIG=/root/.kube/config
- K8S_CONTEXT=${K8S_CONTEXT:-}
- K8S_NAMESPACE=${K8S_NAMESPACE:-default}
networks:
- mcp-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# MCP Server для Gitea
mcp-gitea:
build: ./mcp-gitea
container_name: ollama-mcp-gitea
restart: unless-stopped
ports:
- "${MCP_GITEA_PORT:-3002}:3000"
environment:
- GITEA_URL=${GITEA_URL}
- GITEA_TOKEN=${GITEA_TOKEN}
- GITEA_OWNER=${GITEA_OWNER:-admin}
networks:
- mcp-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
mcp-network:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16