forked from EverMind-AI/EverMemOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
163 lines (151 loc) · 3.92 KB
/
docker-compose.yaml
File metadata and controls
163 lines (151 loc) · 3.92 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
version: '3.8'
services:
# MongoDB database
mongodb:
image: mongo:7.0
container_name: memsys-mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: memsys123
MONGO_INITDB_DATABASE: memsys
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- ./docker/mongodb/init:/docker-entrypoint-initdb.d
networks:
- memsys-network
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Elasticsearch search engine
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0
container_name: memsys-elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- bootstrap.memory_lock=true
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "19200:9200"
- "19300:9300"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
networks:
- memsys-network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Milvus vector database
milvus-etcd:
image: quay.io/coreos/etcd:v3.5.5
container_name: memsys-milvus-etcd
restart: unless-stopped
environment:
- ETCD_AUTO_COMPACTION_MODE=revision
- ETCD_AUTO_COMPACTION_RETENTION=1000
- ETCD_QUOTA_BACKEND_BYTES=4294967296
- ETCD_SNAPSHOT_COUNT=50000
command: etcd -advertise-client-urls=http://127.0.0.1:2479 -listen-client-urls http://0.0.0.0:2479 --data-dir /etcd
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- milvus_etcd_data:/etcd
networks:
- memsys-network
milvus-minio:
image: minio/minio:RELEASE.2023-03-20T20-16-18Z
container_name: memsys-milvus-minio
restart: unless-stopped
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
ports:
- "9001:9001"
- "9000:9000"
command: minio server /minio_data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- milvus_minio_data:/minio_data
networks:
- memsys-network
milvus-standalone:
image: milvusdb/milvus:v2.5.2
container_name: memsys-milvus-standalone
restart: unless-stopped
command: ["milvus", "run", "standalone"]
environment:
ETCD_ENDPOINTS: milvus-etcd:2479
MINIO_ADDRESS: milvus-minio:9000
ports:
- "19530:19530"
- "9091:9091"
volumes:
- milvus_data:/var/lib/milvus
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
timeout: 20s
retries: 3
start_period: 90s
depends_on:
- milvus-etcd
- milvus-minio
networks:
- memsys-network
# Redis cache
redis:
image: redis:7.2-alpine
container_name: memsys-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- memsys-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# Memsys main application has been changed to local running:
# Use uv to start the application locally, for example:
# uv run python run.py
volumes:
mongodb_data:
driver: local
elasticsearch_data:
driver: local
milvus_etcd_data:
driver: local
milvus_minio_data:
driver: local
milvus_data:
driver: local
redis_data:
driver: local
networks:
memsys-network:
driver: bridge