-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
50 lines (46 loc) · 1.07 KB
/
compose.yaml
File metadata and controls
50 lines (46 loc) · 1.07 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
services:
# https://blog.darkthread.net/blog/qdrant-w-cs/
# https://medium.com/@fadil.parves/qdrant-self-hosted-28a30106e9dd
# https://docs.roocode.com/features/experimental/codebase-indexing
qdrant:
image: qdrant/qdrant:latest
restart: always
ports:
- 6333:6333
configs:
- source: qdrant_config
target: /qdrant/config/production.yaml
volumes:
- qdrant_storage:/qdrant/storage
networks:
- default
- qdrant-net
ollama:
image: ollama/ollama
restart: always
ports:
- "10000:10000"
volumes:
- ollama:/root/.ollama
entrypoint: ["/bin/sh", "-c"]
command:
- |
OLLAMA_HOST=0.0.0.0:10000 ollama serve &
sleep 10
ollama pull mxbai-embed-large
sleep 10
ollama run mxbai-embed-large --ctx-size 4096 --batch-size 512 &
# Keep container running
tail -f /dev/null
networks:
- default
- qdrant-net
configs:
qdrant_config:
content: |
log_level: INFO
volumes:
ollama:
qdrant_storage:
networks:
qdrant-net: {}