-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
661 lines (632 loc) · 23.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
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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
# Services I'll be running:
# Managed by Home Assistant Supervised:
#
# Portainer 9000 / 9443
# Home Assistant (Supervised) 8123
# Content:
#
# Lidarr 455
# Radarr 454
# Sonarr 453
# Readarr 452
# Prowlarr 451
# Flaresolverr 8191
# Jellyseerr 450
# Jellyfin 449
# qBittorrent 448
# Utilities:
#
# Nextcloud 447
# Vaultwarden 446
# PufferPanel 445, 5657, 27015, 25565
# Homarr 7575
# Frigate 5000, 8554, 8555
# Network/Security:
#
# Adguard 444, 3000, 53, 67, 853
# Traefik 443
# Authentik 8000, 8443
# Suricata IDS (WIP)
# Uptime-Kuma 3001
version: "3.6"
services:
# image used to index torrent links from the internet
prowlarr:
image: linuxserver/prowlarr:latest
container_name: arr-suite-prowlarr
env_file: stack.env
environment:
- PUID=1000
- PGID=1000
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/prowlarr:/config # database and Prowlarr configs
expose:
- 451/tcp # web ui
ports:
- 451:9696/tcp # web ui
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.prowlarr.rule=Host(`prowlarr.${DOMAIN_NAME}`)
- traefik.http.services.prowlarr.loadbalancer.server.port=9696
# Optional part for traefik middlewares
- traefik.http.routers.prowlarr.middlewares=local-ipwhitelist@file
# image used to scan for tv shows
sonarr:
image: linuxserver/sonarr:latest
container_name: arr-suite-sonarr
environment:
- PUID=1000
- PGID=1000
env_file: stack.env
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/sonarr:/config # database and Radarr configs
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/media:/media # location of media and qbittorrent download folder
expose:
- 453/tcp # web ui
ports:
- 453:8989/tcp # web ui
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.sonarr.rule=Host(`sonarr.${DOMAIN_NAME}`)
- traefik.http.services.sonarr.loadbalancer.server.port=8989
# Optional part for traefik middlewares
- traefik.http.routers.sonarr.middlewares=local-ipwhitelist@file
# image used to scan for movies
radarr:
image: linuxserver/radarr:latest
container_name: arr-suite-radarr
env_file: stack.env
environment:
- PUID=1000
- PGID=1000
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/radarr:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/media:/media # location of media and qbittorrent download folder
expose:
- 454/tcp # web ui
ports:
- 454:7878/tcp # web ui
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.radarr.rule=Host(`radarr.${DOMAIN_NAME}`)
- traefik.http.services.radarr.loadbalancer.server.port=7878
# Optional part for traefik middlewares
- traefik.http.routers.radarr.middlewares=local-ipwhitelist@file
# image used to scan for music
lidarr:
image: linuxserver/lidarr:latest
container_name: arr-suite-lidarr
env_file: stack.env
environment:
- PUID=1000
- PGID=1000
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/lidarr:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/media:/media # location of media and qbittorrent download folder
expose:
- 455/tcp # web ui
ports:
- 455:8686/tcp # web ui
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.lidarr.rule=Host(`lidarr.${DOMAIN_NAME}`)
- traefik.http.services.lidarr.loadbalancer.server.port=8686
# Optional part for traefik middlewares
- traefik.http.routers.lidarr.middlewares=local-ipwhitelist@file
# image used to scan for books
readarr:
image: linuxserver/readarr:develop
container_name: arr-suite-readarr
env_file: stack.env
environment:
- PUID=1000
- PGID=1000
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/readarr:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/media:/media # location of media and qbittorrent download folder
expose:
- 452/tcp # web ui
ports:
- 452:452/tcp # web ui
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.readarr.rule=Host(`readarr.${DOMAIN_NAME}`)
- traefik.http.services.readarr.loadbalancer.server.port=8787
# Optional part for traefik middlewares
- traefik.http.routers.readarr.middlewares=local-ipwhitelist@file
# image used to bypass cloudflare for prowlarr
flaresolverr:
image: flaresolverr/flaresolverr:latest
env_file: stack.env
container_name: arr-suite-flaresolverr
environment:
- LOG_LEVEL=info
- LOG_HTML=false
- CAPTCHA_SOLVER=none
expose:
- 8191/tcp # listening port for selenium
restart: unless-stopped
networks:
- proxy
# image used for vpn killswitch network
gluetun:
image: qmcgaw/gluetun:latest
container_name: arr-suite-gluetun
cap_add:
- NET_ADMIN
ports:
- 448:8080 # qbittorrent http web ui
env_file:
- stack.env
- secrets.env
environment:
# see https://github.com/qdm12/gluetun-wiki for more details
# example envs based on https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/mullvad.md
- VPN_SERVICE_PROVIDER=custom
- VPN_TYPE=wireguard
- VPN_ENDPOINT_IP=${IP_ADDRESS}
- VPN_ENDPOINT_PORT=${VPN_KS_PORT}
- WIREGUARD_PUBLIC_KEY=${VPN_KS_PUB}
- WIREGUARD_PRIVATE_KEY=${VPN_KS_PRIV}
- WIREGUARD_PRESHARED_KEY=${VPN_KS_PS}
- WIREGUARD_ADDRESSES=10.64.222.21/32
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/gluetun:/gluetun
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.qbittorrent.rule=Host(`qbittorrent.${DOMAIN_NAME}`)
- traefik.http.services.qbittorrent.loadbalancer.server.port=8080
# Optional part for traefik middlewares
- traefik.http.routers.qbittorrent.middlewares=local-ipwhitelist@file
# image used to download stuff; run over gluetun network (vpn killswitch)
qbittorrent:
image: linuxserver/qbittorrent:latest
container_name: arr-suite-qbittorrent
env_file: stack.env
environment:
- PUID=1000
- PGID=1000
- WEBUI_PORT=8080
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/qbittorrent:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/media/downloads:/media/downloads
depends_on:
- gluetun
network_mode: container:arr-suite-gluetun # use the gluetun container network (vpn killswitch)
restart: unless-stopped
# image used to manage media and stream it
jellyfin:
image: linuxserver/jellyfin:latest
container_name: arr-suite-jellyfin
env_file: stack.env
environment:
- PUID=1000
- PGID=1000
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/jellyfin:/config # emby data storage location; can grow very large
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/media:/data # media goes here
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/arr-suite/configs/jellyfin/lib:/opt/vc/lib # optional; path for Raspberry Pi OpenMAX libs
expose:
- 449/tcp # http web ui
ports:
- 449:8096/tcp # http web ui
#devices:
# - /dev/dri:/dev/dri #optional
# - /dev/vchiq:/dev/vchiq #optional
# - /dev/video10:/dev/video10 #optional
# - /dev/video11:/dev/video11 #optional
# - /dev/video12:/dev/video12 #optional
restart: unless-stopped
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.jellyfin.rule=Host(`jelly.${DOMAIN_NAME}`)
- traefik.http.services.jellyfin.loadbalancer.server.port=8096
# Optional part for traefik middlewares
- traefik.http.routers.jellyfin.middlewares=local-ipwhitelist@file
adguard:
container_name: adguard
hostname: adguard
image: adguard/adguardhome:latest
ports:
- 3000:3000/tcp # only required during initial setup
- 444:80/tcp # web interface after setup
- 53:53/tcp # dns
- 53:53/udp # dns
- 67:67/udp # dhcp
# - 68:68/tcp # dhcp
# - 68:68/udp # dhcp
# - 784:784/udp # dns-over-quic
- 853:853/tcp # dns over tls
# - 853:853/udp # dns over tls
# - 5443:5443/tcp # dnscrypt
# - 5443:5443/udp # dnscrypt
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/adguard-home/work:/opt/adguardhome/work
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/adguard-home/conf:/opt/adguardhome/conf
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.adguard.rule=Host(`dns.${DOMAIN_NAME}`)
- traefik.http.services.adguard.loadbalancer.server.port=8080
# Optional part for traefik middlewares
- traefik.http.routers.adguard.middlewares=local-ipwhitelist@file,authentik@docker
postgresql:
image: docker.io/library/postgres:16-alpine
container_name: authentik-psql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/psql:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${PG_PASS:-authentik}
POSTGRES_USER: ${PG_USER:-authentik}
POSTGRES_DB: ${PG_DB:-authentik}
env_file:
- stack.env
- secrets.env
networks:
- authentik-internal
redis:
image: docker.io/library/redis:alpine
container_name: authentik-redis
command: --save 60 1 --loglevel warning
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/redis:/data
networks:
- authentik-internal
authentik-proxy:
image: ghcr.io/goauthentik/server:2024.4
container_name: authentik
restart: unless-stopped
command: server
env_file:
- stack.env
- secrets.env
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS:-authentik}
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:-authentiksupersecretkey}
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/media:/media
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/custom-templates:/templates
expose:
- 8000
- 8443
depends_on:
- postgresql
- redis
networks:
- proxy
- authentik-internal
labels:
- traefik.enable=true
- traefik.http.routers.authentik.rule=Host(`authentik.${DOMAIN_NAME}`) || HostRegexp(`{subdomain:[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?}.${DOMAIN_NAME}`) && PathPrefix(`/outpost.goauthentik.io/`)
- traefik.http.services.authentik.loadbalancer.server.port=8000
- traefik.docker.network=proxy
- traefik.http.middlewares.authentik.forwardauth.address=http://authentik-proxy:8000/outpost.goauthentik.io/auth/traefik
- traefik.http.middlewares.authentik.forwardauth.trustForwardHeader=true
- traefik.http.middlewares.authentik.forwardauth.authResponseHeaders=X-authentik-username,X-authentik-groups,X-authentik-email,X-authentik-name,X-authentik-uid,X-authentik-jwt,X-authentik-meta-jwks,X-authentik-meta-outpost,X-authentik-meta-provider,X-authentik-meta-app,X-authentik-meta-version
worker:
image: ghcr.io/goauthentik/server:2024.4
container_name: authentik-worker
restart: unless-stopped
command: worker
user: root
env_file:
- stack.env
- secrets.env
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS:-authentik}
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:-authentiksupersecretkey}
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/certs:/certs
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/media:/media
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/custom-templates:/templates
depends_on:
- postgresql
- redis
networks:
- authentik-internal
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
env_file:
- stack.env
environment:
- PASSWORD=${HOMARR_PASS}
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homarr/configs:/app/data/configs
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homarr/icons:/app/public/icons # optional for custom icons
ports:
- '7575:7575'
nextcloud-db:
image: mariadb:lts
container_name: nextcloud-db
hostname: nextcloud-db
command: --transaction-isolation=READ-COMMITTED --innodb_read_only_compressed=OFF
restart: unless-stopped
env_file:
- stack.env
- secrets.env
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/database:/var/lib/mysql
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
- MYSQL_USER=${MYSQL_USER:-nextcloud}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-nextcloud}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-nextcloud-root-pw}
- MYSQL_INITDB_SKIP_TZINFO=1
- MARIADB_AUTO_UPGRADE=1
- PUID=${MYSQL_PUID:-1000}
- PGID=${MYSQL_PGID:-1000}
networks:
- proxy
nextcloud-redis:
image: redis:alpine
container_name: nextcloud-redis
env_file: secrets.env
hostname: nextcloud-redis
restart: unless-stopped
command:
- /bin/sh
- -c
- redis-server --requirepass "$${REDIS_PASSWORD:-nextcloud}"
networks:
- proxy
nextcloud-app:
image: nextcloud:29-apache
container_name: nextcloud-app
hostname: nextcloud-app
restart: unless-stopped
expose:
- 80/tcp
ports:
- 447:80
depends_on:
- nextcloud-db
- nextcloud-redis
env_file:
- stack.env
- secrets.env
environment:
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER:-admin}
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_USER_PASSWORD:-adminpass}
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS:-cloud.${DOMAIN_NAME}}
- TRUSTED_PROXIES=${NEXTCLOUD_TRUSTED_PROXIES:-172.16.0.0/24}
#- OVERWRITEPROTOCOL=${NC_OVERWRITEPROTOCOL:-http}
#- OVERWRITECLIURL=${NC_OVERWRITECLIURL:-http://127.0.0.1:447}
#- OVERWRITEHOST=${NC_OVERWRITEHOST:-127.0.0.1:447}
- MYSQL_HOST=${MYSQL_HOST:-nextcloud-db}
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
- MYSQL_USER=${MYSQL_USER:-nextcloud}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-nextcloud}
- REDIS_HOST=${REDIS_HOST:-nextcloud-redis}
- REDIS_HOST_PASSWORD=${REDIS_PASSWORD:-nextcloud}
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/data:/var/www/html/data
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/app:/var/www/html
labels:
- traefik.enable=true
- traefik.http.routers.nextcloud.rule=(Host(`cloud.${DOMAIN_NAME}`)) # pls change
- traefik.http.services.nextcloud.loadbalancer.server.port=80
- traefik.http.routers.nextcloud.middlewares=local-ipwhitelist@file,authentik@docker
- traefik.docker.network=proxy
- traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav
- traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/
- traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 # only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 # only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 # only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 # only necessary for enabled file uploads
networks:
- proxy
vaultwarden:
image: vaultwarden/server:latest-alpine
container_name: vaultwarden
hostname: vaultwarden
restart: unless-stopped
env_file: stack.env
dns:
- 1.1.1.1
environment:
#- ADMIN_TOKEN=$$argon2id$$v=19$$m=19456,t=2,p=1$$UUZxK1FZMkZoRHFQRlVrTXZvS0E3bHpNQW55c2dBN2NORzdsa0Nxd1JhND0$$cUoId+JBUsJutlG4rfDZayExfjq4TCt48aBc9qsc3UI # see https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token
#- SIGNUPS_ALLOWED=false
#- SIGNUPS_VERIFY=true
#- INVITATIONS_ALLOWED=true # only admins and orga owners
#- globalSettings__mail__replyToEmail=bitwarden@${DOMAIN_NAME}
#- globalSettings__mail__smtp__host=smtp.gmail.com
#- globalSettings__mail__smtp__username=bitwarden@${DOMAIN_NAME}
#- globalSettings__mail__smtp__password=MyStrongSmtpLoginPassword
#- globalSettings__mail__smtp__ssl=true
#- globalSettings__mail__smtp__port=587
- LOG_FILE=/data/logs/access.log
- WEBSOCKET_ENABLED=true
- ROCKET_ENV=prod
- ROCKET_WORKERS=10
- TZ=${TZ}
- LOG_LEVEL=error
- EXTENDED_LOGGING=true
ports:
- 446:80
networks:
- proxy
labels:
- com.centurylinklabs.watchtower.monitor-only=true
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.vaultwarden.rule=Host(`bitwarden.${DOMAIN_NAME}`)
- traefik.http.routers.vaultwarden.service=vaultwarden
- traefik.http.services.vaultwarden.loadbalancer.server.port=80
- traefik.http.routers.vaultwarden-admin.rule=Host(`bitwarden.${DOMAIN_NAME}`) && Path(`/admin`)
- traefik.http.routers.vaultwarden-admin.service=vaultwarden
- traefik.http.services.vaultwarden-admin.loadbalancer.server.port=80
- traefik.http.routers.vaultwarden-admin.middlewares=local-ipwhitelist@file,authentik@file
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/data:/data
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/logs:/data/logs
# this service will backup your vaultwarden instance correctly
# see https://github.com/Bruceforce/vaultwarden-backup for more information
vaultwarden-backup:
image: bruceforce/vaultwarden-backup:latest
container_name: vaultwarden-backup
hostname: vaultwarden-backup
restart: always
init: true
env_file: stack.env
depends_on:
- vaultwarden
#labels:
# com.centurylinklabs.watchtower.monitor-only: true
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/data:/data/
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/backup:/myBackup
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
#networks:
# - proxy
environment:
- TIMESTAMP=true
- DELETE_AFTER=30
- UID=0
- GID=1000
- TZ=${TZ}
- BACKUP_DIR=/myBackup
- CRON_TIME=50 3 * * * # see https://crontab.guru/, define without quotes!
app:
container_name: uptime-kuma
hostname: uptime-kuma
image: louislam/uptime-kuma
restart: always
ports:
- 3001:3001
expose:
- 3001
dns:
- 1.1.1.1
- 8.8.8.8
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/uptimekuma:/app/data
networks:
- proxy
labels:
- traefik.enable=true
- traefik.http.routers.uptimekuma.rule=Host(`kuma.${DOMAIN_NAME}`)
- traefik.http.services.uptimekuma.loadbalancer.server.port=3001
- traefik.docker.network=proxy
# Part for local lan services only
#- traefik.http.routers.uptimekuma.middlewares=local-ipwhitelist@file
pufferpanel:
build: .
image: ghcr.io/oskardotglobal/pufferpanel:arm64-java
container_name: pufferpanel
restart: on-failure
environment:
- 'PUFFER_LOGS=/etc/pufferpanel/logs' # Location of your logs
- 'PUFFER_PANEL_DATABASE_DIALECT=sqlite3' # Databse type https://docs.pufferpanel.com/en/2.x/guides/database.html
- 'PUFFER_PANEL_DATABASE_URL=file:/etc/pufferpanel/pufferpanel.db?cache=shared' # SQL URL https://docs.pufferpanel.com/en/2.x/guides/da>
- 'PUFFER_DAEMON_DATA_CACHE=/var/lib/pufferpanel/cache' # Cache location within the container
- 'PUFFER_DAEMON_DATA_SERVERS=/var/lib/pufferpanel/servers' # Server data location within the container
- 'PUFFER_DAEMON_DATA_MODULES=/var/lib/pufferpanel/modules' # Location for Modules within the container
volumes:
- '/etc/pufferpanel:/etc/pufferpanel' # Config/logs folder
- '/var/lib/pufferpanel:/var/lib/pufferpanel' # Data folder
- '/var/run/docker.sock:/var/run/docker.sock' # Docker socket, leave this in.
ports:
- '445:8080' # Panel port
- '5657:5657' # SFTP port
- '27015:27015' # Default SRCDS port
- '25565:25565' # Default Minecraft Java port
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.pufferpanel.rule=Host(`puff.${DOMAIN_NAME}`)
- traefik.http.services.pufferpanel.loadbalancer.server.port=8080
# Optional part for traefik middlewares
- traefik.http.routers.pufferpanel.middlewares=local-ipwhitelist@file,authentik@docker
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-rk
shm_size: "64mb" # update for your cameras based on calculation above
env_file:
- stack.env
- secrets.env
devices:
- /dev/video11:/dev/video11 # For Raspberry Pi 4B
volumes:
- /etc/localtime:/etc/localtime:ro
- /path/to/your/config:/config
- /path/to/your/storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "password"
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.frigate.rule=Host(`frigate.${DOMAIN_NAME}`)
- traefik.http.services.frigate.loadbalancer.server.port=5000
# Optional part for traefik middlewares
- traefik.http.routers.frigate.middlewares=local-ipwhitelist@file,authentik@docker
networks:
proxy:
external: true
authentik-internal:
external: true