-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
139 lines (122 loc) · 3.2 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
services:
kitchenai:
image: epuerta18/kitchenai-bundle:latest
ports:
- "8001:8001"
network_mode: host
# env_file:
# - .env
environment:
- DEBUG=False
- KITCHENAI_LOCAL=False
- DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
- VECTOR_STORE_ENDPOINT=localhost
- OPENAI_API_KEY=${OPENAI_API_KEY}
#command: python kitchenai/ run --module kitchenai.dynamic.app:kitchen
command: python kitchenai/ run
depends_on:
kitchenai-setup:
condition: service_completed_successfully
kitchenai-qcluster:
image: epuerta18/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
- VECTOR_STORE_ENDPOINT=localhost
- OPENAI_API_KEY=${OPENAI_API_KEY}
# env_file:
# - .env
command: python manage.py qcluster
kitchenai-setup:
image: epuerta18/kitchenai-bundle:latest
network_mode: host
command: >
sh -c "python kitchenai/ init"
depends_on:
postgres:
condition: service_healthy
environment:
- DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
- KITCHENAI_LOCAL=False
# env_file:
# - .env
nats:
image: nats:latest
command: ["-c", "/etc/nats/nats-server.conf"]
ports:
- "4222:4222"
- "8222:8222"
- "6222:6222"
volumes:
#bind config when a more robust config is needed
- ./config/nats-playground.conf:/etc/nats/nats-server.conf
- nats-data:/data
# env_file:
# - ./config/nats/.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:
nats-data:
driver: local