-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
54 lines (51 loc) · 1.07 KB
/
docker-compose.yaml
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
services:
qdrant:
image: qdrant/qdrant:latest-unprivileged
restart: always
container_name: qdrant
ports:
- 6333:6333
- 6334:6334
expose:
- 6333
- 6334
- 6335
configs:
- source: qdrant_config
target: /qdrant/config/production.yaml
volumes:
- ./tmp/qdrant_data:/qdrant/storage
user: "1000"
ollama:
image: ollama/ollama:latest
restart: always
container_name: ollama
tty: true
volumes:
- ollama:/root/.ollama
- ./ollama-entrypoint.sh:/ollama-entrypoint.sh
environment:
- OLLAMA_KEEP_ALIVE=12h
ports:
- 11434:11434
expose:
- 11434
entrypoint: ["//bin/sh", "/ollama-entrypoint.sh"]
cache:
container_name: cache
image: ko.local/semantic-cache-a8044edf3c2796d6a5951c230da20a70 # update this to your image
restart: always
#pull_policy: always
ports:
- 8080:8080
depends_on:
- qdrant
- ollama
env_file:
- ./.env
volumes:
ollama:
configs:
qdrant_config:
content: |
log_level: INFO