-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (92 loc) · 2.33 KB
/
docker-compose.yml
File metadata and controls
98 lines (92 loc) · 2.33 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
version: '3.8'
services:
# Qdrant Vector Database - for HiMem semantic notes storage
qdrant:
image: qdrant/qdrant:latest
container_name: himem_qdrant
ports:
- "6333:6333"
- "6334:6334"
environment:
QDRANT_API_KEY: ${QDRANT_API_KEY:-your_secret_key}
volumes:
- qdrant_storage:/qdrant/storage
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/health"]
interval: 10s
timeout: 5s
retries: 5
networks:
- himem_network
# OpenSearch - for HiMem episode/conversation storage
opensearch:
image: opensearchproject/opensearch:latest
container_name: himem_opensearch
environment:
- cluster.name=opensearch-cluster
- discovery.type=single-node
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-AdminPass@123}
- DISABLE_SECURITY_PLUGIN=true
ports:
- "9200:9200"
- "9600:9600"
volumes:
- opensearch_data:/usr/share/opensearch/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200/"]
interval: 10s
timeout: 5s
retries: 5
networks:
- himem_network
# MongoDB - Alternative to Qdrant for vector storage
mongodb:
image: mongo:7.0
container_name: himem_mongodb
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: langgraph_retrieval_agent
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
networks:
- himem_network
profiles:
- mongodb # Only start with: docker-compose --profile mongodb up
volumes:
qdrant_storage:
driver: local
opensearch_data:
driver: local
mongodb_data:
driver: local
networks:
himem_network:
driver: bridge
# Usage:
#
# Start all services (Qdrant + OpenSearch):
# docker-compose up -d
#
# Start with MongoDB instead of Qdrant:
# docker-compose --profile mongodb up -d
#
# View logs:
# docker-compose logs -f
#
# Stop services:
# docker-compose down
#
# Clean up volumes:
# docker-compose down -v
#
# Verify services:
# curl http://localhost:6333/health # Qdrant
# curl http://localhost:9200 # OpenSearch
# mongosh mongodb://localhost:27017 # MongoDB