-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathdocker-compose.yml
263 lines (250 loc) · 8.21 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
name: agentcloud
services:
unstructured-api:
ports:
- 9500:9500
container_name: unstructured-api
environment:
- PORT=9500
image: localhost:5000/unstructured-api
docker_rabbitmq:
image: rabbitmq:3.13.1-management
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- "0.0.0.0:5672:5672"
- "0.0.0.0:15672:15672"
docker_mongo:
restart: always
image: mongo:latest
ports:
- "127.0.0.1:27017:27017"
volumes:
- mongodb_data_container:/data/db
docker_redis:
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
image: redis:latest
ports:
- "127.0.0.1:6379:6379"
volumes:
- redis_data:/data
webapp_next:
restart: always
build:
context: webapp/
args:
- GOOGLE_KEYPATH=keyfile.json
- SHORT_COMMIT_HASH=${SHORT_COMMIT_HASH}
# - NEXT_PUBLIC_ENABLE_GOOGLE_OAUTH=
# - NEXT_PUBLIC_ENABLE_GITHUB_OAUTH=
- NEXT_PUBLIC_GCS_BUCKET_NAME=${GCS_BUCKET_NAME}
- NEXT_PUBLIC_GCS_BUCKET_NAME_PRIVATE=${GCS_BUCKET_NAME_PRIVATE}
- NEXT_PUBLIC_HUBSPOT_MEETING_LINK=https://meetings.hubspot.com/andrew520
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_dodwg7nfg2hW2oTyLTiTb14L00vQvEUCYO
- NEXT_PUBLIC_POSTHOG_KEY=
- GOOGLE_APPLICATION_CREDENTIALS=/app/keyfile.json
- NEXT_PUBLIC_STORAGE_PROVIDER=local
- NEXT_PUBLIC_LOCAL_UNSTRUCTURED=1
ports:
- "127.0.0.1:3000:3000"
depends_on:
- docker_rabbitmq
- docker_mongo
- docker_redis
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/app/keyfile.json
- RABBITMQ_PORT=5672
- QUEUE_NAME=streaming
- RABBITMQ_EXCHANGE=agentcloud
- RABBITMQ_ROUTING_KEY=key
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- EXPRESS_HOST=0.0.0.0
- EXPRESS_PORT=3000
- NODE_ENV=development
- DB_URL=mongodb://docker_mongo:27017/test
- REDIS_HOST=docker_redis
- REDIS_PASS=
- JWT_SECRET=changeme
- COOKIE_SECRET=changeme
- AGENT_BACKEND_SOCKET_TOKEN=changeme
- PROJECT_ID=${PROJECT_ID}
- WEBAPP_WEBHOOK_HOST=http://webapp_next:3000
- URL_APP=http://127.0.0.1:3000
- DEBUG=webapp:*
- STRIPE_WEBHOOK_SECRET=
- STRIPE_ACCOUNT_SECRET=
- NEXT_PUBLIC_GCS_BUCKET_NAME=${GCS_BUCKET_NAME}
- NEXT_PUBLIC_GCS_BUCKET_NAME_PRIVATE=${GCS_BUCKET_NAME_PRIVATE}
- OAUTH_GITHUB_CLIENT_ID=
- OAUTH_GITHUB_CLIENT_SECRET=
- OAUTH_GOOGLE_CLIENT_ID=
- OAUTH_GOOGLE_CLIENT_SECRET=
- VECTOR_APP_URL=http://vector_db_proxy:9001
- AIRBYTE_WEB_URL=http://host.docker.internal:8000
- AIRBYTE_API_URL=http://host.docker.internal:8000
- AIRBYTE_ADMIN_WORKSPACE_ID=${AIRBYTE_ADMIN_WORKSPACE_ID}
- AIRBYTE_ADMIN_DESTINATION_ID=${AIRBYTE_ADMIN_DESTINATION_ID}
- AIRBYTE_USERNAME=${AIRBYTE_USERNAME:-airbyte}
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD:-password}
- AIRBYTE_CLIENT_ID=${AIRBYTE_CLIENT_ID}
- AIRBYTE_CLIENT_SECRET=${AIRBYTE_CLIENT_SECRET}
- NEXT_PUBLIC_IS_AIRBYTE_ENABLED=false
- GCS_BUCKET_NAME=${GCS_BUCKET_NAME}
- GCS_BUCKET_LOCATION=${GCS_BUCKET_LOCATION}
- STRIPE_FREE_PLAN_PRICE_ID=price_1P0zlRDxQ9GZKzvoYUAzWMSv
- STRIPE_PRO_PLAN_PRICE_ID=price_1PFrOlDxQ9GZKzvo7Pcb29jS
- STRIPE_TEAMS_PLAN_PRICE_ID=price_1PFrGKDxQ9GZKzvotx5U0JE5
- STRIPE_ADDON_USERS_PRICE_ID=price_1PFrRsDxQ9GZKzvoTFCE6YTz
- STRIPE_ADDON_STORAGE_PRICE_ID=price_1PGClWDxQ9GZKzvoiB8SNOrV
- STRIPE_FREE_PLAN_PRODUCT_ID=prod_Pqh9LfvzCal4Ux
- STRIPE_PRO_PLAN_PRODUCT_ID=prod_OyItEyf2n0TZGj
- STRIPE_TEAMS_PLAN_PRODUCT_ID=prod_PqeXHjZLXeuzyr
- STRIPE_ADDON_USERS_PRODUCT_ID=prod_PqgU2ZCIJqDDRf
- STRIPE_ADDON_STORAGE_PRODUCT_ID=prod_Q6Pao7IJyTNLYv
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_dodwg7nfg2hW2oTyLTiTb14L00vQvEUCYO
- NEXT_PUBLIC_STORAGE_PROVIDER=local
- NEXT_PUBLIC_SECRET_PROVIDER=local
- MESSAGE_QUEUE_PROVIDER=rabbitmq
- UPLOADS_BASE_PATH=/tmp
- NEXT_PUBLIC_LOCAL_UNSTRUCTURED=1
# Note: Only google cloud functions supported currently, so agent-backend doesn't need a provider env (YET)
- FUNCTION_PROVIDER=google
- GOOGLE_FUNCTION_LOCATION=us-central1
- SKIP_STRIPE=
- AIRBYTE_RABBITMQ_HOST=${AIRBYTE_RABBITMQ_HOST}
volumes:
- datasource_files:/tmp
extra_hosts:
- "host.docker.internal:host-gateway"
webapp_syncserver:
restart: always
build:
context: webapp/
dockerfile: Dockerfile_syncserver
args:
- GOOGLE_KEYPATH=keyfile.json
- GOOGLE_APPLICATION_CREDENTIALS=/app/keyfile.json
depends_on:
- docker_rabbitmq
- docker_mongo
- docker_redis
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/app/keyfile.json
- NODE_ENV=development
- DB_URL=mongodb://docker_mongo:27017/test
- REDIS_HOST=docker_redis
- REDIS_PASS=
- DEBUG=webapp:*,sync-server:*
- VECTOR_APP_URL=http://vector_db_proxy:9001
- AIRBYTE_WEB_URL=http://airbyte-proxy:8000
- AIRBYTE_API_URL=http://airbyte-proxy:8006
- AIRBYTE_USERNAME=airbyte
- AIRBYTE_PASSWORD=password
- NEXT_PUBLIC_STORAGE_PROVIDER=local
- NEXT_PUBLIC_SECRET_PROVIDER=local
- MESSAGE_QUEUE_PROVIDER=rabbitmq
agent_backend:
restart: always
build:
context: agent-backend/
args:
- SHORT_COMMIT_HASH=${SHORT_COMMIT_HASH}
ports:
- '127.0.0.1:8080:8080'
depends_on:
- webapp_next
image: agent_backend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- datasource_files:/tmp
environment:
- LOCAL=True
- MAX_THREADS=50
- BASE_PATH=/app
- SOCKET_URL=http://webapp_next:3000/
- DB_URL=mongodb://docker_mongo:27017/test
- REDIS_HOST=docker_redis
- QDRANT_HOST=http://qdrant
- MONGO_DB_NAME=test
- MAX_RETRIES=10
- AGENT_BACKEND_SOCKET_TOKEN=changeme
# Note: Only google cloud functions supported currently, so agent-backend doesn't need a provider env (YET)
- FUNCTION_PROVIDER=google
# Notes: Modify the following google cloud storage values to use your own:
- GOOGLE_FUNCTION_LOCATION=us-central1
- GCS_BUCKET_NAME_PRIVATE=agentcloud-bucket-dev
- GCS_BUCKET_NAME=agentcloud-public-dev
- UPLOADS_BASE_PATH=/tmp
- GOOGLE_APPLICATION_CREDENTIALS=keyfile.json
- PROJECT_ID=agentcloud-dev
- STORAGE_PROVIDER=local
- WEBAPP_URL=http://localhost:3000/
vector_db_proxy:
restart: always
depends_on:
- docker_rabbitmq
- qdrant
build:
context: vector-db-proxy/
args:
- RELEASE=${RELEASE}
- GOOGLE_KEYPATH=keyfile.json
- SHORT_COMMIT_HASH=${SHORT_COMMIT_HASH}
ports:
- '127.0.0.1:9001:9001'
image: vector_db_proxy
environment:
- HOST=0.0.0.0
- PORT=9001
- MONGO_URI=mongodb://docker_mongo:27017
- MONGO_DB_NAME=test
- RABBITMQ_HOST=docker_rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_STREAM=streaming
- RABBITMQ_EXCHANGE=agentcloud
- RABBITMQ_ROUTING_KEY=key
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- QDRANT_URI=http://qdrant:6334
- QDRANT_HOST=http://qdrant
- QDRANT_PORT=6334
- REDIS_HOST=docker_redis
- REDIS_PORT=6379
- WEBAPP_HOST=webapp_next
- THREAD_PERCENTAGE_UTILISATION=0.8
- USE_GPU=false
- LOGGING_LEVEL=warn
- UNSTRUCTURED_API_URL=http://unstructured-api:9500/general/v0/general
volumes:
- datasource_files:/tmp
qdrant:
ports:
- '0.0.0.0:6333:6333'
- '0.0.0.0:6334:6334'
image: qdrant/qdrant
environment:
- QDRANT__LOG_LEVEL=DEBUG
volumes:
- qdrant_data:/qdrant_data
# minio:
# image: minio/minio
# container_name: minio
# ports:
# - "9000:9000"
# environment:
# MINIO_ROOT_USER: "minioadmin"
# MINIO_ROOT_PASSWORD: "minioadmin"
# volumes:
# - minio_data:/data
# command: server /data
volumes:
mongodb_data_container:
redis_data:
datasource_files:
qdrant_data:
minio_data: