forked from AlfrescoLabs/alfresco-kerberos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
310 lines (280 loc) · 9.27 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
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
version: '3.5'
services:
openldap:
image: osixia/openldap
ports:
- 389:389
- 636:636
env_file:
- ./openldap/openldap.env
container_name: openldap
command: --copy-service --loglevel debug
volumes:
- ./openldap/00-kerberos.ldif:/container/service/slapd/assets/config/bootstrap/ldif/00-kerberos.ldif
- ./openldap/02-security.ldif:/container/service/slapd/assets/config/bootstrap/ldif/02-security.ldif
- ./openldap/05-index.ldif:/container/service/slapd/assets/config/bootstrap/ldif/05-index.ldif
- ./openldap/ldap-init.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif
- vol-openldap-ldap:/var/lib/ldap
- vol-openldap-slapd:/etc/ldap/slapd.d
networks:
alfresco-network:
kerberos:
build:
context: ./kerberos
container_name: kerberos
environment:
LDAP_URL: "ldap://openldap:389"
depends_on:
- openldap
ports:
- 88:88
- 464:464
- 749:749
networks:
alfresco-network:
ipv4_address: 192.168.55.10
alfresco:
# image: alfresco/alfresco-content-repository:6.2.2
container_name: alfresco
hostname: alfresco
build:
context: ./alfresco
extra_hosts:
- "example.com:192.168.55.10"
environment:
JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=127.0.0.1
-Dshare.port=80
-Dalfresco.host=localhost
-Dalfresco.port=80
-Daos.baseUrlOverwrite=http://localhost:80/alfresco/aos
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Ddeployment.method=DOCKER_COMPOSE
-Dtransform.service.enabled=true
-Dtransform.service.url=http://transform-router:8095
-Dsfs.url=http://shared-file-store:8099/
-DlocalTransform.core-aio.url=http://transform-core-aio:8090/
-Dalfresco-pdf-renderer.url=http://transform-core-aio:8090/
-Djodconverter.url=http://transform-core-aio:8090/
-Dimg.url=http://transform-core-aio:8090/
-Dtika.url=http://transform-core-aio:8090/
-Dtransform.misc.url=http://transform-core-aio:8090/
-Dcsrf.filter.enabled=false
-Ddsync.service.uris=http://localhost:9090/alfresco
-Xms1500m -Xmx1500m
-Dldap.authentication.allowGuestLogin=false
-Dldap.authentication.userNameFormat=%[email protected]
-Dldap.authentication.java.naming.provider.url=ldap://openldap:389
-Dldap.authentication.defaultAdministratorUserNames=administrator,admin,adminAlfresco,administrador
-Dldap.authentication.active=false
-Dsynchronization.autoCreatePeopleOnLogin=false
-Dldap.synchronization.active=true
-Dldap.synchronization.java.naming.security.principal=cn=admin,dc=example,dc=com
-Dldap.synchronization.java.naming.security.credentials=admin
-Dldap.synchronization.groupQuery=\"(objectclass=groupOfNames)\"
-Dldap.synchronization.groupSearchBase=\"dc=example,dc=com\"
-Dldap.synchronization.userIdAttributeName=uid
-Dldap.synchronization.personQuery=\"(objectclass=inetOrgPerson)\"
-Dldap.synchronization.userSearchBase=\"dc=example,dc=com\"
-Dkerberos.authentication.realm=EXAMPLE.COM
-Dkerberos.authentication.user.configEntryName=Alfresco
-Dkerberos.authentication.defaultAdministratorUserNames=administrator,admin,adminAlfresco,administrador
-Dkerberos.authentication.http.configEntryName=AlfrescoHTTP
-Dkerberos.authentication.http.password=password
-Dkerberos.authentication.sso.enabled=true
-Dauthentication.chain=kerberos1:kerberos,alfrescoNtlm1:alfrescoNtlm,ldap1:ldap-ad
"
depends_on:
- openldap
links:
- openldap
restart: on-failure # will restart until it's success
networks:
alfresco-network:
share:
image: alfresco/alfresco-share:6.2.2
container_name: share
hostname: share
# build:
# context: ./share
extra_hosts:
- "example.com:192.168.55.10"
environment:
REPO_HOST: "alfresco"
REPO_PORT: "80"
JAVA_OPTS: "
-Xms500m
-Xmx500m
-Dalfresco.host=localhost
-Dalfresco.port=80
-Dsun.security.krb5.msinterop.kstring=true
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"
links:
- alfresco
depends_on:
- alfresco
networks:
alfresco-network:
transform-router:
image: quay.io/alfresco/alfresco-transform-router:1.3.2
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ACTIVEMQ_URL: "nio://activemq:61616"
CORE_AIO_URL : "http://transform-core-aio:8090"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
ports:
- 8095:8095
links:
- activemq
networks:
alfresco-network:
transform-core-aio:
image: alfresco/alfresco-transform-core-aio:2.3.10
environment:
JAVA_OPTS: " -Xms256m -Xmx1536m"
ACTIVEMQ_URL: "nio://activemq:61616"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
ports:
- 8090:8090
links:
- activemq
networks:
alfresco-network:
shared-file-store:
image: alfresco/alfresco-shared-file-store:0.13.0
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
scheduler.content.age.millis: 86400000
scheduler.cleanup.interval: 86400000
ports:
- 8099:8099
volumes:
- shared-file-store-volume:/tmp/Alfresco/sfs
networks:
alfresco-network:
postgres:
image: postgres:11.7
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- 5432:5432
networks:
alfresco-network:
solr6:
image: alfresco/alfresco-search-services:2.0.1
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=80
#Alfresco needs to know how to call solr
- SOLR_SOLR_HOST=solr6
- SOLR_SOLR_PORT=8983
#Create the default alfresco and archive cores
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
#HTTP by default
- ALFRESCO_SECURE_COMMS=none
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port
networks:
alfresco-network:
activemq:
image: alfresco/alfresco-activemq:5.16.1
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP
networks:
alfresco-network:
demoshell:
image: dhrn/demo-shell:latest
container_name: workspace
hostname: workspace
environment:
- BASE_PATH=./
- APP_CONFIG_AUTH_TYPE=BASIC
- APP_CONFIG_PROVIDERS=ALL
- APP_CONFIG_KERBEROS_ENABLED=true
networks:
alfresco-network:
proxy:
image: alfresco/alfresco-acs-nginx:3.0.1
container_name: proxy
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- alfresco
- process
- demoshell
- share
ports:
- 80:80
links:
- demoshell
- process
- alfresco
- share
networks:
alfresco-network:
# process services
process:
container_name: process
hostname: process
build:
context: ./process-services
extra_hosts:
- "example.com:192.168.55.10"
links:
- postgres-process:postgres-process
- elasticsearch:elasticsearch
depends_on:
- postgres-process
- elasticsearch
networks:
alfresco-network:
elasticsearch:
image: elasticsearch:7.6.0
environment:
discovery.type: single-node
ports:
- 9300:9300
- 9200:9200
networks:
alfresco-network:
postgres-process:
image: postgres:10.9
environment:
POSTGRES_DB: activiti
POSTGRES_USER: alfresco
POSTGRES_PASSWORD: alfresco
networks:
alfresco-network:
networks:
alfresco-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.55.0/24
volumes:
vol-openldap-ldap:
vol-openldap-slapd:
shared-file-store-volume:
driver_opts:
type: tmpfs
device: tmpfs