Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (86 loc) · 2.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (86 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
api:
build:
context: .
target: run
args:
VERSION_PREFIX: 1.0.0.0
VERSION_SUFFIX: docker
ports:
- "7320:7320"
environment:
DOTNET_ENVIRONMENT: docker
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
volumes:
- movie-reviews-data:/app/data
networks:
- cleanmodelcontextprotocol_network
depends_on:
- otel-collector
inspector:
image: ghcr.io/modelcontextprotocol/inspector:2.13.0
command: ["--web", "--transport", "http", "--server-url", "http://api:7320/mcp"]
environment:
# The Inspector only accepts calls from the origin it listens on, so it listens on the same port inside and out.
CLIENT_PORT: "7325"
ports:
- "127.0.0.1:7325:7325"
networks:
- cleanmodelcontextprotocol_network
depends_on:
- api
otel-collector:
image: otel/opentelemetry-collector:0.164.0
volumes:
- ./otel-collector.yaml:/etc/otelcol/config.yaml:ro
ports:
- "7323:4317"
- "7324:4318"
networks:
- cleanmodelcontextprotocol_network
depends_on:
- aspire-dashboard
aspire-dashboard:
image: mcr.microsoft.com/dotnet/aspire-dashboard:13.6.2
ports:
- "7322:18888"
environment:
ASPIRE_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS: "true"
networks:
- cleanmodelcontextprotocol_network
#if (!includeAuth)
# Optional chat over the MCP server: docker compose --profile demo up -d --build. Prompts go to Kilo, a third party.
chat:
image: ghcr.io/open-webui/open-webui:v0.13.0
profiles:
- demo
ports:
- "127.0.0.1:7326:8080"
environment:
# Kilo's free gateway takes no API key, and a dummy one gets a 401.
OPENAI_API_BASE_URL: https://api.kilo.ai/api/gateway
DEFAULT_MODELS: kilo-auto/free
ENABLE_OLLAMA_API: "False"
WEBUI_AUTH: "False"
TOOL_SERVER_CONNECTIONS: '[{"url":"http://api:7320/mcp","path":"","type":"mcp","auth_type":"none","key":"","config":{"enable":true},"info":{"id":"mcp","name":"MCP server"}}]'
# Turns the MCP server on in every chat, and leaves out Open WebUI's own tools so the model only sees ours.
DEFAULT_MODEL_METADATA: '{"toolIds":["server:mcp:mcp"],"capabilities":{"builtin_tools":false}}'
# These two skip the embedding model download from Hugging Face on first start.
OFFLINE_MODE: "True"
BYPASS_EMBEDDING_AND_RETRIEVAL: "True"
volumes:
- chat-data:/app/backend/data
networks:
- cleanmodelcontextprotocol_network
depends_on:
- api
#endif
volumes:
movie-reviews-data:
#if (!includeAuth)
chat-data:
#endif
networks:
cleanmodelcontextprotocol_network:
driver: bridge