-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.db.yaml
More file actions
64 lines (60 loc) · 1.66 KB
/
compose.db.yaml
File metadata and controls
64 lines (60 loc) · 1.66 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
include:
- ./compose.network.yaml
volumes:
postgres_zimagi_data: {}
redis_zimagi_data: {}
qdrant_zimagi_data: {}
qdrant_zimagi_snapshots: {}
services:
postgresql-zimagi:
image: 'postgres:17.4'
command: postgres -c 'max_connections=1000'
networks:
- zimagi-net
volumes:
- 'postgres_zimagi_data:/var/lib/postgresql/data'
environment:
POSTGRES_DB: zimagi
POSTGRES_USER: zimagi
POSTGRES_PASSWORD: ${ZIMAGI_POSTGRES_PASSWORD}
ports:
- '${ZIMAGI_HOST_POSTGRES_PORT}:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d zimagi -U zimagi']
interval: 1s
timeout: 5s
retries: 10
redis-zimagi:
image: 'redis:7.4.3'
command: redis-server --requirepass ${ZIMAGI_REDIS_PASSWORD}
networks:
- zimagi-net
volumes:
- 'redis_zimagi_data:/data'
ports:
- '${ZIMAGI_HOST_REDIS_PORT}:6379'
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'ping']
interval: 1s
timeout: 5s
retries: 10
qdrant-zimagi:
image: 'qdrant/qdrant:v1.14.1'
networks:
- zimagi-net
volumes:
- 'qdrant_zimagi_data:/qdrant/storage'
- 'qdrant_zimagi_snapshots:/qdrant/snapshots'
environment:
QDRANT__LOG_LEVEL: DEBUG
QDRANT__STORAGE__SNAPSHOTS_PATH: /qdrant/snapshots
QDRANT__STORAGE__TEMP_PATH: /qdrant/snapshots/tmp
QDRANT__SERVICE__MAX_REQUEST_SIZE_MB: 1000
QDRANT__SERVICE__API_KEY: ${ZIMAGI_QDRANT_ACCESS_KEY}
ports:
- '${ZIMAGI_HOST_QDRANT_PORT}:6333'
healthcheck:
test: ['CMD-SHELL', 'bash -c ":> /dev/tcp/127.0.0.1/6333" || exit 1']
interval: 5s
timeout: 5s
retries: 20