forked from gematik/DEMIS-Test_Environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemis.yml
224 lines (202 loc) · 5.87 KB
/
demis.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
#
# Copyright (c) 2021 gematik GmbH
#
# Licensed under the EUPL, Version 1.2 or – as soon they will be approved by
# the European Commission - subsequent versions of the EUPL (the Licence);
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at:
#
# https://joinup.ec.europa.eu/software/page/eupl
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Licence is distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the Licence for the specific language governing permissions and
# limitations under the Licence.
#
#
###################################################
# General Service Definition
###################################################
version: "3.9"
###################################################
# Definition of common settings across services
###################################################
# Common Service Properties
x-service-setup: &service-setup-ref
restart: always
# Common Volume Properties
x-volume-config: &volume-setup-ref
volumes:
- demis-config-volume:/app/config:rw
# Common Environment Configuration Properties
x-env-config: &environment-config-ref
CONFIGURATION_PATH: /app/config
# Common Environment Timezone Entry
x-environment-timezone: &environment-timezone-ref
TZ: Europe/Berlin
# Common Health Check Properties
x-healthcheck-config: &healthcheck-ref
interval: 15s
timeout: 10s
retries: 20
start_period: 30s
###################################################
# Definition of services
###################################################
services:
# DEMIS Configuration Files - The image is terminated immediately, it serves as data container
demis-config-data:
image: gematik1/demis-configuration-test:1.4.4
restart: "no"
<<: *volume-setup-ref
keycloak:
image: gematik1/demis-keycloak:1.0.2-configured-test
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-keycloak
environment:
- TZ=Europe/Berlin
- PROXY_ADDRESS_FORWARDING=true
- ROOT_LOGLEVEL=INFO
- KEYCLOAK_LOGLEVEL=INFO
- DB_VENDOR=h2
healthcheck:
test: [ "CMD-SHELL", "curl --fail http://localhost:8080/auth || exit 1" ]
interval: 10s
timeout: 3s
retries: 300
networks:
- demis-network
postgresDemis:
image: gematik1/demis-postgres:1.8.2-configured-test
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-postgres
environment:
- TZ=Europe/Berlin
- POSTGRES_PASSWORD=demis
- PGDATA=demis_database
networks:
- demis-network
restart: always
nginx:
image: gematik1/demis-nginx:1.8.2
<<: *service-setup-ref
<<: *volume-setup-ref
ports:
- "7080:80"
- "7443:443"
container_name: demis-nginx
environment:
<<: *environment-timezone-ref
depends_on:
- notification-api
- pseudonymization-service
- postgresDemis
- keycloak
networks:
demis-network:
aliases:
- demis.gematik.de
restart: always
storage-service:
image: gematik1/demis-storage:1.8.5
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-storage-service
environment:
<<: *environment-timezone-ref
depends_on:
keycloak:
condition: service_healthy
postgresDemis:
condition: service_started
networks:
- demis-network
restart: always
doublette-detection-services:
image: gematik1/demis-doublette-detection:1.9.1
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-doublette-detection-service
environment:
<<: *environment-timezone-ref
depends_on:
keycloak:
condition: service_healthy
postgresDemis:
condition: service_started
networks:
- demis-network
restart: always
pseudonymization-service:
image: gematik1/demis-pseudonymization:1.8.6
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-pseudonymization-service
environment:
<<: *environment-timezone-ref
depends_on:
keycloak:
condition: service_healthy
postgresDemis:
condition: service_started
networks:
- demis-network
restart: always
notification-clearing-api:
image: gematik1/demis-notification-clearing-api:1.9.2
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-notification-clearing-api
environment:
- HAPI_OIDC_ISSUER=https://demis.gematik.de:7443/auth/realms/OEGD
- HAPI_SERVER_ADDRESS=https://demis.gematik.de:7443/notification-clearing-api/fhir/
depends_on:
keycloak:
condition: service_healthy
postgresDemis:
condition: service_started
networks:
- demis-network
restart: always
notification-api:
image: gematik1/demis-notification-api:1.9.3
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-webservices
environment:
- HAPI_OIDC_ISSUER=https://demis.gematik.de:7443/auth/realms/LAB
depends_on:
keycloak:
condition: service_healthy
postgresDemis:
condition: service_started
networks:
- demis-network
restart: always
pdf-generation-service:
image: gematik1/demis-pdf-generation:1.8.5
<<: *service-setup-ref
<<: *volume-setup-ref
container_name: demis-pdf-generation-service
depends_on:
keycloak:
condition: service_healthy
postgresDemis:
condition: service_started
demis-config-data:
condition: service_started
networks:
- demis-network
environment:
<<: *environment-config-ref
<<: *environment-timezone-ref
# Network definition
networks:
demis-network:
name: demis-network
# Volume definition
volumes:
demis-config-volume: