-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathquickstart-services-ai-debug.yml
386 lines (368 loc) · 10.4 KB
/
quickstart-services-ai-debug.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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
version: '3.7'
volumes:
alkemio_dev_mysql:
alkemio_dev_postgres:
tmpvolume:
rabbitmq_data:
driver: local
networks:
alkemio_dev_net:
services:
traefik:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_traefik
image: traefik:v2.9.6
restart: always
ports:
- 8888:8080
- 8088:8088
- 3000:80
- 3306:3306
- 5432:5432
- 8008:8008
- 4436:4436
- 4437:4437
- 1025:1025
- 5672:5672
- 15672:15672
- 6379:6379
networks:
- alkemio_dev_net
environment:
- TZ=Europe/Amsterdam
volumes:
- type: bind
source: ./.build/traefik/
target: /etc/traefik/
mysql:
container_name: alkemio_dev_mysql
image: mysql:8.3.0
networks:
- alkemio_dev_net
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
restart: always
ports:
- 3306
volumes:
- alkemio_dev_mysql:/var/lib/mysql
- ./.scripts/schema.sql:/bootstrap_scripts/1.sql
- ./.scripts/migrations/CSVs:/tmp/CSVs
- tmpvolume:/tmp
command: --init-file /bootstrap_scripts/1.sql
kratos-migrate:
container_name: alkemio_dev_kratos_migrate
image: oryd/kratos:v1.2.0
depends_on:
- mysql
environment:
- DSN=mysql://root:${MYSQL_ROOT_PASSWORD}@tcp(${DATABASE_HOST}:3306)/kratos?max_conns=20&max_idle_conns=4
restart: on-failure
networks:
- alkemio_dev_net
volumes:
- type: bind
source: ./.build/ory/kratos
target: /etc/config/kratos
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
kratos:
container_name: alkemio_dev_kratos
image: oryd/kratos:v1.2.0
depends_on:
- kratos-migrate
ports:
- 4433
- 4434
restart: unless-stopped
environment:
- DSN=mysql://root:${MYSQL_ROOT_PASSWORD}@tcp(${DATABASE_HOST}:3306)/kratos?max_conns=20&max_idle_conns=4
- LOG_LEVEL=trace
networks:
- alkemio_dev_net
volumes:
- type: bind
source: ./.build/ory/kratos
target: /etc/config/kratos
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
oathkeeper:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_oathkeeper
image: oryd/oathkeeper:v0.38.19-beta.1
restart: always
depends_on:
- kratos
ports:
- 4455
- 4456
environment:
- LOG_LEVEL=debug
networks:
- alkemio_dev_net
volumes:
- ./.build/ory/oathkeeper:/etc/config/oathkeeper
command: serve proxy -c "/etc/config/oathkeeper/oathkeeper.yml"
mailslurper:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_kratos_mailslurper
image: oryd/mailslurper:latest-smtps
restart: always
ports:
- 4436
- 4437
- 1025
networks:
- alkemio_dev_net
synapse:
container_name: alkemio_dev_synapse
image: matrixdotorg/synapse:v1.98.0
depends_on:
- postgres
restart: always
environment:
- SYNAPSE_NO_TLS=true
- SYNAPSE_ENABLE_REGISTRATION=true
- SYNAPSE_HOMESERVER_NAME
- SYNAPSE_SERVER_URL
- SYNAPSE_SERVER_SHARED_SECRET
networks:
- alkemio_dev_net
ports:
- 8008
volumes:
- type: bind
source: ./.build/synapse
target: /data
postgres:
container_name: alkemio_dev_postgres
image: postgres:12
networks:
- alkemio_dev_net
environment:
- POSTGRES_DB=synapse
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --lc-collate=C --lc-ctype=C
restart: always
ports:
- 5432
volumes:
- alkemio_dev_postgres:/var/lib/postgresql/data
rabbitmq:
container_name: alkemio_dev_rabbitmq
image: rabbitmq:3.9.13-management
restart: always
networks:
- alkemio_dev_net
ports:
- 5672
- 15672
environment:
- RABBITMQ_SECURE_PASSWORD=yes
- RABBITMQ_DEFAULT_USER=alkemio-admin
- RABBITMQ_DEFAULT_PASS=alkemio!
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 30s
timeout: 30s
retries: 10
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/mnesia
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
command:
[
'bash',
'-c',
'chmod 400 /var/lib/rabbitmq/.erlang.cookie; rabbitmq-server --hostname rmq',
]
matrix-adapter:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_matrix_adapter
hostname: matrix-adapter
image: alkemio/matrix-adapter:v0.3.1
environment:
- RABBITMQ_HOST
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- SYNAPSE_HOMESERVER_NAME
- SYNAPSE_SERVER_URL
- SYNAPSE_SERVER_SHARED_SECRET
- SYNAPSE_SERVER_NAME
- LOGGING_CONSOLE_ENABLED
- LOGGING_LEVEL_CONSOLE
- ENVIRONMENT=dev
- WAIT_HOSTS=host.docker.internal:3000
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
restart: always
networks:
- alkemio_dev_net
command: sh -c "/wait && npm run start"
redis:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_redis
hostname: redis
image: redis:7.0.2
restart: always
networks:
- alkemio_dev_net
ports:
- 6379
virtual_contributor_engine_guidance:
container_name: alkemio_dev_virtual_contributor_engine_guidance
hostname: virtual-contributor-engine-guidance
build:
context: '../virtual-contributor-engine-guidance'
dockerfile: ../virtual-contributor-engine-guidance/Dockerfile
platform: linux/x86_64
restart: always
volumes:
- /dev/shm:/dev/shm
- ~/alkemio/data:${AI_LOCAL_PATH:-/home/alkemio/data}
networks:
- alkemio_dev_net
depends_on:
rabbitmq:
condition: "service_healthy"
environment:
- RABBITMQ_HOST
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- ENVIRONMENT=dev
- EMBEDDINGS_DEPLOYMENT_NAME
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- OPENAI_API_VERSION
- AI_MODEL_TEMPERATURE
- AI_SOURCE_WEBSITE
- AI_SOURCE_WEBSITE2
- AI_WEBSITE_REPO
- AI_WEBSITE_REPO2
- AI_LOCAL_PATH
- AI_GITHUB_USER
- AI_GITHUB_PAT
- LLM_DEPLOYMENT_NAME
- LANGCHAIN_TRACING_V2
- LANGCHAIN_ENDPOINT
- LANGCHAIN_API_KEY
- LANGCHAIN_PROJECT=virtual-contributor-engine-guidance
# virtual-contributor-engine-community-manager:
# container_name: alkemio_dev_community_manager
# hostname: virtual-contributor-engine-community-manager
# build:
# context: '../virtual-contributor-engine-community-manager'
# dockerfile: ../virtual-contributor-engine-community-manager/Dockerfile
# platform: linux/x86_64
# restart: always
# volumes:
# - /dev/shm:/dev/shm
# - ~/alkemio/data:${AI_LOCAL_PATH:-/home/alkemio/data}
# networks:
# - alkemio_dev_net
# depends_on:
# rabbitmq:
# condition: "service_healthy"
# environment:
# - RABBITMQ_HOST
# - RABBITMQ_USER
# - RABBITMQ_PASSWORD
# - RABBITMQ_QUEUE=virtual-contributor-engine-community-manager
# - ENVIRONMENT=dev
# - LOG_LEVEL=DEBUG
# - EMBEDDINGS_DEPLOYMENT_NAME
# - AZURE_OPENAI_API_KEY
# - AZURE_OPENAI_ENDPOINT
# - OPENAI_API_VERSION
# - AI_MODEL_TEMPERATURE
# - AI_LOCAL_PATH
# - LLM_DEPLOYMENT_NAME
# - LANGCHAIN_TRACING_V2
# - LANGCHAIN_ENDPOINT
# - LANGCHAIN_API_KEY
# - LANGCHAIN_PROJECT=virtual-contributor-engine-community-manager
virtual_contributor_ingest_space:
container_name: alkemio_dev_virtual_contributor_ingest_space
hostname: virtual-contributor-ingest-space
build:
dockerfile: ../virtual-contributor-ingest-space/Dockerfile
context: '../virtual-contributor-ingest-space/'
platform: linux/x86_64
restart: always
volumes:
- /dev/shm:/dev/shm
- ~/alkemio/data:${AI_LOCAL_PATH:-/home/alkemio/data}
networks:
- alkemio_dev_net
depends_on:
rabbitmq:
condition: "service_healthy"
environment:
- RABBITMQ_HOST
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- RABBITMQ_PORT
- RABBITMQ_QUEUE=virtual-contributor-ingest-space
- ENVIRONMENT=dev
- LOG_LEVEL=DEBUG
- EMBEDDINGS_DEPLOYMENT_NAME
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- OPENAI_API_VERSION
- AI_MODEL_TEMPERATURE
- AI_LOCAL_PATH
- LLM_DEPLOYMENT_NAME
- LANGCHAIN_TRACING_V2
- LANGCHAIN_ENDPOINT
- LANGCHAIN_API_KEY
- LANGCHAIN_PROJECT=virtual-contributor-ingest-space
- VECTOR_DB_HOST
- VECTOR_DB_PORT
- AUTH_ADMIN_EMAIL
- AUTH_ADMIN_PASSWORD
- API_ENDPOINT_PRIVATE_GRAPHQL=http://host.docker.internal:3000/api/private/non-interactive/graphql
- AUTH_ORY_KRATOS_PUBLIC_BASE_URL=http://host.docker.internal:3000/ory/kratos/public
virtual_contributor_engine_expert:
container_name: alkemio_dev_virtual-contributor-engine-expert
hostname: virtual-contributor-engine-expert
build:
dockerfile: ../virtual-contributor-engine-expert//Dockerfile
context: '../virtual-contributor-engine-expert/'
platform: linux/x86_64
restart: always
volumes:
- /dev/shm:/dev/shm
networks:
- alkemio_dev_net
depends_on:
rabbitmq:
condition: "service_healthy"
environment:
- RABBITMQ_HOST
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- RABBITMQ_PORT
- RABBITMQ_QUEUE=virtual-contributor-engine-expert
- API_ENDPOINT_PRIVATE_GRAPHQL=http://host.docker.internal:3000/api/private/non-interactive/graphql
- AUTH_ORY_KRATOS_PUBLIC_BASE_URL=http://host.docker.internal:3000/ory/kratos/public
- AUTH_ADMIN_EMAIL
- AUTH_ADMIN_PASSWORD
- OPENAI_API_VERSION
- AI_MODEL_TEMPERATURE
- LOG_LEVEL=DEBUG
- AZURE_OPENAI_ENDPOINT=https://alkemio-gpt.openai.azure.com
- AZURE_OPENAI_API_KEY
- LLM_DEPLOYMENT_NAME=deploy-gpt-35-turbo
- EMBEDDINGS_DEPLOYMENT_NAME=embedding
- LANGCHAIN_TRACING_V2
- LANGCHAIN_ENDPOINT
- LANGCHAIN_API_KEY
- LANGCHAIN_PROJECT=virtual-contributor-engine-expert
- VECTOR_DB_PORT
- VECTOR_DB_HOST
- AI_LOCAL_PATH=./