-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstack.yml
More file actions
520 lines (520 loc) · 24.3 KB
/
stack.yml
File metadata and controls
520 lines (520 loc) · 24.3 KB
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
# vibetype.app
# https://vibetype.app/
# Vibetype
# https://github.com/maevsi/vibetype/
---
secrets:
jobber_aliases:
# The job scheduler's SMTP client mail alias.
file: ./secrets/jobber/aliases.secret
jobber_aws-bucket:
# The job scheduler's AWS bucket name.
file: ./secrets/jobber/aws-bucket.secret
jobber_aws-credentials:
# The job scheduler's AWS credentials.
file: ./secrets/jobber/aws-credentials.secret
jobber_aws-configuration:
# The job scheduler's AWS configuration.
file: ./secrets/jobber/aws-configuration.secret
jobber_msmtprc:
# The job scheduler's SMTP client configuration.
file: ./secrets/jobber/msmtprc.secret
portainer_admin-password:
# The container manager's admin password.
file: ./secrets/portainer/admin-password.secret
postgraphile_connection:
# The GraphQL API's database URI.
file: ./secrets/postgraphile/connection.secret
postgraphile_jwt-secret:
# The GraphQL API's JWT secret.
file: ./secrets/postgraphile/jwt-secret.secret
postgraphile_owner-connection:
# The GraphQL API's database owner URI.
file: ./secrets/postgraphile/owner-connection.secret
postgres_db:
# The database's name.
file: ./secrets/postgres/db.secret
postgres_password:
# The database's password.
file: ./secrets/postgres/password.secret
postgres_role_service_grafana_password:
# The password of the observation dashboard's database role.
file: ./secrets/postgres/role_service_grafana_password.secret
postgres_role_service_grafana_username:
# The username of the observation dashboard's database role.
file: ./secrets/postgres/role_service_grafana_username.secret
postgres_role_service_postgraphile_password:
# The password of the GraphQL API database wrapper's database role.
file: ./secrets/postgres/role_service_postgraphile_password.secret
postgres_role_service_postgraphile_username:
# The username of the GraphQL API database wrapper's database role.
file: ./secrets/postgres/role_service_postgraphile_username.secret
postgres_role_service_vibetype_password:
# The `tusd` database role's password.
file: ./secrets/postgres/role_service_vibetype_password.secret
postgres_role_service_vibetype_username:
# The `tusd` database role's password.
file: ./secrets/postgres/role_service_vibetype_username.secret
postgres_user:
# The database's default user.
file: ./secrets/postgres/user.secret
sqitch_target:
# The database change management application's database connection string.
file: ./secrets/sqitch/target.secret
tusd_aws:
# The upload service's s3 credentials file.
file: ./secrets/tusd/aws.secret
vibetype_api-notification-secret:
# The notification endpoint's secret.
file: ./secrets/vibetype/api-notification.secret
vibetype_aws-credentials:
# The cloud computing provider's user credentials.
file: ./secrets/vibetype/aws-credentials.secret
vibetype_firebase-service-account-credentials:
# The notification provider's service account credentials.
file: ./secrets/vibetype/firebase-service-account-credentials.secret
vibetype_monday:
# The project management software's configuration.
file: ./secrets/vibetype/monday.secret
vibetype_openai-api-key:
# The AI provider's API key.
file: ./secrets/vibetype/openai-api-key.secret
vibetype_turnstile-key:
# The captcha provider's application key.
file: ./secrets/vibetype/turnstile-key.secret
services:
adminer:
# You can access the database's frontend at [adminer.localhost](https://adminer.localhost/).
# This information is required for login:
#
# | | |
# | -------- | ------------------- |
# | System | PostgreSQL |
# | Server | postgres |
# | Username | [postgres_user] |
# | Password | [postgres_password] |
# | Database | [postgres_db] |
#
# Values in square brackets are [Docker secrets](https://docs.docker.com/engine/swarm/secrets/).
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.adminer.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.adminer.rule=Host(`adminer.${STACK_DOMAIN}`)
- traefik.http.routers.adminer_secure.rule=Host(`adminer.${STACK_DOMAIN}`)
- traefik.http.routers.adminer_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.adminer.loadbalancer.server.port=8080
image: adminer:5.2.1-standalone
volumes:
- ../production/configurations/adminer/adminer.css:/var/www/html/adminer.css:ro
debezium:
# You can see how changes in the database end up in the event stream using `redpanda-console`.
environment:
BOOTSTRAP_SERVERS: redpanda:9092
CONFIG_STORAGE_TOPIC: connect_configs
GROUP_ID: 1
OFFSET_STORAGE_TOPIC: connect_offsets
STATUS_STORAGE_TOPIC: connect_statuses
# healthcheck:
# test: ["CMD", "curl", "--fail", "--silent", "--show-error", "http://localhost:8083/connectors"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 20s
image: quay.io/debezium/connect:3.2
volumes:
- debezium_kafka_configuration:/kafka/config
- debezium_kafka_data:/kafka/data
- debezium_kafka_logs:/kafka/logs
debezium-postgres-connector:
# You can check the database connector's setup logs using `portainer`.
command: /entrypoint.sh
deploy:
restart_policy:
condition: on-failure
entrypoint: sh
image: curlimages/curl:8.13.0
secrets:
- postgres_db
- postgres_password
- postgres_user
volumes:
- ../production/configurations/debezium-postgres-connector/entrypoint.sh:/entrypoint.sh:ro
geoip:
# You cannot access the ip geolocator via a web interface.
image: ghcr.io/observabilitystack/geoip-api:2024-41
grafana:
# You can access the observation dashboard at [grafana.localhost](https://grafana.localhost/).
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.grafana.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.grafana.rule=Host(`grafana.${STACK_DOMAIN}`)
- traefik.http.routers.grafana_secure.rule=Host(`grafana.${STACK_DOMAIN}`)
- traefik.http.routers.grafana_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.grafana.loadbalancer.server.port=3000
image: grafana/grafana:12.0.0
secrets:
- postgres_db
- postgres_role_service_grafana_password
- postgres_role_service_grafana_username
volumes:
- ./configurations/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ../production/configurations/grafana/dashboards:/var/lib/grafana/dashboards:ro
- ../production/configurations/grafana/provisioning:/etc/grafana/provisioning:ro
- grafana_data:/var/lib/grafana
jobber:
# You cannot access the jobber via a web interface.
environment:
AWS_SHARED_CREDENTIALS_FILE: /run/secrets/jobber_aws-credentials
image: ghcr.io/dargmuesli/jobber-aws-msmtp:1.3.0
secrets:
- source: jobber_aliases
target: /etc/aliases
- jobber_aws-bucket
- jobber_aws-credentials
- source: jobber_aws-configuration
target: /home/jobberuser/.aws/config
- source: jobber_msmtprc
target: /etc/msmtprc
volumes:
- ../production/backups/postgres/:/backups/
- ./configurations/jobber/.jobber:/home/jobberuser/.jobber:ro
minio: #DARGSTACK-REMOVE
# You can access the s3 console at [minio.localhost](https://minio.localhost/).
# You can access the s3 api service at [s3.localhost](https://s3.localhost/) if you want to access via cli from outside the stack.
entrypoint: /patched-entrypoint.sh #DARGSTACK-REMOVE
command: server /data --console-address ":9001" #DARGSTACK-REMOVE
deploy: #DARGSTACK-REMOVE
labels: #DARGSTACK-REMOVE
- traefik.enable=true #DARGSTACK-REMOVE
# Minio Console
- traefik.http.routers.minio.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.minio.rule=Host(`minio.${STACK_DOMAIN}`) #DARGSTACK-REMOVE
- traefik.http.routers.minio.service=minio #DARGSTACK-REMOVE
- traefik.http.routers.minio_secure.rule=Host(`minio.${STACK_DOMAIN}`) #DARGSTACK-REMOVE
- traefik.http.routers.minio_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.routers.minio_secure.service=minio #DARGSTACK-REMOVE
- traefik.http.services.minio.loadbalancer.server.port=9001 #DARGSTACK-REMOVE
- traefik.http.services.minio.loadbalancer.passhostheader=true #DARGSTACK-REMOVE
# Minio itself
- traefik.http.routers.s3.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.s3.rule=Host(`s3.${STACK_DOMAIN}`) #DARGSTACK-REMOVE
- traefik.http.routers.s3.service=s3 #DARGSTACK-REMOVE
- traefik.http.routers.s3_secure.rule=Host(`s3.${STACK_DOMAIN}`) #DARGSTACK-REMOVE
- traefik.http.routers.s3_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.routers.s3_secure.service=s3 #DARGSTACK-REMOVE
- traefik.http.services.s3.loadbalancer.server.port=9000 #DARGSTACK-REMOVE
- traefik.http.services.s3.loadbalancer.passhostheader=true #DARGSTACK-REMOVE
image: minio/minio #DARGSTACK-REMOVE
volumes: #DARGSTACK-REMOVE
- minio_data:/data #DARGSTACK-REMOVE
- ./configurations/minio/entrypoint.sh:/patched-entrypoint.sh #DARGSTACK-REMOVE
environment: #DARGSTACK-REMOVE
MINIO_ROOT_PASSWORD: s3password #DARGSTACK-REMOVE
MINIO_ROOT_USER: s3user #DARGSTACK-REMOVE
portainer:
# You can access the container manager's frontend at [portainer.localhost](https://portainer.localhost/).
command: -H tcp://tasks.portainer-agent:9001 --tlsskipverify --admin-password-file '/run/secrets/portainer_admin-password'
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.portainer.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.portainer.rule=Host(`portainer.${STACK_DOMAIN}`)
- traefik.http.routers.portainer_secure.rule=Host(`portainer.${STACK_DOMAIN}`)
- traefik.http.routers.portainer_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.portainer.loadbalancer.server.port=9000
mode: replicated
placement:
constraints:
- node.role == manager
replicas: 1
image: portainer/portainer-ce:2.29.2-alpine
secrets:
- portainer_admin-password
volumes:
- portainer_data:/data
portainer-agent:
# You cannot access the container manager's agent directly.
deploy:
mode: global
placement:
constraints:
- node.platform.os == linux
image: portainer/agent:2.29.2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
postgraphile:
# You can access the GraphQL API for the PostgreSQL database at [postgraphile.localhost](https://postgraphile.localhost/).
deploy:
labels:
- traefik.enable=true
- traefik.http.middlewares.postgraphile_auth.forwardauth.address=http://vibetype:3000/api/auth-proxy
- traefik.http.middlewares.postgraphile_auth.forwardauth.forwardBody=true
- traefik.http.middlewares.postgraphile_cors.headers.accessControlAllowHeaders=authorization,baggage,content-type,sentry-trace,x-turnstile-key
- traefik.http.middlewares.postgraphile_cors.headers.accessControlAllowOriginList=*
- traefik.http.routers.postgraphile.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.postgraphile.rule=Host(`postgraphile.${STACK_DOMAIN}`)
- traefik.http.routers.postgraphile_secure.middlewares=postgraphile_auth,postgraphile_cors
- traefik.http.routers.postgraphile_secure.rule=Host(`postgraphile.${STACK_DOMAIN}`)
- traefik.http.routers.postgraphile_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.routers.postgraphile_secure_graphiql.rule=Host(`postgraphile.${STACK_DOMAIN}`) && Path(`/graphiql`)
- traefik.http.routers.postgraphile_secure_graphiql.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.postgraphile.loadbalancer.server.port=5000
environment:
POSTGRAPHILE_CONNECTION_FILE: /run/secrets/postgraphile_connection
POSTGRAPHILE_JWT_PUBLIC_KEY_FILE: /run/config/postgraphile_jwt-public-key
POSTGRAPHILE_JWT_SECRET_KEY_FILE: /run/secrets/postgraphile_jwt-secret
POSTGRAPHILE_OWNER_CONNECTION_FILE: /run/secrets/postgraphile_owner-connection
image: ghcr.io/maevsi/postgraphile:4.14.0
secrets:
- postgraphile_connection
- postgraphile_jwt-secret
- postgraphile_owner-connection
volumes:
- ./configurations/postgraphile/jwtRS256.key.pub:/run/config/postgraphile_jwt-public-key:ro
- ../production/configurations/postgraphile/.postgraphilerc.js:/postgraphile/.postgraphilerc.js:ro
postgres:
# You can access the database via `adminer`.
command: -c vibetype.jwt_expiry_duration='1 month' -c wal_level=logical
environment:
POSTGRES_ADDITIONAL_DBS: grafana
POSTGRES_DB_FILE: /run/secrets/postgres_db
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_USER_FILE: /run/secrets/postgres_user
image: postgis/postgis:17-3.5-alpine
ports: #DARGSTACK-REMOVE
- 5432:5432 #DARGSTACK-REMOVE
secrets:
- postgres_db
- postgres_password
- postgres_role_service_grafana_password
- postgres_role_service_grafana_username
- postgres_user
# sysctls:
# # Prevent Docker Swarm from killing connections (https://github.com/moby/moby/issues/31208)
# - net.ipv4.tcp_keepalive_time=600
# - net.ipv4.tcp_keepalive_intvl=30
# - net.ipv4.tcp_keepalive_probes=10
volumes:
- postgres_data:/var/lib/postgresql/data/
- ../production/configurations/postgres/docker-entrypoint-initdb.d/additional-databases.sh:/docker-entrypoint-initdb.d/additional-databases.sh:ro
prometheus:
# You can access the metrics monitoring at [prometheus.localhost](https://prometheus.localhost/).
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.prometheus.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.prometheus.rule=Host(`prometheus.${STACK_DOMAIN}`)
- traefik.http.routers.prometheus_secure.rule=Host(`prometheus.${STACK_DOMAIN}`)
- traefik.http.routers.prometheus_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.prometheus.loadbalancer.server.port=9090
image: prom/prometheus:v3.3.1
volumes:
- ../production/configurations/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
reccoom:
# You cannot access the recommendation service directly.
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.reccoom.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.reccoom.rule=Host(`reccoom.${STACK_DOMAIN}`)
- traefik.http.routers.reccoom_secure.rule=Host(`reccoom.${STACK_DOMAIN}`)
- traefik.http.routers.reccoom_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.reccoom.loadbalancer.server.port=8001
image: maevsi/reccoom:dev
secrets:
- postgres_db
- postgres_password
- postgres_user
volumes:
- ../../../reccoom/:/srv/app/
redpanda:
# You can access the event streaming platform's ui as described under `redpanda-console`.
command:
- redpanda start
- --mode dev-container #DARGSTACK-REMOVE
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
# healthcheck:
# test: ["CMD-SHELL", "output=$(rpk cluster health --json); echo \"$output\" | grep -q '\"healthy\":true' || { echo \"$output\"; exit 1; }"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s
image: redpandadata/redpanda:v25.1.3
volumes:
- redpanda_data:/var/lib/redpanda/data
redpanda-console:
# You can access the event streaming platform's ui at [redpanda.localhost](https://redpanda.localhost/).
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.redpanda.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.redpanda.rule=Host(`redpanda.${STACK_DOMAIN}`)
- traefik.http.routers.redpanda_secure.rule=Host(`redpanda.${STACK_DOMAIN}`)
- traefik.http.routers.redpanda_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.redpanda.loadbalancer.server.port=8080
environment:
CONFIG_FILEPATH: /srv/app/redpanda-config.yaml
image: redpandadata/console:v3.1.0
volumes:
- ../production/configurations/redpanda/config.yaml:/srv/app/redpanda-config.yaml:ro
sqitch:
# You cannot access the database migrations directly.
image: maevsi/sqitch:dev
secrets:
- postgres_role_service_postgraphile_password
- postgres_role_service_postgraphile_username
- postgres_role_service_vibetype_password
- postgres_role_service_vibetype_username
- sqitch_target
volumes:
- ../../../sqitch/:/srv/app/
traefik:
# You can access the reverse proxy's dashboard at [traefik.localhost](https://traefik.localhost/).
command:
- --api=true
- --entryPoints.web.address=:80
- --entryPoints.web-secure.address=:443
- --providers.swarm=true
- --providers.swarm.endpoint=unix:///var/run/docker.sock
- --providers.swarm.exposedByDefault=false
- --providers.file.filename=/dynamic.yml #DARGSTACK-REMOVE
- --providers.file.watch=true #DARGSTACK-REMOVE
- --log.level=DEBUG #DARGSTACK-REMOVE
deploy:
labels:
- traefik.enable=true
- traefik.http.middlewares.redirectscheme.redirectscheme.scheme=https #DARGSTACK-REMOVE
- traefik.http.routers.traefik.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.traefik.rule=Host(`traefik.${STACK_DOMAIN}`)
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik_secure.rule=Host(`traefik.${STACK_DOMAIN}`)
- traefik.http.routers.traefik_secure.service=api@internal
- traefik.http.routers.traefik_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.traefik.loadbalancer.server.port=8080
mode: global
placement:
constraints:
- node.role == manager
image: traefik:v3.4.0
ports: #DARGSTACK-REMOVE
- mode: host #DARGSTACK-REMOVE
protocol: tcp #DARGSTACK-REMOVE
published: 80 #DARGSTACK-REMOVE
target: 80 #DARGSTACK-REMOVE
- mode: host #DARGSTACK-REMOVE
protocol: tcp #DARGSTACK-REMOVE
published: 443 #DARGSTACK-REMOVE
target: 443 #DARGSTACK-REMOVE
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certificates/:/etc/traefik/acme/
- ./configurations/traefik/dynamic.yml:/dynamic.yml:ro #DARGSTACK-REMOVE
tusd:
# You can access the upload service at [tusd.localhost](https://tusd.localhost/).
command: -behind-proxy --hooks-enabled-events pre-create,pre-finish,post-terminate --hooks-http http://vibetype:3000/api/tusd -max-size ${TUSD_MAX_SIZE} -s3-bucket ${TUSD_BUCKET} -s3-endpoint ${TUSD_ENDPOINT}
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.tusd.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.tusd.rule=Host(`tusd.${STACK_DOMAIN}`)
- traefik.http.middlewares.tusd_cors.headers.customresponseheaders.Cross-Origin-Resource-Policy=cross-origin
- traefik.http.routers.tusd_secure.middlewares=tusd_cors
- traefik.http.routers.tusd_secure.rule=Host(`tusd.${STACK_DOMAIN}`) && (Method(`GET`) || Method(`HEAD`) || Method(`OPTIONS`) || Method(`POST`) || Method(`PUT`) || Method(`PATCH`))
- traefik.http.routers.tusd_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.tusd.loadbalancer.server.port=8080
environment:
AWS_REGION: ${TUSD_REGION}
image: tusproject/tusd:v2.8.0
secrets:
- source: tusd_aws
target: /home/tusd/.aws/credentials
vibetype:
# You can access the main project's frontend at [localhost](https://localhost/).
deploy:
labels:
- traefik.enable=true
- traefik.http.middlewares.vibetype_cors.headers.accessControlAllowHeaders=authorization,hook-name
- traefik.http.middlewares.vibetype_cors.headers.accessControlAllowMethods=GET,POST,PUT,DELETE
- traefik.http.middlewares.vibetype_cors.headers.accessControlAllowOriginList=https://localhost:3000
- traefik.http.middlewares.vibetype_redirectregex.redirectregex.regex=^https?:\/\/www\.${STACK_DOMAIN}\/(.*)
- traefik.http.middlewares.vibetype_redirectregex.redirectregex.replacement=https://${STACK_DOMAIN}/$${2}
- traefik.http.routers.vibetype.entryPoints=web
- traefik.http.routers.vibetype.middlewares=redirectscheme #DARGSTACK-REMOVE
- traefik.http.routers.vibetype.rule=Host(`${STACK_DOMAIN}`) || Host(`www.${STACK_DOMAIN}`)
- traefik.http.routers.vibetype_secure.entryPoints=web-secure
- traefik.http.routers.vibetype_secure.middlewares=vibetype_cors,vibetype_redirectregex
- traefik.http.routers.vibetype_secure.rule=Host(`${STACK_DOMAIN}`) || Host(`www.${STACK_DOMAIN}`)
- traefik.http.routers.vibetype_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
- traefik.http.services.vibetype.loadbalancer.server.port=3000
environment:
AWS_REGION: ${VIBETYPE_AWS_REGION}
CONSOLA_LEVEL: 4 # debug #DARGSTACK-REMOVE
NUXT_PUBLIC_GTAG_ID: ${VIBETYPE_NUXT_PUBLIC_GTAG_ID}
NUXT_PUBLIC_I18N_BASE_URL: https://${STACK_DOMAIN}
NUXT_PUBLIC_SITE_URL: https://${STACK_DOMAIN}
NUXT_PUBLIC_TURNSTILE_SITE_KEY: ${VIBETYPE_NUXT_PUBLIC_TURNSTILE_SITE_KEY}
NUXT_PUBLIC_VIBETYPE_EMAIL_LIMIT24H: ${VIBETYPE_NUXT_PUBLIC_VIBETYPE_EMAIL_LIMIT24H}
PGHOST: ${VIBETYPE_PGHOST}
image: maevsi/vibetype:dev
secrets:
- source: vibetype_api-notification-secret
target: /run/environment-variables/NUXT_PRIVATE_API_NOTIFICATION_SECRET
- source: vibetype_aws-credentials
target: /home/node/.aws/credentials
- source: vibetype_firebase-service-account-credentials
target: /run/environment-variables/FIREBASE_SERVICE_ACCOUNT_CREDENTIALS
- source: vibetype_monday
target: /run/environment-variables/NUXT_PRIVATE_MONDAY
- source: vibetype_openai-api-key
target: /run/environment-variables/NUXT_PRIVATE_OPENAI_API_KEY
- source: vibetype_turnstile-key
target: /run/environment-variables/NUXT_TURNSTILE_SECRET_KEY
- source: postgres_db
target: /run/environment-variables/PGDATABASE
- source: postgres_role_service_vibetype_password
target: /run/environment-variables/PGPASSWORD
- source: postgres_role_service_vibetype_username
target: /run/environment-variables/PGUSER
user: node:node # files created inside a docker container, like node_modules by pnpm, gain correct permissions by setting the user to `node`
volumes:
- ${PNPM_STORE_DIR}:/srv/.pnpm-store/ #DARGSTACK-REMOVE
- ./certificates/:/srv/certificates/ #DARGSTACK-REMOVE
- ../../../vibetype/:/srv/app/ #DARGSTACK-REMOVE
- ./configurations/postgraphile/jwtRS256.key.pub:/run/environment-variables/NUXT_PUBLIC_VIO_AUTH_JWT_PUBLIC_KEY:ro
version: "3.7"
volumes:
debezium_kafka_configuration:
# The change data capture's configuration.
{}
debezium_kafka_data:
# The change data capture's data.
{}
debezium_kafka_logs:
# The change data capture's logs.
{}
grafana_data:
# The observation dashboard's data.
{}
minio_data:
# The s3 server's data.
{}
portainer_data:
# The container manager's data.
{}
postgres_data:
# The database's data.
{}
prometheus_data:
# The metrics monitoring's data.
{}
redpanda_data:
# The message queue's data.
{}