-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
399 lines (381 loc) · 13.5 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
version: "3"
services:
maintainerr:
image: jorenn92/maintainerr:latest
volumes:
- /var/lib/plex/media/:/opt/data
environment:
- TZ=America/New_York
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.janitor.tls.certresolver"
- "traefik.http.routers.janitor.rule=Host(`janitor.edwardofclt.com`)"
- "traefik.http.routers.janitor.entrypoints=https"
- "traefik.http.routers.janitor.tls.certresolver=le"
- "traefik.http.routers.janitor.tls=true"
- "traefik.http.routers.janitor.tls.options=default"
- "traefik.http.routers.janitor.middlewares=authelia@docker"
- "traefik.http.services.janitor.loadbalancer.server.port=80"
calibre:
image: lscr.io/linuxserver/calibre:latest
container_name: calibre
security_opt:
- seccomp:unconfined #optional
environment:
- PUID=0
- PGID=0
- TZ=America/New_York
volumes:
- /var/lib/plex/media/books:/config
ports:
- 8082:8080
- 8181:8181
- 8081:8081
labels:
- "traefik.enable=true"
- "traefik.http.routers.library.tls.certresolver"
- "traefik.http.routers.library.rule=Host(`library.edwardofclt.com`)"
- "traefik.http.routers.library.entrypoints=https"
- "traefik.http.routers.library.tls.certresolver=le"
- "traefik.http.routers.library.tls=true"
- "traefik.http.routers.library.tls.options=default"
- "traefik.http.routers.library.middlewares=authelia@docker"
- "traefik.http.services.library.loadbalancer.server.port=8081"
restart: unless-stopped
calibre-web:
image: lscr.io/linuxserver/calibre-web:latest
container_name: calibre-web
environment:
- PUID=0
- PGID=0
- TZ=America/New_York
- DOCKER_MODS=linuxserver/mods:universal-calibre #optional
- OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional
volumes:
- /var/lib/plex/media/config/books:/config
- /var/lib/plex/media/books:/books
ports:
- 8083:8083
labels:
- "traefik.enable=true"
- "traefik.http.routers.read.tls.certresolver"
- "traefik.http.routers.read.rule=Host(`read.edwardofclt.com`)"
- "traefik.http.routers.read.entrypoints=https"
- "traefik.http.routers.read.tls.certresolver=le"
- "traefik.http.routers.read.tls=true"
- "traefik.http.routers.read.tls.options=default"
- "traefik.http.routers.read.middlewares=authelia@docker"
- "traefik.http.services.read.loadbalancer.server.port=8083"
restart: unless-stopped
readarr:
image: lscr.io/linuxserver/readarr:nightly
environment:
- PUID=0
- PGID=0
- TZ="America/New_York"
volumes:
- /var/lib/plex/media/config/books:/config
- /var/lib/plex/media/books:/books #optional
- /var/lib/plex/media/downloads:/downloads
- /var/lib/plex/media/books/Calibre Library:/config/Calibre Library
ports:
- 8787:8787
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.books.tls.certresolver"
- "traefik.http.routers.books.rule=Host(`books.edwardofclt.com`)"
- "traefik.http.routers.books.entrypoints=https"
- "traefik.http.routers.books.tls.certresolver=le"
- "traefik.http.routers.books.tls=true"
- "traefik.http.routers.books.tls.options=default"
- "traefik.http.routers.books.middlewares=authelia@docker"
- "traefik.http.services.books.loadbalancer.server.port=8787"
minecraft: # docker run -d -it --name mc-server -e EULA=TRUE -p 19132:19132/udp -v mc-volume:/data itzg/minecraft-bedrock-server
image: itzg/minecraft-bedrock-server
network_mode: host
volumes:
- mc-volume:/data
environment:
- EULA=true
- GAMEMODE=creative
- ALLOW_LIST_USERS=GoofballBow6,WonderGolf28534,UnevenLake43399,WoodsyBow646112,InwardNewt28203
pihole:
image: pihole/pihole:latest
networks:
- default
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8080:80/tcp"
environment:
TZ: "America/New_York"
volumes:
- "./pihole/etc-pihole:/etc/pihole"
- "./pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
cap_add:
- NET_ADMIN
restart: unless-stopped
traefik:
depends_on: [auth]
image: traefik:v2.9
networks:
- traefik
- default
container_name: traefik
restart: always
volumes:
- /var/lib/plex/traefik:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/plex/traefik/letsencrypt/acme.json:/acme.json
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.tls.certresolver"
- "traefik.http.routers.traefik.rule=Host(`traefik.edwardofclt.com`)"
- "traefik.http.routers.traefik.entrypoints=https"
- "traefik.http.routers.traefik.tls.certresolver=le"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.tls.options=default"
- "traefik.http.routers.traefik.middlewares=authelia@docker"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
ports:
- 80:80
- 443:443
command:
- "--api"
- "--providers.docker=true"
- "--providers.docker.exposedByDefault=false"
- "--certificatesResolvers.le.acme.email=abeh78@gmail.com"
- "--certificatesResolvers.le.acme.storage=/acme.json"
- "--certificatesResolvers.le.acme.tlsChallenge=true"
- "--certificatesResolvers.le.acme.httpChallenge=true"
- "--pilot.token=86ad26b4-bedb-4e42-b522-fd9f03e5747d"
- "--certificatesResolvers.le.acme.httpChallenge.entryPoint=http"
- "--entrypoints.http=true"
- "--entrypoints.http.address=:80"
- "--entrypoints.http.http.redirections.entrypoint.to=https"
- "--entrypoints.http.http.redirections.entrypoint.scheme=https"
- "--entrypoints.https=true"
- "--entrypoints.https.address=:443"
- "--log=true"
- "--log.level=ERROR"
- '--entryPoints.https.forwardedHeaders.insecure=true'
- '--entryPoints.https.proxyProtocol.insecure=true'
- '--entryPoints.https.forwardedHeaders.trustedIPs=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,fc00::/7'
- '--entryPoints.https.proxyProtocol.trustedIPs=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,fc00::/7'
openldap:
image: osixia/openldap:latest
restart: always
ports:
- 389:389
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Example Inc."
LDAP_DOMAIN: "edwardofclt.com"
LDAP_BASE_DN: ""
LDAP_ADMIN_PASSWORD: "admin"
LDAP_CONFIG_PASSWORD: "config"
LDAP_READONLY_USER: "false"
LDAP_READONLY_USER_USERNAME: "readonly"
LDAP_READONLY_USER_PASSWORD: "readonly"
LDAP_RFC2307BIS_SCHEMA: "false"
LDAP_BACKEND: "mdb"
LDAP_REPLICATION: "false"
KEEP_EXISTING_CONFIG: "false"
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
LDAP_SSL_HELPER_PREFIX: "ldap"
tty: true
stdin_open: true
volumes:
- /var/lib/plex/media/ldap/config:/var/lib/ldap
- /var/lib/plex/media/ldap/slap:/etc/ldap/slapd.d
- /container/service/slapd/assets/certs/
phpldapadmin:
depends_on: [auth]
image: osixia/phpldapadmin:latest
restart: always
container_name: phpldapadmin
ports:
- 81:80
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: "false"
whoami:
image: traefik/whoami
command:
- --port=2001
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.tls.certresolver"
- "traefik.http.routers.whoami.rule=Host(`whoami.edwardofclt.com`)"
- "traefik.http.routers.whoami.entrypoints=https"
- "traefik.http.routers.whoami.tls.certresolver=le"
- "traefik.http.routers.whoami.tls=true"
- "traefik.http.routers.whoami.tls.options=default"
- "traefik.http.routers.whoami.middlewares=authelia@docker"
- "traefik.http.services.whoami.loadbalancer.server.port=2001"
auth:
depends_on: [openldap]
image: authelia/authelia:4.30.1
networks:
- traefik
- default
ports:
- 9091:9091
restart: always
volumes:
- /var/lib/plex/auth/config:/config
labels:
- 'traefik.http.middlewares.authelia.forwardAuth.address=http://auth:9091/api/verify?rd=https%3A%2F%2Fauthelia.edwardofclt.com%2F'
- 'traefik.http.middlewares.authelia.forwardAuth.trustForwardHeader=true'
- 'traefik.http.middlewares.authelia.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email'
- 'traefik.http.middlewares.authelia-basic.forwardAuth.address=http://auth:9091/api/verify?auth=basic'
- 'traefik.http.middlewares.authelia-basic.forwardAuth.trustForwardHeader=true'
- 'traefik.http.middlewares.authelia-basic.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email'
- "traefik.enable=true"
- "traefik.http.routers.authelia.rule=Host(`authelia.edwardofclt.com`)"
- "traefik.http.routers.authelia.entrypoints=https"
- "traefik.http.routers.authelia.tls=true"
- "traefik.http.routers.authelia.tls.options=default"
- "traefik.http.routers.authelia.tls.certresolver=le"
plex:
image: linuxserver/plex
networks:
- traefik
- default
restart: always
environment:
- TZ=America/New_York
- PUID=0
- PGID=0
hostname: plex.edwardofclt.com
ports:
- 32400:32400/tcp
- 3005:3005/tcp
- 8324:8324/tcp
- 32469:32469/tcp
- 1900:1900/udp
- 32410:32410/udp
- 32412:32412/udp
- 32413:32413/udp
- 32414:32414/udp
volumes:
- /var/lib/plex/media/config:/config
- /var/lib/plex/media/movies:/movies
- /var/lib/plex/media/tv:/tv
labels:
- "traefik.enable=true"
- "traefik.http.routers.plex.tls.certresolver"
- "traefik.http.routers.plex.rule=Host(`plex.edwardofclt.com`)"
- "traefik.http.routers.plex.entrypoints=https"
- "traefik.http.routers.plex.tls.certresolver=le"
- "traefik.http.routers.plex.tls=true"
- "traefik.http.routers.plex.tls.options=default"
- "traefik.http.services.plex.loadbalancer.server.port=32400"
sabnzb:
depends_on: [auth]
image: linuxserver/sabnzbd
restart: unless-stopped
environment:
- PUID=0
- PGID=0
# network_mode: service:gluetun
volumes:
- /var/lib/plex/media/downloads:/downloads
- /var/lib/plex/media/sabnzb:/config
labels:
- "traefik.enable=true"
- "traefik.http.routers.sab.tls.certresolver"
- "traefik.http.routers.sab.rule=Host(`sab.edwardofclt.com`)"
- "traefik.http.routers.sab.entrypoints=https"
- "traefik.http.routers.sab.tls.certresolver=le"
- "traefik.http.routers.sab.tls=true"
- "traefik.http.routers.sab.tls.options=default"
- "traefik.http.routers.sab.middlewares=authelia@docker"
- "traefik.http.services.sab.loadbalancer.server.port=8080"
radarr:
depends_on: [auth]
image: linuxserver/radarr
restart: unless-stopped
# network_mode: service:gluetun
environment:
- PUID=0
- PGID=0
ports:
- 7878:7878
labels:
- "traefik.enable=true"
- "traefik.http.routers.movies.tls.certresolver"
- "traefik.http.routers.movies.rule=Host(`movies.edwardofclt.com`)"
- "traefik.http.routers.movies.entrypoints=https"
- "traefik.http.routers.movies.tls.certresolver=le"
- "traefik.http.routers.movies.tls=true"
- "traefik.http.routers.movies.tls.options=default"
- "traefik.http.routers.movies.middlewares=authelia@docker"
- "traefik.http.services.movies.loadbalancer.server.port=7878"
volumes:
- /var/lib/plex/media/movies:/movies
- /var/lib/plex/media/tv:/tv
- /var/lib/plex/media/downloads:/downloads
- /var/lib/plex/media/radarr:/config
sonarr:
depends_on: [auth]
image: linuxserver/sonarr
restart: unless-stopped
# network_mode: service:gluetun
ports:
- 8989:8989
environment:
- PUID=0
- PGID=0
networks:
- default
volumes:
- /var/lib/plex/media/tv:/tv
- /var/lib/plex/media/movies:/movies
- /var/lib/plex/media/downloads:/downloads
- /var/lib/plex/media/sonarr:/config
labels:
- "traefik.enable=true"
- "traefik.http.routers.tv.tls.certresolver"
- "traefik.http.routers.tv.rule=Host(`tv.edwardofclt.com`)"
- "traefik.http.routers.tv.entrypoints=https"
- "traefik.http.routers.tv.tls.certresolver=le"
- "traefik.http.routers.tv.tls=true"
- "traefik.http.routers.tv.tls.options=default"
- "traefik.http.routers.tv.middlewares=authelia@docker"
- "traefik.http.services.tv.loadbalancer.server.port=8989"
overseerr:
depends_on: [plex, radarr, sonarr]
image: sctx/overseerr:latest
networks:
- traefik
- default
container_name: overseerr
environment:
- LOG_LEVEL=error
- TZ=America/New_York
- PORT=5055
volumes:
- /var/lib/plex/overseer:/app/config
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.req.tls.certresolver"
- "traefik.http.routers.req.rule=Host(`req.edwardofclt.com`)"
- "traefik.http.routers.req.entrypoints=https"
- "traefik.http.routers.req.tls.certresolver=le"
- "traefik.http.routers.req.tls=true"
- "traefik.http.routers.req.tls.options=default"
- "traefik.http.services.req.loadbalancer.server.port=5055"
volumes:
mc-volume:
external: true
pufferpanel-config:
networks:
traefik:
external: true
default: