forked from dust-tt/dust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.36 KB
/
docker-compose.yml
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
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
volumes:
- pgsql:/var/lib/postgresql/data
ports:
- 5432:5432
qdrant_primary:
image: "qdrant/qdrant:v1.7.2"
volumes:
- qdrant_primary:/qdrant/storage
ports:
- "6334:6334"
- "6333:6333"
environment:
QDRANT__CLUSTER__ENABLED: "true"
ulimits:
nofile:
soft: 64000
hard: 64000
command: ["./qdrant", "--uri", "http://qdrant_primary:6335"]
healthcheck:
test: ["CMD", "sleep", "5"] # Hack: `curl` not accessible in qdrant image, sleep for 5 seconds.
interval: 1s
timeout: 10s
retries: 1 # Only retry once to minimize delay
qdrant_secondary:
image: "qdrant/qdrant:v1.7.2"
volumes:
- qdrant_secondary:/qdrant/storage
environment:
QDRANT__CLUSTER__ENABLED: "true"
ulimits:
nofile:
soft: 64000
hard: 64000
command: ["./qdrant", "--bootstrap", "http://qdrant_primary:6335"]
depends_on:
qdrant_primary:
condition: service_healthy # Ensure qdrant is healthy before starting qdrant_primary.
redis:
image: redis
ports:
- 6379:6379
apache-tika:
image: apache/tika:2.9.2.1
ports:
- "9998:9998"
volumes:
pgsql:
qdrant_primary:
qdrant_secondary: