59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
mcp-kubernetes:
|
|
build: ./mcp-kubernetes
|
|
container_name: ollama-mcp-kubernetes
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config:/root/.kube: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-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 |