-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathquickstart-services-kratos-debug.yml
340 lines (322 loc) · 8.32 KB
/
quickstart-services-kratos-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
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
- 5001:5001
- 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: --sql_mode="" --default-authentication-plugin=mysql_native_password --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
- type: bind
source: ../kratos
target: /dockerdev
read_only: false
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
kratos:
container_name: alkemio_dev_kratos
build:
context: ../kratos
dockerfile: ../kratos/.docker/Dockerfile-debug
security_opt:
- apparmor=unconfined
cap_add:
- SYS_PTRACE
depends_on:
- kratos-migrate
ports:
- 4433
- 4434
- 9999:40000
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
- type: bind
source: ../kratos
target: /dockerdev
read_only: false
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
synapse-admin:
container_name: alkemio_dev_synapse_admin
hostname: synapse-admin
image: awesometechnologies/synapse-admin:0.8.1
restart: always
networks:
- alkemio_dev_net
ports:
- 80
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',
]
notification:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_notifications
hostname: notifications
image: alkemio/notifications:v0.19.0
environment:
- RABBITMQ_HOST
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- LOGGING_CONSOLE_ENABLED
- LOGGING_LEVEL_CONSOLE
- EMAIL_SMTP_HOST
- EMAIL_MULTI_PROVIDER_STRATEGY
- ENVIRONMENT=dev
- ALKEMIO_SERVER_ENDPOINT
- ALKEMIO_WEBCLIENT_ENDPOINT
- KRATOS_API_PUBLIC_ENDPOINT
- SERVICE_ACCOUNT_USERNAME
- SERVICE_ACCOUNT_PASSWORD
- 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"
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"
wallet-manager:
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: alkemio_dev_wallet_manager
hostname: wallet-manager
image: alkemio/wallet-manager:v0.4.2
environment:
- DID_METHOD
- JOLOCOM_DATABASE_HOST
- MYSQL_ROOT_PASSWORD
- RABBITMQ_HOST
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- 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
guidance_engine:
container_name: alkemio_dev_guidance_engine
hostname: guidance-engine
image: alkemio/guidance-engine:v0.3.0
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
- OPENAI_API_KEY
- OPENAI_API_TYPE
- OPENAI_API_VERSION
- OPENAI_API_BASE
- AI_MODEL_TEMPERATURE
- AI_MODEL_NAME
- AI_DEPLOYMENT_NAME
- AI_EMBEDDINGS_DEPLOYMENT_NAME
- AI_SOURCE_WEBSITE
- AI_WEBSITE_REPO
- AI_LOCAL_PATH