-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
203 lines (195 loc) · 6.94 KB
/
docker-compose.yaml
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
networks:
ingress:
driver: bridge
py-issuer:
driver: bridge
kt-issuer:
driver: bridge
verifier:
driver: bridge
services:
py-issuer:
image: py-issuer:latest # build image yourself, there is no published image
container_name: py-issuer
environment:
- SERVICE_URL=https://{NGROK_DOMAIN}/
# - EIDAS_NODE_URL=https://your.eidas.node.url/
- DYNAMIC_PRESENTATION_URL=https://{NGROK_DOMAIN}/ui/presentations/
volumes:
- ./py-issuer/config/secrets/:/root/secrets/:ro
- ./py-issuer/config/cert/:/etc/eudiw/pid-issuer/cert/:ro
- ./py-issuer/config/keys/:/etc/eudiw/pid-issuer/keys/:ro
- ./py-issuer/config/app_config/:/root/eudi-srv-web-issuing-eudiw-py/app/app_config/:rw
- ./py-issuer/config/metadata_config/:/root/eudi-srv-web-issuing-eudiw-py/app/metadata_config/:ro
- ./py-issuer/logs/:/tmp/log_dev/:rw
networks:
- py-issuer
ngrok:
image: ngrok/ngrok:latest
container_name: ngrok
depends_on:
- haproxy
ports:
- 8081:8081
command:
- "start"
- "--all"
- "--config"
- "/etc/ngrok.yml"
volumes:
- ./ngrok/ngrok.yml:/etc/ngrok.yml
networks:
- ingress
haproxy:
image: haproxy:latest
container_name: haproxy
ports:
- "80:80"
depends_on:
- crl
- verifier-ui
- verifier
- py-issuer
- keycloak
- pid-issuer
volumes:
- ./haproxy/haproxy.conf:/usr/local/etc/haproxy/haproxy.cfg
networks:
- ingress
- py-issuer
- kt-issuer
- verifier
keycloak:
image: quay.io/keycloak/keycloak:24.0.3-0
container_name: keycloak
command:
- start-dev
- --import-realm
# - --features=dpop
environment:
- KC_PROXY=edge
- KC_HTTP_RELATIVE_PATH=/idp
#- KC_HOSTNAME={NGROK_DOMAIN}
- KC_HOSTNAME_URL=https://{NGROK_DOMAIN}/idp
- KC_HOSTNAME_ADMIN_URL=https://{NGROK_DOMAIN}/idp
- KC_HOSTNAME_STRICT=false
- KC_HOSTNAME_STRICT_BACKCHANNEL=false
- KC_HTTPS_CERTIFICATE_FILE=/etc/ssl/certs/keycloak.tls.crt
- KC_HTTPS_CERTIFICATE_KEY_FILE=/etc/ssl/certs/keycloak.tls.key
- KC_HTTP_ENABLED=true
- KC_HEALTH_ENABLED=true
- KC_METRICS_ENABLED=true
- KC_SPI_THEME_STATIC_MAX_AGE=-1
- KC_SPI_THEME_CACHE_THEMES=false
- KC_SPI_THEME_CACHE_TEMPLATES=false
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=password
healthcheck:
test: "bash /opt/keycloak/health-check.sh"
interval: 5s
timeout: 10s
retries: 12
volumes:
- ./kt-issuer/keycloak/extra/health-check.sh:/opt/keycloak/health-check.sh
- ./kt-issuer/keycloak/realms/:/opt/keycloak/data/import
- ./kt-issuer/keycloak/themes/:/opt/keycloak/themes
- ./kt-issuer/keycloak/certs/:/etc/ssl/certs/
networks:
- kt-issuer
pid-issuer:
image: ghcr.io/eu-digital-identity-wallet/eudi-srv-pid-issuer:v0.2.4
pull_policy: always
container_name: pid-issuer
depends_on:
keycloak:
condition: service_healthy
environment:
- SPRING_PROFILES_ACTIVE=insecure
- SPRING_WEBFLUX_BASE_PATH=/pid-issuer
- SERVER_PORT=8080
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_OPAQUETOKEN_CLIENT_ID=pid-issuer-srv
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_OPAQUETOKEN_CLIENT_SECRET=zIKAV9DIIIaJCzHCVBPlySgU8KgY68U2
- SERVER_FORWARD_HEADERS_STRATEGY=FRAMEWORK
- ISSUER_PUBLICURL=https://{NGROK_DOMAIN}/pid-issuer
- ISSUER_AUTHORIZATIONSERVER_PUBLICURL=https://{NGROK_DOMAIN}/idp/realms/pid-issuer-realm
- ISSUER_AUTHORIZATIONSERVER_METADATA=https://keycloak:8443/idp/realms/pid-issuer-realm/.well-known/openid-configuration
- ISSUER_AUTHORIZATIONSERVER_INTROSPECTION=https://keycloak:8443/idp/realms/pid-issuer-realm/protocol/openid-connect/token/introspect
- ISSUER_CREDENTIALRESPONSEENCRYPTION_SUPPORTED=true
- ISSUER_CREDENTIALRESPONSEENCRYPTION_REQUIRED=true
- ISSUER_CREDENTIALRESPONSEENCRYPTION_ALGORITHMSSUPPORTED=RSA-OAEP-256
- ISSUER_CREDENTIALRESPONSEENCRYPTION_ENCRYPTIONMETHODS=A128CBC-HS256
- ISSUER_PID_MSO_MDOC_ENABLED=true
- ISSUER_PID_MSO_MDOC_ENCODER_DURATION=P30D
- ISSUER_PID_MSO_MDOC_NOTIFICATIONS_ENABLED=true
- ISSUER_PID_SD_JWT_VC_ENABLED=true
- ISSUER_PID_SD_JWT_VC_NOTUSEBEFORE=PT20
- ISSUER_PID_SD_JWT_VC_DEFERRED=true
- ISSUER_PID_SD_JWT_VC_NOTIFICATIONS_ENABLED=true
- ISSUER_PID_ISSUINGCOUNTRY=NL
- ISSUER_MDL_ENABLED=true
- ISSUER_MDL_MSO_MDOC_ENCODER_DURATION=P5D
- ISSUER_MDL_NOTIFICATIONS_ENABLED=true
- ISSUER_CREDENTIALOFFER_URI=openid-credential-offer://
- ISSUER_SIGNING_KEY=LoadFromKeystore
- ISSUER_SIGNING_KEY_KEYSTORE=file:///kt-issuer.p12
- ISSUER_SIGNING_KEY_KEYSTORE_TYPE=PKCS12
- ISSUER_SIGNING_KEY_KEYSTORE_PASSWORD=
- ISSUER_SIGNING_KEY_ALIAS=signingKey
- ISSUER_SIGNING_KEY_PASSWORD=
- ISSUER_KEYCLOAK_SERVER_URL=https://keycloak:8443/idp
- ISSUER_KEYCLOAK_AUTHENTICATION_REALM=master
- ISSUER_KEYCLOAK_CLIENT_ID=admin-cli
- ISSUER_KEYCLOAK_USERNAME=admin
- ISSUER_KEYCLOAK_PASSWORD=password
- ISSUER_KEYCLOAK_USER_REALM=pid-issuer-realm
- ISSUER_DPOP_PROOF_MAX_AGE=PT1M
- ISSUER_DPOP_CACHE_PURGE_INTERVAL=PT10M
- ISSUER_DPOP_REALM=pid-issuer
volumes:
- {Kotlin_issuer_keystore_file_name}:/kt-issuer.p12:ro
networks:
- kt-issuer
verifier:
image: ghcr.io/eu-digital-identity-wallet/eudi-srv-web-verifier-endpoint-23220-4-kt:v0.1.6
container_name: verifier-backend
environment:
VERIFIER_PUBLICURL: "https://{NGROK_DOMAIN}"
VERIFIER_RESPONSE_MODE: "DirectPostJwt"
#VERIFIER_RESPONSE_MODE: "DirectPost"
#VERIFIER_CLIENTID: "wallet-dev"
#VERIFIER_CLIENTIDSCHEME: "pre-registered"
VERIFIER_CLIENTID: "{NGROK_DOMAIN}"
#VERIFIER_CLIENTID: "Verifier"
VERIFIER_CLIENTIDSCHEME: "x509_san_dns"
# VERIFIER_JWK_EMBED: "ByValue"
VERIFIER_JAR_SIGNING_ALGORITHM: "ES256"
VERIFIER_JAR_SIGNING_KEY: "LoadFromKeystore"
VERIFIER_JAR_SIGNING_KEY_KEYSTORE: "file:///verifier.p12"
VERIFIER_JAR_SIGNING_KEY_KEYSTORE_TYPE: "PKCS12"
VERIFIER_JAR_SIGNING_KEY_KEYSTORE_PASSWORD: ""
VERIFIER_JAR_SIGNING_KEY_ALIAS: "verifier"
VERIFIER_JAR_SIGNING_KEY_PASSWORD: ""
TZ: "Europe/Amsterdam"
volumes:
- {verifier_keystore_file_name}:/verifier.p12:ro
networks:
- verifier
verifier-ui:
image: verifier-ui:latest
#image: ghcr.io/eu-digital-identity-wallet/eudi-web-verifier:v0.5.1
container_name: verifier-ui
environment:
- DOMAIN_NAME="{NGROK_DOMAIN}"
- HOST_API="https://{NGROK_DOMAIN}"
networks:
- verifier
crl:
image: nginx:latest
container_name: crl
ports:
- "8080:8080"
volumes:
- {CRL_LOCATION}:/var/www/ca/eudiw-poc-nl-root-ca-01.crl:ro
- ./nginx/:/etc/nginx/conf.d/:ro
networks:
- verifier