-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.dev.yml
92 lines (84 loc) · 1.93 KB
/
docker-compose.dev.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
88
89
90
91
92
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
network_mode: host
command: redis-server --appendonly yes
nats:
container_name: nats
image: nats:latest
command: ["-c", "/etc/nats/nats-server.conf"]
ports:
- 4222:4222
- 8222:8222
- 6222:6222
volumes:
- ./config/nats-local.conf:/etc/nats/nats-server.conf
- nats-data:/data
env_file:
- ./config/nats/.env
environment:
- ADMIN_PASSWORD
- SYSTEM_PASSWORD
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8222/healthz"]
interval: 10s
timeout: 5s
retries: 5
postgres:
image: pgvector/pgvector:pg17
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
network_mode: host
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
container_name: minio
environment:
MINIO_ROOT_USER: "minioadmin"
MINIO_ROOT_PASSWORD: "minioadmin"
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
network_mode: host
command: server /data --console-address ":9001"
chroma:
image: chromadb/chroma:latest
volumes:
- chroma_data:/chroma/chroma
ports:
- "8000:8000"
network_mode: host
environment:
- CHROMA_SERVER_HOST=0.0.0.0
- CHROMA_SERVER_HTTP_PORT=8000
- ALLOW_RESET=true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/heartbeat"]
interval: 10s
timeout: 5s
retries: 5
volumes:
redis_data:
postgres_data:
minio_data:
chroma_data:
nats-data:
driver: local