forked from buerokratt/Service-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-siga.yml
165 lines (156 loc) · 5.41 KB
/
docker-compose-siga.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
version: "3.7"
services:
siga-demo-application:
image: siga-demo-application:latest
environment:
- server.port=9443
- server.ssl.enabled=false
- 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:
bykstack:
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:
bykstack:
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
- spring.profiles.active=digidoc4jTest,datafileContainer,smartId,mobileId
- spring.sql.init.platform=postgresql
- spring.datasource.driver-class-name=org.postgresql.Driver
- spring.datasource.url=jdbc:postgresql://siga-db:5432/siga_db
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=7000
ports:
- "7443:7443"
- "7000:7000"
networks:
bykstack:
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
- 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.profiles.active=digidoc4jTest,datafileContainer,smartId,mobileId
- spring.sql.init.platform=postgresql
- spring.datasource.driver-class-name=org.postgresql.Driver
- spring.datasource.url=jdbc:postgresql://siga-db:5432/siga_db
- spring.liquibase.enabled=false
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=6000
ports:
- "6443:6443"
- "6000:6000"
networks:
bykstack:
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
- 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:
- 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
ports:
- "4443:4443"
networks:
bykstack:
aliases:
- siga-admin.localhost
volumes:
- ./docker/tls/siga-admin/siga-admin.localhost.keystore.p12:/etc/siga-admin/siga-admin.localhost.keystore.p12
ignite-01:
image: apacheignite/ignite:2.14.0-jdk11
environment:
- CONFIG_URI=/etc/ignite/ignite-configuration.xml
- JVM_OPTS= -Xms512m -Xmx512m -server -XX:+AggressiveOpts -XX:+UseG1GC -XX:MaxPermSize=256m -XX:+DisableExplicitGC -Djava.net.preferIPv4Stack=true
networks:
bykstack:
aliases:
- ignite-01.localhost
volumes:
- ./docker/siga-ignite/ignite-configuration.xml:/etc/ignite/ignite-configuration.xml
ignite-02:
image: apacheignite/ignite:2.14.0-jdk11
environment:
- CONFIG_URI=/etc/ignite/ignite-configuration.xml
- JVM_OPTS= -Xms512m -Xmx512m -server -XX:+AggressiveOpts -XX:+UseG1GC -XX:MaxPermSize=256m -XX:+DisableExplicitGC -Djava.net.preferIPv4Stack=true
networks:
bykstack:
aliases:
- ignite-02.localhost
volumes:
- ./docker/siga-ignite/ignite-configuration.xml:/etc/ignite/ignite-configuration.xml
volumes:
siga-logs-01:
external: true
name: siga-logs-01
siga-logs-02:
external: true
name: siga-logs-02
networks:
bykstack:
name: bykstack
driver: bridge