-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
120 lines (106 loc) · 2.77 KB
/
docker-compose.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
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
services:
kitchenai:
image: kitchenai-bundle:latest
ports:
- "8001:8001"
network_mode: host
env_file:
- .env
environment:
- KITCHENAI_LOCAL=False
- DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
- SIMPLE_RAG_VECTOR_STORE_ENDPOINT=localhost
- OPENAI_API_KEY=${OPENAI_API_KEY}
command: python kitchenai/ run --module kitchenai.dynamic.app:kitchen
depends_on:
kitchenai-setup:
condition: service_completed_successfully
kitchenai-qcluster:
image: kitchenai-bundle:latest
network_mode: host
depends_on:
kitchenai-setup:
condition: service_completed_successfully
environment:
- KITCHENAI_LOCAL=False
- DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
- SIMPLE_RAG_VECTOR_STORE_ENDPOINT=localhost
- OPENAI_API_KEY=${OPENAI_API_KEY}
env_file:
- .env
command: python manage.py qcluster
kitchenai-setup:
image: kitchenai-bundle:latest
network_mode: host
command: >
sh -c "python kitchenai/ init --local &&
python manage.py migrate"
depends_on:
postgres:
condition: service_healthy
environment:
- DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
- KITCHENAI_LOCAL=False
env_file:
- .env
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
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
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
network_mode: host
command: redis-server --appendonly yes
minio:
image: minio/minio:latest
container_name: minio
environment:
MINIO_ROOT_USER: "minioadmin"
MINIO_ROOT_PASSWORD: "minioadmin"
MINIO_DEFAULT_BUCKETS: "my-bucket:public"
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
network_mode: host
command: server /data --console-address ":9001"
volumes:
redis_data:
postgres_data:
minio_data:
chroma_data: