-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 1.81 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3'
volumes:
MONGO_VOLUMES:
DQRANT_VOLUMES:
services:
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
deploy:
resources:
limits:
memory: 512M
mongodb:
image: mongo
container_name: mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: anyknowledge
TZ: Asia/Taipei
volumes:
- MONGO_VOLUMES:/data/db
ports:
- '27017:27017'
deploy:
resources:
limits:
memory: 1G
qdrant:
container_name: qdrant
image: qdrant/qdrant:latest
restart: always
ports:
- '6333:6333'
- '6334:6334'
volumes:
- DQRANT_VOLUMES:/qdrant/storage
deploy:
resources:
limits:
memory: 1G
anyknowledge:
image: phillychi3/anyknowledge-server:latest
container_name: anyknowledge
environment:
- VECTOR_DB_URL=qdrant
- VECTOR_DB_PORT=6333
- MONGODB_URL=mongodb:27017
- REDIS_DB=redis:6379
restart: always
ports:
- '8000:8000'
depends_on:
- mongodb
- redis
- qdrant
deploy:
resources:
limits:
memory: 1G
anyknowledge-worker:
image: phillychi3/anyknowledge-server:latest
container_name: anyknowledge-worker
environment:
- REDIS_DB=redis:6379
- KNOWLEDGE_SERVER=http://anyknowledge:8000
- MONGODB_URL=mongodb:27017
- VECTOR_DB_URL=qdrant
- VECTOR_DB_PORT=6333
restart: always
command: dramatiq -p 4 -t 4 worker
depends_on:
- anyknowledge
deploy:
resources:
limits:
memory: 4G