-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (100 loc) · 3.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
103 lines (100 loc) · 3.15 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
services:
memorymaster:
build:
context: .
dockerfile: Dockerfile
container_name: memorymaster
command:
- "${MEMORYMASTER_SERVICE_ENTRYPOINT:-memorymaster-dashboard}"
- --host
- 0.0.0.0
- --port
- "8765"
- --db
- /data/memorymaster.db
- --workspace
- /data
ports:
- "127.0.0.1:8765:8765"
volumes:
- ./data:/data
- type: bind
source: "${QDRANT_CA_CERT:?Set QDRANT_CA_CERT to the Qdrant CA certificate}"
target: /run/secrets/qdrant-ca.pem
read_only: true
environment:
MEMORYMASTER_DEFAULT_DB: /data/memorymaster.db
MEMORYMASTER_WORKSPACE: /data
MEMORYMASTER_DASHBOARD_TOKEN_VIEWER: "${MEMORYMASTER_DASHBOARD_TOKEN_VIEWER:-}"
MEMORYMASTER_MCP_HTTP_TOKEN: "${MEMORYMASTER_MCP_HTTP_TOKEN:-}"
MEMORYMASTER_MCP_HTTP_ALLOWED_HOSTS: "127.0.0.1:*,localhost:*"
QDRANT_URL: https://qdrant:6333
QDRANT_API_KEY: "${QDRANT_API_KEY:?Set QDRANT_API_KEY before rendering Compose}"
QDRANT_CA_CERT: /run/secrets/qdrant-ca.pem
OLLAMA_URL: http://ollama:11434
depends_on:
qdrant:
condition: service_healthy
ollama:
condition: service_started
restart: unless-stopped
cpus: "0.50"
mem_limit: 512m
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8765/readyz', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
qdrant:
image: "qdrant/qdrant@${QDRANT_IMAGE_DIGEST:?Set QDRANT_IMAGE_DIGEST to sha256:<digest>}"
container_name: qdrant
ports:
- "127.0.0.1:6333:6333"
- "127.0.0.1:6334:6334"
environment:
QDRANT__SERVICE__API_KEY: "${QDRANT_API_KEY:?Set QDRANT_API_KEY before rendering Compose}"
QDRANT__SERVICE__ENABLE_TLS: "true"
QDRANT__TLS__CERT: /qdrant/tls/cert.pem
QDRANT__TLS__KEY: /qdrant/tls/key.pem
volumes:
- qdrant_data:/qdrant/storage
- type: bind
source: "${QDRANT_TLS_CERT:?Set QDRANT_TLS_CERT to the Qdrant server certificate}"
target: /qdrant/tls/cert.pem
read_only: true
- type: bind
source: "${QDRANT_TLS_KEY:?Set QDRANT_TLS_KEY to the Qdrant private key}"
target: /qdrant/tls/key.pem
read_only: true
- type: bind
source: "${QDRANT_CA_CERT:?Set QDRANT_CA_CERT to the Qdrant CA certificate}"
target: /qdrant/tls/ca.pem
read_only: true
restart: unless-stopped
cpus: "1.00"
mem_limit: 1g
healthcheck:
test:
- CMD-SHELL
- >-
wget --no-verbose --tries=1 --spider
--ca-certificate=/qdrant/tls/ca.pem
--header="api-key: $${QDRANT__SERVICE__API_KEY}"
https://qdrant:6333/collections
interval: 15s
timeout: 5s
retries: 3
ollama:
image: "ollama/ollama@${OLLAMA_IMAGE_DIGEST:?Set OLLAMA_IMAGE_DIGEST to sha256:<digest>}"
container_name: ollama
ports:
- "127.0.0.1:11434:11434"
volumes:
- ollama_data:/root/.ollama
restart: unless-stopped
cpus: "2.00"
mem_limit: 4g
volumes:
qdrant_data:
ollama_data: