-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
443 lines (425 loc) · 12.1 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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
version: "3.6"
services:
swag:
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
secrets:
- linuxserver_swag_url
- linuxserver_swag_duckdnstoken
- linuxserver_swag_email
env_file:
- ${HOME}/.services/swag/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/swag/config:/config
# - ${HOME}/.services/nginx/etc/nginx/conf.d:/etc/nginx/conf.d:ro
# - ${HOME}/.services/nginx/etc/ssl/private:/etc/ssl/private
ports:
- ${SWAG_HTTP_PORT}:80
- ${SWAG_HTTPS_PORT}:443
restart: unless-stopped
networks:
- organizr
- swag
duckdns:
image: linuxserver/duckdns
container_name: duckdns
secrets:
- linuxserver_duckdns_token
- linuxserver_duckdns_subdomains
env_file:
- ${HOME}/.services/duckdns/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/duckdns/config:/config
restart: unless-stopped
organizr:
image: organizr/organizr:arm64
container_name: organizr
env_file:
- ${HOME}/.services/organizr/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/organizr/config:/config
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- ${ORGANIZR_PORT}:80
restart: unless-stopped
networks:
- organizr
portainer:
image: portainer/portainer:latest
container_name: portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOME}/.services/portainer/data:/data
ports:
- ${PORTAINER_PORT}:9000
networks:
- organizr
qbittorrent:
image: linuxserver/qbittorrent
container_name: qbittorrent
env_file:
- ${HOME}/.services/qbittorrent/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/qbittorrent/config:/config
- ${HOME}/downloads:/downloads
ports:
- ${QBITTORRENT_WEBUI_PORT}:9092
- ${QBITTORRENT_OUT_PORT}:51412
- ${QBITTORRENT_OUT_PORT}:51412/udp
restart: unless-stopped
networks:
- torrenting
- organizr
jackett:
image: linuxserver/jackett:latest
container_name: jackett
env_file:
- ${HOME}/.services/jackett/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/jackett/config:/config
- ${HOME}/downloads:/downloads
ports:
- ${JACKETT_PORT}:9117
restart: unless-stopped
networks:
- torrenting
- organizr
radarr:
image: linuxserver/radarr:latest
container_name: radarr
env_file:
- ${HOME}/.services/radarr/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/radarr/config:/config
- ${HOME}/movies:/movies
- ${HOME}/downloads:/downloads
ports:
- ${RADARR_PORT}:7878
restart: unless-stopped
networks:
- torrenting
- organizr
sonarr:
image: linuxserver/sonarr:latest
container_name: sonarr
env_file:
- ${HOME}/.services/sonarr/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/sonarr/config:/config
- ${HOME}/series:/tv
- ${HOME}/anime:/anime
- ${HOME}/downloads:/downloads
ports:
- ${SONARR_PORT}:8989
restart: unless-stopped
networks:
- torrenting
- organizr
bazarr:
image: linuxserver/bazarr:latest
container_name: bazarr
env_file:
- ${HOME}/.services/bazarr/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/bazarr/config2:/config
- ${HOME}/movies:/movies
- ${HOME}/series:/tv
- ${HOME}/anime:/anime
ports:
- ${BAZARR_PORT}:6767
restart: unless-stopped
networks:
- torrenting
- organizr
duplicati:
image: linuxserver/duplicati:latest
container_name: duplicati
env_file:
- ${HOME}/.services/duplicati/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/duplicati/config:/config
- ${HOME}/backups:/backups
- ${HOME}:/source
- /media/external_hd:/mount
ports:
- ${DUPLICATI_PORT}:8200
restart: unless-stopped
networks:
- organizr
plex:
image: linuxserver/plex
container_name: plex
env_file:
- ${HOME}/.services/plex/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/plex/config:/config
- ${HOME}/movies:/movies
- ${HOME}/series:/tv
- ${HOME}/anime:/anime
ports:
- ${PLEX_PMS_PORT}:32400
- ${PLEX_DLNA1_PORT}:1900/udp
- ${PLEX_DLNA2_PORT}:32469
- ${PLEX_PHT_COMPANION_PORT}:3005
- ${PLEX_ROKU_COMPANION_PORT}:8324
- ${PLEX_GDM1_PORT}:32410/udp
- ${PLEX_GDM2_PORT}:32412/udp
- ${PLEX_GDM3_PORT}:32413/udp
- ${PLEX_GDM4_PORT}:32414/udp
restart: unless-stopped
networks:
- organizr
flextv:
build: ./flextv/repo
image: digitalhigh/flextv
container_name: flextv
env_file:
- ${HOME}/.services/flextv/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/flextv/config:/config
ports:
- ${FLEXTV_PORT}:80
restart: unless-stopped
networks:
- organizr
jellyfin:
image: linuxserver/jellyfin
container_name: jellyfin
env_file:
- ${HOME}/.services/jellyfin/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/jellyfin/config:/config
- ${HOME}/movies:/data/movies
- ${HOME}/series:/data/tvshows
- ${HOME}/anime:/data/anime
ports:
- ${JELLYFIN_PORT}:8096
devices:
- /dev/video10:/dev/video10 #optional
restart: unless-stopped
networks:
- organizr
urbackup:
image: uroni/urbackup-server
container_name: urbackup
env_file:
- ${HOME}/.services/urbackup/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/urbackup/var/urbackup:/var/urbackup
- ${HOME}/backups:/backups
# Uncomment the next line if you want to bind-mount the www-folder
#- /path/to/wwwfolder:/usr/share/urbackup
ports:
- 35623:35623/udp
- 55413:55413/tcp
- 55414:55414/tcp
restart: unless-stopped
#network_mode: host
networks:
- organizr
# Activate the following two lines for BTRFS support
#cap_add:
# - SYS_ADMIN
mariadb:
image: linuxserver/mariadb
container_name: mariadb
secrets:
- mariadb_root_password
env_file:
- ${HOME}/.services/mariadb/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/mariadb/var/lib/mysql:/var/lib/mysql
restart: unless-stopped
networks:
- mariadb
# ldap-auth:
# image: linuxserver/ldap-auth
# container_name: ldap-auth
# secrets:
# - linuxserver_ldapauth_fernetkey
# env_file:
# - ${HOME}/.services/ldap-auth/.env
# - ${HOME}/.services/system.env
# ports:
# - 8888:8888
# - 9000:9000
# restart: unless-stopped
# networks:
# - ldap
# Authelia (Lite) - Self-Hosted Single Sign-On and Two-Factor Authentication
authelia:
image: authelia/authelia:4.21.0
container_name: authelia
# image: authelia/authelia:latest
depends_on:
- mariadb
- redis
- openldap
secrets:
- authelia_jwt_secret
- authelia_session_secret
- redis_password
- authelia_storage_mysql_password
- authelia_notifier_smtp_password
- authelia_duo_api_secret_key
env_file:
- ${HOME}/.services/authelia/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/authelia/config:/config
# labels:
# - "traefik.enable=true"
# ## HTTP Routers
# - "traefik.http.routers.authelia-rtr.entrypoints=https"
# - "traefik.http.routers.authelia-rtr.rule=HostHeader(`authelia.$DOMAINNAME`)"
# ## Middlewares
# - "traefik.http.routers.authelia-rtr.middlewares=chain-authelia@file"
# ## HTTP Services
# - "traefik.http.routers.authelia-rtr.service=authelia-svc"
# - "traefik.http.services.authelia-svc.loadbalancer.server.port=9091"
restart: unless-stopped
networks:
- ldap
- swag
- mariadb
# Redis - Key-value Store
redis:
image: redis:alpine
container_name: redis
security_opt:
- no-new-privileges:true
volumes:
- ${HOME}/.services/redis/data:/data
- ${HOME}/.services/redis/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- ${REDIS_PORT}:6379
restart: unless-stopped
networks:
- ldap
entrypoint: redis-server /usr/local/etc/redis/redis.conf --appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru
# Redis Commander - Redis Management Tool
rediscommander:
build: ./rediscommander/repo
image: rediscommander/redis-commander
container_name: rediscommander
secrets:
- redis_password
security_opt:
- no-new-privileges:true
env_file:
- ${HOME}/.services/rediscommander/.env
- ${HOME}/.services/system.env
# labels:
# - "traefik.enable=true"
# ## HTTP Routers
# - "traefik.http.routers.rediscommander-rtr.entrypoints=https"
# - "traefik.http.routers.rediscommander-rtr.rule=HostHeader(`rediscom.$DOMAINNAME`)"
# ## Middlewares
# - "traefik.http.routers.rediscommander-rtr.middlewares=chain-authelia@file"
# ## HTTP Services
# - "traefik.http.routers.rediscommander-rtr.service=rediscommander-svc"
# - "traefik.http.services.rediscommander-svc.loadbalancer.server.port=8081"
ports:
- ${REDISCOMMANDER_PORT}:8081
restart: unless-stopped
networks:
- organizr
- ldap
openldap:
image: osixia/openldap:1.4.0
container_name: openldap
hostname: ldap.mortenera.duckdns.org
domainname: mortenera.duckdns.org
secrets:
- openldap_config_password
- openldap_admin_password
env_file:
- ${HOME}/.services/openldap/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/openldap/var/lib/ldap:/var/lib/ldap
- ${HOME}/.services/openldap/etc/ldap/slapd.d:/etc/ldap/slapd.d
ports:
- ${OPENLDAP_PORT}:389
- ${OPENLDAP_PORT_SSL}:636
restart: unless-stopped
networks:
- ldap
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
env_file:
- ${HOME}/.services/phpldapadmin/.env
- ${HOME}/.services/system.env
volumes:
- ${HOME}/.services/phpldapadmin/container/environment/01-custom/vars.yaml:/container/environment/01-custom/vars.yaml
ports:
- ${PHP_LDAP_ADMIN_PORT}:80
depends_on:
- openldap
networks:
- ldap
- organizr
networks:
default:
name: services
organizr:
name: organizr
torrenting:
name: torrenting
ldap:
name: ldap
swag:
name: swag
mariadb:
name: mariadb
secrets:
linuxserver_swag_url:
file: ${HOME}/.services/swag/url.secret
linuxserver_swag_duckdnstoken:
file: ${HOME}/.services/swag/duckdnstoken.secret
linuxserver_swag_email:
file: ${HOME}/.services/swag/email.secret
linuxserver_duckdns_token:
file: ${HOME}/.services/duckdns/token.secret
linuxserver_duckdns_subdomains:
file: ${HOME}/.services/duckdns/subdomains.secret
linuxserver_ldapauth_fernetkey:
file: ${HOME}/.services/ldap-auth/fernetkey.secret
mariadb_root_password:
file: ${HOME}/.services/mariadb/root_password.secret
authelia_jwt_secret:
file: ${HOME}/.services/authelia/jwt_secret.secret
authelia_session_secret:
file: ${HOME}/.services/authelia/session_secret.secret
authelia_storage_mysql_password:
file: ${HOME}/.services/authelia/storage_mysql_password.secret
authelia_notifier_smtp_password:
file: ${HOME}/.services/authelia/notifier_smtp_password.secret
authelia_duo_api_secret_key:
file: ${HOME}/.services/authelia/duo_api_secret_key.secret
redis_password:
file: ${HOME}/.services/redis/password.secret
openldap_config_password:
file: ${HOME}/.services/openldap/config_password.secret
openldap_admin_password:
file: ${HOME}/.services/openldap/admin_password.secret