-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 930 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 930 Bytes
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
version: "3.9"
services:
ollama:
image: ollama/ollama:latest
container_name: kga-ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
restart: unless-stopped
backend:
build: ./backend
container_name: kga-backend
ports:
- "8000:8000"
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- OLLAMA_MODEL=llama3.2
- LLM_TEMPERATURE=0.1
- CHUNK_SIZE=1500
- CHUNK_OVERLAP=200
- MAX_CHUNKS=6
- MAX_ENTITIES_PER_CHUNK=10
- MAX_RELS_PER_CHUNK=8
- MAX_GRAPH_NODES=200
- LOG_LEVEL=INFO
- CORS_ORIGINS=*
depends_on:
- ollama
restart: unless-stopped
frontend:
build: ./frontend
container_name: kga-frontend
ports:
- "8501:8501"
environment:
- BACKEND_URL=http://backend:8000
depends_on:
- backend
restart: unless-stopped
volumes:
ollama_data: