-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.54 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
services:
# Combined image: HTTP server (UI + API) + MCP server bundled
#
# Build:
# docker compose build app
#
# Run:
# docker compose up app
#
# Then open http://localhost:3000
app:
build:
context: .
dockerfile: Dockerfile
image: adityakarnam/opencontext:latest
container_name: opencontext
ports:
- "3000:3000"
volumes:
- opencontext-data:/root/.opencontext
environment:
- OPENCONTEXT_STORE_PATH=/root/.opencontext/contexts.json
# Ollama runs on the host — host.docker.internal resolves to the host machine IP
- OLLAMA_HOST=http://host.docker.internal:11434
- PORT=3000
# On Linux, host.docker.internal needs to be explicitly mapped
extra_hosts:
- "host.docker.internal:host-gateway"
# MCP stdio mode — used by Claude Desktop / Claude Code
#
# Use with ~/.claude/settings.json or claude_desktop_config.json:
# {
# "mcpServers": {
# "opencontext": {
# "command": "docker",
# "args": ["run", "-i", "--rm", "-v", "opencontext-data:/root/.opencontext", "adityakarnam/opencontext:latest", "node", "dist/mcp/index.js"]
# }
# }
# }
mcp:
image: adityakarnam/opencontext:latest
build:
context: .
dockerfile: Dockerfile
container_name: opencontext-mcp
stdin_open: true
volumes:
- opencontext-data:/root/.opencontext
environment:
- OPENCONTEXT_STORE_PATH=/root/.opencontext/contexts.json
command: ["node", "dist/mcp/index.js"]
volumes:
opencontext-data: