-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
261 lines (249 loc) · 9.95 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
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
version: "3.7"
services:
dozzle: # Web-based UI for browsing container logs
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
default:
aliases:
- dozzle.localhost
ports:
- '11080:8080'
restart: unless-stopped
siga-demo-application:
image: siga-demo-application:latest
environment:
- server.port=9443
- server.ssl.key-store=/etc/siga-demo/siga-demo.localhost.keystore.p12
- siga.api.trust-store=file:/etc/siga-demo/siga-demo.truststore.p12
ports:
- "9443:9443"
networks:
default:
aliases:
- siga-demo.localhost
volumes:
- ./docker/tls/siga-demo/siga-demo.localhost.keystore.p12:/etc/siga-demo/siga-demo.localhost.keystore.p12
- ./docker/tls/siga-demo/siga-demo.truststore.p12:/etc/siga-demo/siga-demo.truststore.p12
siga:
image: nginx:latest
ports:
- "8443:8443"
networks:
default:
aliases:
- siga.localhost
volumes:
- ./docker/tls/siga/siga.localhost.key:/var/certs/siga.localhost.key
- ./docker/tls/siga/siga.localhost.crt:/var/certs/siga.localhost.crt
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- siga-01
- siga-02
siga-01:
image: siga-webapp:latest
environment:
- server.port=7443
- server.ssl.key-alias=siga-01.localhost
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=7000
- SPRING_CONFIG_LOCATION=file:/etc/siga/application.properties
- JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
# The '--add-opens' below is required for running Apache Ignite with JDK 17
- JAVA_OPTS=
-Djava.net.preferIPv4Stack=true
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.time=ALL-UNNAMED
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
--add-opens=java.base/java.security.cert=ALL-UNNAMED
ports:
- "7443:7443"
- "7000:7000"
networks:
default:
aliases:
- siga-01.localhost
volumes:
- ./docker/tls/siga-01/siga-01.localhost.keystore.p12:/etc/siga/siga.localhost.keystore.p12
- ./docker/tls/mid/mid.truststore.p12:/etc/siga/mid.truststore.p12
- ./docker/tls/sid/sid.truststore.p12:/etc/siga/sid.truststore.p12
- ./docker/tls/siva/siva.truststore.p12:/etc/siga/siva.truststore.p12
- ./docker/siga-ignite/ignite-configuration.xml:/etc/siga/ignite-configuration.xml
- ./docker/siga-webapp/application.properties:/etc/siga/application.properties
- ./docker/siga-webapp/logback.xml:/etc/siga/logback.xml
- siga-logs-01:/usr/local/tomcat/logs
depends_on:
- siga-db
siga-02:
image: siga-webapp:latest
environment:
- server.port=7443
- server.ssl.key-alias=siga-02.localhost
- spring.liquibase.enabled=false
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=6000
- SPRING_CONFIG_LOCATION=file:/etc/siga/application.properties
- JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
# The '--add-opens' below is required for running Apache Ignite with JDK 17
- JAVA_OPTS=
-Djava.net.preferIPv4Stack=true
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.time=ALL-UNNAMED
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
--add-opens=java.base/java.security.cert=ALL-UNNAMED
ports:
- "6443:6443"
- "6000:6000"
networks:
default:
aliases:
- siga-02.localhost
volumes:
- ./docker/tls/siga-02/siga-02.localhost.keystore.p12:/etc/siga/siga.localhost.keystore.p12
- ./docker/tls/mid/mid.truststore.p12:/etc/siga/mid.truststore.p12
- ./docker/tls/sid/sid.truststore.p12:/etc/siga/sid.truststore.p12
- ./docker/tls/siva/siva.truststore.p12:/etc/siga/siva.truststore.p12
- ./docker/siga-ignite/ignite-configuration.xml:/etc/siga/ignite-configuration.xml
- ./docker/siga-webapp/application.properties:/etc/siga/application.properties
- ./docker/siga-webapp/logback.xml:/etc/siga/logback.xml
- siga-logs-02:/usr/local/tomcat/logs
depends_on:
- siga-db
siga-db:
image: postgres:13
restart: always
environment:
- POSTGRES_DB=siga_db
- POSTGRES_USER=sa
- POSTGRES_PASSWORD=
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- ./docker/siga-db/install-extensions.sql:/docker-entrypoint-initdb.d/install-extensions.sql
siga-admin:
image: siga-admin-webapp:latest
profiles:
- siga-admin
environment:
- siga.admin.esteid-ldap.tls-truststore-path=file:/etc/siga-admin/tls.esteid-ldap.truststore.p12
- siga.admin.esteid-ldap.tls-truststore-password=changeit
- server.port=4443
- server.ssl.enabled=true
- server.ssl.key-store-type=PKCS12
- server.ssl.key-store-password=changeit
- server.ssl.key-store=/etc/siga-admin/siga-admin.localhost.keystore.p12
- server.ssl.key-alias=siga-admin.localhost
- spring.sql.init.platform=postgresql
- spring.datasource.driver-class-name=org.postgresql.Driver
- spring.datasource.url=jdbc:postgresql://siga-db:5432/siga_db
- spring.profiles.active=inMemoryAuth
- spring.mail.host=siga-admin-smtp.localhost
- spring.mail.port=25
- spring.mail.properties.mail.smtp.auth=false
- spring.mail.properties.mail.smtp.starttls.enable=true
- spring.mail.properties.mail.smtp.starttls.required=true
- logging.config=/etc/siga-admin/logback.xml
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=4000
- JAVA_OPTS=
-Djavax.net.ssl.trustStore=/etc/siga-admin/smtp.truststore.p12
-Djavax.net.ssl.trustStorePassword='changeit'
-Djavax.net.ssl.trustStoreType=pkcs12
-Djavax.net.ssl.keyStore=/etc/siga-admin/siga-admin.localhost.keystore.p12
-Djavax.net.ssl.keyStorePassword=changeit
-Djavax.net.ssl.keyStoreType=pkcs12
ports:
- "4443:4443"
- "4000:4000"
networks:
default:
aliases:
- siga-admin.localhost
volumes:
- ./docker/siga-admin/logback.xml:/etc/siga-admin/logback.xml
- ./docker/tls/siga-admin/siga-admin.localhost.keystore.p12:/etc/siga-admin/siga-admin.localhost.keystore.p12
- ./docker/tls/esteid-ldap/esteid-ldap.truststore.p12:/etc/siga-admin/tls.esteid-ldap.truststore.p12
- ./docker/tls/siga-admin-smtp/siga-admin-smtp.truststore.p12:/etc/siga-admin/smtp.truststore.p12
siga-admin-smtp:
image: rnwood/smtp4dev:3.2.0-ci20221023104
profiles:
- siga-admin
environment:
- ServerOptions__TlsMode=StartTls
- ServerOptions__TlsCertificatePassword=changeit
- ServerOptions__TlsCertificate=/siga-admin-smtp.localhost.keystore.p12
ports:
- "2525:25"
- "3000:80"
networks:
default:
aliases:
- siga-admin-smtp.localhost
volumes:
# The directory where smtp4dev will store the e-mail database.
- ./docker/siga-admin-smtp/:/smtp4dev
# TLS keystore
- ./docker/tls/siga-admin-smtp/siga-admin-smtp.localhost.keystore.p12:/siga-admin-smtp.localhost.keystore.p12
ignite-01:
# TODO: Use pre-built image when an official Ignite image is released for JDK17.
# '--build' argument in README.md can also be removed after that.
#image: apacheignite/ignite:2.15.0
build: docker/siga-ignite
environment:
- CONFIG_URI=/etc/ignite/ignite-configuration.xml
- JVM_OPTS=
-Xms512m -Xmx512m -server -XX:+UseG1GC -XX:+DisableExplicitGC
-Djava.net.preferIPv4Stack=true
networks:
default:
aliases:
- ignite-01.localhost
volumes:
- ./docker/siga-ignite/ignite-configuration.xml:/etc/ignite/ignite-configuration.xml
- ./docker/siga-ignite/run.sh:/opt/ignite/apache-ignite-2.15.0-bin/run.sh
ignite-02:
# TODO: Use pre-built image when an official Ignite image is released for JDK17.
# '--build' argument in README.md can also be removed after that.
#image: apacheignite/ignite:2.15.0
build: docker/siga-ignite
environment:
- CONFIG_URI=/etc/ignite/ignite-configuration.xml
- JVM_OPTS=
-Xms512m -Xmx512m -server -XX:+UseG1GC -XX:+DisableExplicitGC
-Djava.net.preferIPv4Stack=true
networks:
default:
aliases:
- ignite-02.localhost
volumes:
- ./docker/siga-ignite/ignite-configuration.xml:/etc/ignite/ignite-configuration.xml
- ./docker/siga-ignite/run.sh:/opt/ignite/apache-ignite-2.15.0-bin/run.sh
volumes:
siga-logs-01:
name: siga-logs-01
siga-logs-02:
name: siga-logs-02