forked from juliusknorr/nextcloud-docker-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
388 lines (360 loc) · 10.3 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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
version: '3'
services:
# Proxy for ssl termination and easier hostname access
# SSL certificates with the virtual host name need to be added to ./data/ssl
proxy:
build:
context: ./docker
dockerfile: Dockerfile.nginx
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./data/ssl/:/etc/nginx/certs
environment:
DHPARAM_BITS: 2048
DHPARAM_GENERATION: "false"
HTTPS_METHOD: "noredirect"
HSTS: "off"
cap_add:
- SYS_ADMIN
networks:
default:
aliases:
- nextcloud${DOMAIN_SUFFIX}
- nextcloud2${DOMAIN_SUFFIX}
- nextcloud3${DOMAIN_SUFFIX}
- stable16${DOMAIN_SUFFIX}
- stable17${DOMAIN_SUFFIX}
- stable18${DOMAIN_SUFFIX}
- collabora${DOMAIN_SUFFIX}
- onlyoffice${DOMAIN_SUFFIX}
- collabora2${DOMAIN_SUFFIX}
- proxy${DOMAIN_SUFFIX}
- hpb${DOMAIN_SUFFIX}
- push${DOMAIN_SUFFIX}
- keycloak${DOMAIN_SUFFIX}
haproxy:
image: haproxy
expose:
- 80
environment:
VIRTUAL_HOST: "proxy${DOMAIN_SUFFIX}"
volumes:
- ./docker/configs/haproxy.conf:/usr/local/etc/haproxy/haproxy.cfg:ro
nextcloud:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
environment:
# SQL: 'sqlite'
SQL: 'mysql'
#SQL: 'pgsql'
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: "nextcloud${DOMAIN_SUFFIX}"
HTTPS_METHOD: "noredirect"
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
volumes:
- '${REPO_PATH_SERVER:-/home/jus/repos/nextcloud/server}:/var/www/html'
- data:/var/www/html/data
- config:/var/www/html/config
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-extra'
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
ports:
- "${PORTBASE:-800}0:80"
depends_on:
- database-mysql
#- database-postgres
- redis
- mail
nextcloud2:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
environment:
# SQL: 'sqlite'
# SQL: 'mysql'
SQL: 'pgsql'
NEXTCLOUD_AUTOINSTALL: "NO"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: "nextcloud2${DOMAIN_SUFFIX}"
HTTPS_METHOD: "noredirect"
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
volumes:
- '${REPO_PATH_SERVER:-/home/jus/repos/nextcloud/server}:/var/www/html'
- data:/var/www/html/data
- config:/var/www/html/config
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-extra'
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
ports:
- "${PORTBASE:-800}1:80"
depends_on:
#- database-mysql
- database-postgres
- redis
- mail
stable16:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
environment:
SQL: 'sqlite'
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable16${DOMAIN_SUFFIX}
HTTPS_METHOD: "noredirect"
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable16:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable16/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- redis
- mail
stable17:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
environment:
SQL: 'sqlite'
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable17${DOMAIN_SUFFIX}
HTTPS_METHOD: "noredirect"
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable17:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable17/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- redis
- mail
stable18:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
environment:
SQL: 'sqlite'
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable18${DOMAIN_SUFFIX}
HTTPS_METHOD: "noredirect"
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable18:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable18/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- redis
- mail
database-mysql:
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: 'nextcloud'
MYSQL_PASSWORD: 'nextcloud'
MYSQL_USER: 'nextcloud'
MYSQL_DATABASE: 'nextcloud'
ports:
- "${PORTBASE:-800}2:3306"
volumes:
- mysql:/var/lib/mysql
database-postgres:
image: postgres:latest
environment:
POSTGRES_PASSWORD: postgres
expose:
- 5432
volumes:
- postgres:/var/lib/postgresql
redis:
image: redis:6
ldap:
image: osixia/openldap
command: --copy-service --loglevel debug
expose:
- 389
- 636
ports:
- 3389:389
environment:
LDAP_DOMAIN: planetexpress.com
LDAP_BASE_DN: dc=planetexpress,dc=com
volumes:
- ./data/ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
ldapadmin:
image: osixia/phpldapadmin
environment:
PHPLDAPADMIN_LDAP_HOSTS: ldap
PHPLDAPADMIN_HTTPS: 'false'
ports:
- "${PORTBASE:-800}8:80"
saml:
image: unicon/simplesamlphp
volumes:
- ./docker/configs/var-simplesamlphp/config:/var/simplesamlphp/config
- ./docker/configs/var-simplesamlphp/cert:/var/simplesamlphp/cert
- ./docker/configs/var-simplesamlphp/metadata:/var/simplesamlphp/metadata
environment:
VIRTUAL_HOST: "sso${DOMAIN_SUFFIX}"
expose:
- 80
mail:
image: mailhog/mailhog
environment:
VIRTUAL_HOST: "mail${DOMAIN_SUFFIX}"
VIRTUAL_PORT: 8025
smb:
image: dperson/samba
ports:
- 139
- 445
environment:
# -u "<username;password>[;ID;group;GID]"
USER: "admin;admin"
USER2: "user1;user1"
USER3: "user1;user1"
# -s "<name;/path>[;browse;readonly;guest;users;admins;writelist;comment]"
SHARE: "public;/smbmount;yes;no;yes"
SHARE2: "user1 private share;/smb/user1;no;no;no;user1"
SHARE3: "user2 private share;/smb/user2;no;no;no;user2"
volumes:
- smb:/smbmount
blackfire:
image: blackfire/blackfire:2
ports:
- 8707:8307
environment:
- BLACKFIRE_SERVER_ID
- BLACKFIRE_SERVER_TOKEN
collabora:
image: collabora/code:latest
expose:
- 9980
cap_add:
- MKNOD
environment:
domain: nextcloud${DOMAIN_SUFFIX}
dictionaries: de_DE en_US en_GB
username: admin
password: admin
VIRTUAL_HOST: collabora${DOMAIN_SUFFIX}
VIRTUAL_PORT: 9980
VIRTUAL_PROTO: http
extra_params: "--o:ssl.enable=false"
collabora2:
image: collabora/code:latest
restart: on-failure
expose:
- 9980
cap_add:
- MKNOD
environment:
domain: nextcloud${DOMAIN_SUFFIX}
username: admin
password: admin
VIRTUAL_HOST: collabora2${DOMAIN_SUFFIX}
VIRTUAL_PORT: 9980
VIRTUAL_PROTO: https
onlyoffice:
image: onlyoffice/documentserver-ee:latest
environment:
VIRTUAL_HOST: onlyoffice${DOMAIN_SUFFIX}
expose:
- '80'
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
minio:
image: minio/minio
environment:
VIRTUAL_HOST: minio${DOMAIN_SUFFIX}
MINIO_ACCESS_KEY: nextcloud
MINIO_SECRET_KEY: nextcloud
ports:
- "${PORTBASE:-800}5:9000"
- 9001:9001
volumes:
- objectstorage_minio:/data
command: server /data --console-address ":9001"
s3:
image: lphoward/fake-s3
expose:
- 4569
volumes:
- objectstorage_fakes3:/fakes3_root
elasticsearch:
build:
context: ./docker
dockerfile: Dockerfile.elasticsearch
environment:
discovery.type: single-node
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
push:
image: nextcloud_notify_push
ports:
- '8191:80'
environment:
RUST_LOG: debug
VIRTUAL_HOST: push${DOMAIN_SUFFIX}
VIRTUAL_PORT: 8191
DATABASE_URL: mysql://nextcloud:nextcloud@master_database-mysql_1/nextcloud
REDIS_URL: redis://redis
NEXTCLOUD_URL: https://nextcloud.local.dev.bitgrid.net
keycloak:
image: quay.io/keycloak/keycloak:13.0.1
expose:
- 8080
volumes:
- ./docker/configs/keycloak:/tmp/keycloak
environment:
VIRTUAL_HOST: "keycloak${DOMAIN_SUFFIX}"
VIRTUAL_PORT: 8080
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
PROXY_ADDRESS_FORWARDING: "true"
KEYCLOAK_IMPORT: /tmp/keycloak/realm-export.json
av:
#debian: image: mkodockx/docker-clamav
image: mkodockx/docker-clamav:alpine
container_name: nextav
restart: unless-stopped
volumes:
- clam:/var/lib/clamav
volumes:
data:
config:
mysql:
postgres:
document_data:
document_log:
objectstorage_fakes3:
objectstorage_minio:
smb:
elasticsearch_data:
clam:
networks:
default:
ipam:
driver: default
config:
- subnet: ${DOCKER_SUBNET:-192.168.21.0/24}