-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
295 lines (291 loc) · 7.74 KB
/
docker-compose.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
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
services:
httpd:
image: 4teamwork/oghttpd:latest
build:
context: .
dockerfile: ./docker/httpd/Dockerfile
ports:
- "8088:80"
depends_on:
- ogui
- ogcore
environment:
- HTTP_PROTOCOL=http
- HTTP_PORT=8088
- PORTAL_HOST=ianus-frontend
profiles:
- all
msgconvert:
image: 4teamwork/msgconvert:latest
ports:
- 8090:8080
sablon:
image: 4teamwork/sablon:latest
ports:
- 8091:8080
pdflatex:
image: 4teamwork/pdflatex:latest
ports:
- 8092:8080
weasyprint:
image: 4teamwork/weasyprint:latest
ports:
- 8093:8080
clamav:
image: clamav/clamav:latest
ports:
- '3310:3310'
volumes:
- clam_db:/var/lib/clamav
- ./clamav/clamd.conf:/etc/clamav/clamd.conf
profiles:
- clamav
ogui:
image: 4teamwork/ogui:latest
profiles:
- all
ogcore: &ogcore
build:
context: .
dockerfile: ./docker/core/Dockerfile
secrets:
- gldt
image: 4teamwork/ogcore:latest
volumes:
- ./var/ogcore:/data
ports:
- "8080:8080"
- "8160:8160"
environment:
- PLONE_LDAP_BIND_UID=${LDAP_BIND_DN:-cn=admin,dc=dev,dc=onegovgever,dc=ch}
- PLONE_LDAP_BIND_PWD=${LDAP_BIND_PASSWORD:-secret}
- MSGCONVERT_URL=http://msgconvert:8080/
- SABLON_URL=http://sablon:8080/
- PDFLATEX_URL=http://pdflatex:8080/
- WEASYPRINT_URL=http://weasyprint:8080/
- OGDS_SYNC_URL=http://ogds-sync:8080/
depends_on:
- zeoserver
- ogds
- solr
profiles:
- all
- ogcore
ogcore-cron:
<<: *ogcore
command: cron
ports:
- "8082:8080"
profiles:
- all
- ogcore-cron
zeoserver:
image: 4teamwork/zeoserver:4.3.20
volumes:
- ./var/ogcore:/data
profiles:
- all
- ogcore
ogds:
image: postgres:13-alpine
volumes:
- ogds:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${OGDS_DB_USER:-ogds}
- POSTGRES_PASSWORD=${OGDS_DB_PASSWORD:-secret}
- POSTGRES_DB=${OGDS_DB_NAME:-ogds}
ports:
- 15432:5432
ogds-sync:
image: 4teamwork/ogds-sync:latest
ports:
- 8099:8080
environment:
- OGDS_DSN=postgresql://${OGDS_DB_USER:-ogds}:${OGDS_DB_PASSWORD:-secret}@${OGDS_DB_HOST:-ogds}/${OGDS_DB_NAME:-ogds}
- LDAP_PROFILE=${LDAP_PROFILE:-OpenLDAPLegacy}
- LDAP_URL=${LDAP_SERVER_URI:-ldap://ldap:1389}
- LDAP_BIND_DN=${LDAP_BIND_DN:-cn=admin,dc=dev,dc=onegovgever,dc=ch}
- LDAP_BIND_PASSWORD=${LDAP_BIND_PASSWORD:-secret}
- LDAP_USER_BASE_DN=${LDAP_USER_BASE_DN:-ou=Users,dc=dev,dc=onegovgever,dc=ch}
- LDAP_GROUP_BASE_DN=${LDAP_GROUP_BASE_DN:-ou=Groups,dc=dev,dc=onegovgever,dc=ch}
depends_on:
- ogds
solr:
image: 4teamwork/ogsolr:latest
build:
context: .
dockerfile: ./docker/solr/Dockerfile
command: solr-foreground
volumes:
- ./var/solr:/var/solr/data
environment:
- SOLR_CORES=development testing functionaltesting testserver
ports:
- 8983:8983
redis:
image: redis:6.2-alpine
command:
- redis-server
- --save 60 1
ports:
- 6379:6379
volumes:
- ./var/redis:/data
ldap:
image: bitnami/openldap:2.6
ports:
- 1389:1389
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=secret
- LDAP_ROOT=dc=dev,dc=onegovgever,dc=ch
- LDAP_ADMIN_DN=cn=admin,dc=dev,dc=onegovgever,dc=ch
volumes:
- ./docker/ldap.ldif:/ldifs/ldap.ldif
- ./var/openldap:/bitnami/openldap
mta:
image: 4teamwork/ogmta:latest
build:
context: .
dockerfile: ./docker/mta/Dockerfile
ports:
- '8025:25'
environment:
POSTFIX_MYHOSTNAME: ogmta.onegovgever.ch
POSTFIX_MYORIGIN: dev.onegovgever.ch
POSTFIX_SMTPD_TLS_SECURITY_LEVEL: none
VIRTUAL_DOMAINS_0: name=dev.onegovgever.ch,url=http://ogcore:8080/ogsite
profiles:
- mta
ianus-frontend:
image: ghcr.io/4teamwork/ianus-frontend:2024.2.0
ports:
- "3000:80"
depends_on:
- ianus-backend
environment:
- IANUS_BACKEND_HOST=ianus-backend
- IANUS_PATH_PREFIX=/portal
profiles:
- all
- ianus
ianus-backend:
image: ghcr.io/4teamwork/ianus-backend:2024.2.0
ports:
- "8000:8000"
depends_on:
- ianus-db
environment:
- DJANGO_SECRET_KEY=secret
- DJANGO_ALLOWED_HOSTS=localhost,teamraum,gever,ianus-frontend
- DJANGO_PATH_PREFIX=/portal
- DJANGO_SESSION_COOKIE_SECURE=False
- DJANGO_CSRF_COOKIE_SECURE=False
- DJANGO_DATABASE_NAME=ianus
- DJANGO_DATABASE_USER=ianus
- DJANGO_DATABASE_PASSWORD=secret
- DJANGO_DATABASE_HOST=ianus-db
- DJANGO_DATABASE_PORT=5432
- DJANGO_TWO_FACTOR_REQUIRED=False
- DJANGO_OIDC_RP_SIGN_ALGO=HS256
- DJANGO_AUTH_LDAP_BIND_DN=${LDAP_BIND_DN:-cn=admin,dc=dev,dc=onegovgever,dc=ch}
- DJANGO_AUTH_LDAP_BIND_PASSWORD=${LDAP_BIND_PASSWORD:-secret}
- DJANGO_AUTH_LDAP_SERVER_URI=${LDAP_SERVER_URI:-ldap://ldap:1389}
- DJANGO_AUTH_LDAP_USER_BASE_DN=${LDAP_USER_BASE_DN:-ou=Users,dc=dev,dc=onegovgever,dc=ch}
- DJANGO_AUTH_LDAP_USER_ATTR_MAP={'first_name':'givenName','last_name':'sn','email':'mail','username':'uid'}
- DJANGO_AUTH_LDAP_GROUP_BASE_DN=ou=Groups,dc=dev,dc=onegovgever,dc=ch
- DJANGO_AUTH_LDAP_GROUP_TYPE_CLASS=django_auth_ldap.config.GroupOfUniqueNamesType
- DJANGO_AUTH_LDAP_GROUP_MEMBER_ATTR=uniqueMember
- DJANGO_AUTH_LDAP_GROUP_SEARCH_FILTER=(objectClass=groupOfUniqueNames)
- DJANGO_AUTH_LDAP_USER_ADDITIONAL_ATTRS=memberOf
- DJANGO_CAS_USER_ATTR_MAP={'email':'mail','firstname':'givenName','lastname':'sn','groups':'memberOf'}
profiles:
- all
- ianus
ianus-db:
image: postgres:13-alpine
volumes:
- ./var/ianus-db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=ianus
- POSTGRES_USER=ianus
- POSTGRES_PASSWORD=secret
profiles:
- all
- ianus
testserver-solr:
image: 4teamwork/ogsolr:latest
build:
context: .
dockerfile: ./docker/solr/Dockerfile
command: solr-foreground
environment:
- SOLR_CORES=testserver
ports:
- 18983:8983
profiles:
- testserver
testserver:
build:
context: .
dockerfile: ./docker/testserver/Dockerfile
secrets:
- gldt
image: 4teamwork/ogtestserver:latest
ports:
- 55001:55001
- 55002:55002
environment:
- SOLR_HOSTNAME=testserver-solr
- TESTSERVER_REUSE_RUNNING_SOLR=8983
- SOLR_PORT=8983
- MSGCONVERT_URL=http://msgconvert:8080/
- SABLON_URL=http://sablon:8080/
- PDFLATEX_URL=http://pdflatex:8080/
- WEASYPRINT_URL=http://weasyprint:8080/
depends_on:
- msgconvert
- sablon
- pdflatex
- weasyprint
- testserver-solr
profiles:
- testserver
kub:
image: 4teamwork/kub:latest
ports:
- "3100:8000"
depends_on:
- kub-db
environment:
DJANGO_ALLOWED_HOSTS: localhost,127.0.0.1
DJANGO_SECRET_KEY: secret
DJANGO_DATABASE_HOST: kub-db
DJANGO_DATABASE_NAME: kub
DJANGO_DATABASE_USER: kub
DJANGO_DATABASE_PASSWORD: secret
CAS_SERVER_URL: http://ianus-frontend/portal/cas
CAS_ROOT_PROXIED_AS: http://localhost:3100
ALLOWED_PORTAL_GROUPS: all
volumes:
- kub_media:/app/media
profiles:
- kub
kub-db:
image: postgres:13-alpine
volumes:
- kub_db:/var/lib/postgresql/data
environment:
POSTGRES_USER: kub
POSTGRES_PASSWORD: secret
POSTGRES_DB: kub
profiles:
- kub
volumes:
ogds:
clam_db:
kub_db:
kub_media:
secrets:
gldt:
environment: GITLAB_DEPLOY_TOKEN