-
-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathcompose.prod.yaml
More file actions
60 lines (56 loc) · 1.62 KB
/
compose.prod.yaml
File metadata and controls
60 lines (56 loc) · 1.62 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
# Production environment override
services:
php:
image: ${PHP_DOCKER_IMAGE}
build:
context: ./api
target: frankenphp_prod
environment:
APP_ENV: prod
APP_SECRET: ${APP_SECRET}
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
CADDY_GLOBAL_OPTIONS: |
order cache before rewrite
cache {
ttl 3600s
stale 86400s
default_cache_control "public, s-maxage=3600"
redis {
url redis:6379
}
otter
api {
souin
}
}
CADDY_SERVER_CACHE: "cache"
pwa:
image: ${PWA_DOCKER_IMAGE}
build:
context: ./pwa
target: prod
args:
# https://nextjs.org/docs/app/building-your-application/configuring/environment-variables#bundling-environment-variables-for-the-browser
NEXT_PUBLIC_OIDC_SERVER_URL: ${NEXT_PUBLIC_OIDC_SERVER_URL}
environment:
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ]
start_period: 5s
interval: 5s
timeout: 3s
retries: 5
database:
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
keycloak-database:
environment:
POSTGRES_PASSWORD: ${KEYCLOAK_POSTGRES_PASSWORD}
keycloak:
image: ${KEYCLOAK_DOCKER_IMAGE}
build:
context: ./helm/api-platform/keycloak/
target: keycloak
environment:
KC_BOOTSTRAP_ADMIN_PASSWORD: ${KC_BOOTSTRAP_ADMIN_PASSWORD}