forked from severian42/GraphRAG-Local-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.8 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
# cbt-graph-rag-containerised: Dynamic Model Discovery (2026)
version: '3.8'
services:
graphrag-api:
build: .
container_name: graphrag-api
environment:
- PYTHONPATH=/app
- GRAPHRAG_API_KEY=ollama
- OLLAMA_BASE_URL=http://host.docker.internal:11434/v1
ports:
- "8012:8012"
volumes:
- ./input:/app/input
- ./indexing:/app/indexing
- ./lancedb:/app/lancedb
- ./indexing/output:/app/output
- ./indexing/output:/app/indexing/output
command: python api.py --host 0.0.0.0 --port 8012
graphrag-ui:
build: .
container_name: graphrag-ui
environment:
- PYTHONPATH=/app
- GRAPHRAG_API_KEY=ollama
# THE FIX: Point UI to the API service name
- API_URL=http://graphrag-api:8012
- GRADIO_SERVER_NAME=0.0.0.0
- LLM_API_BASE=http://host.docker.internal:11434/v1
- EMBEDDINGS_API_BASE=http://host.docker.internal:11434/v1
ports:
- "7860:7860"
volumes:
- .:/app # Mount the whole root so .env updates are persisted to your Mac
- ./indexing/output:/app/output
- ./indexing/output:/app/indexing/output
depends_on:
- graphrag-api
command: python app.py
graphrag-indexer:
build: .
container_name: graphrag-indexer
environment:
- PYTHONPATH=/app
- GRAPHRAG_API_KEY=ollama
- API_URL=http://graphrag-api:8012
- GRADIO_SERVER_NAME=0.0.0.0
- LLM_API_BASE=http://host.docker.internal:11434/v1
- EMBEDDINGS_API_BASE=http://host.docker.internal:11434/v1
ports:
- "7861:7861"
volumes:
- .:/app
- ./indexing/output:/app/output
- ./indexing/output:/app/indexing/output
depends_on:
- graphrag-api
command: python index_app.py
networks:
default:
name: graphrag-network
driver: bridge