-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 816 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
services:
frontend:
build: ./frontend
ports:
- "3000:80"
depends_on:
- backend
backend:
build: ./backend
ports:
- "4000:4000"
volumes:
- ${DATA_PATH:-./data}:/app/data
- ./config.json:/app/config.json
depends_on:
- chromadb
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DATA_PATH=/app/data
- OLLAMA_URL=${OLLAMA_URL:-http://host.docker.internal:11434}
- CHROMA_URL=http://chromadb:8000
ollama:
image: ollama/ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
profiles:
- with-ollama
chromadb:
image: chromadb/chroma
ports:
- "8000:8000"
volumes:
- chroma_data:/chroma/chroma
volumes:
ollama_data:
chroma_data: