forked from anandslab/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-t1.yml
executable file
·1823 lines (1765 loc) · 71.6 KB
/
docker-compose-t1.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
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
version: "3.7"
########################### NETWORKS
networks:
traefik_proxy:
external:
name: traefik_proxy
default:
driver: bridge
########################### SERVICES
services:
############################# FRONTENDS
# Traefik - Reverse Proxy
# Create traefik.toml and rules dir and acme dir before running container.
traefik:
image: traefik:maroilles
container_name: traefik
hostname: traefik
restart: unless-stopped
networks:
- default
- traefik_proxy
ports:
- "80:80"
- "443:443"
# - "${TRAEFIK_DASHBOARD_PORT}:8080"
domainname: ${DOMAINNAME}
dns:
# - ${PIHOLE_IP}
- 1.1.1.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${USERDIR}/docker/traefik1:/etc/traefik
- ${USERDIR}/docker/shared:/shared
environment:
CF_API_EMAIL: ${CLOUDFLARE_EMAIL}
CF_API_KEY: ${CLOUDFLARE_API_KEY}
# DUCKDNS_TOKEN: ${DUCKDNS_TOKEN}
labels:
traefik.enable: "true"
traefik.backend: traefik
traefik.protocol: http
traefik.port: 8080
traefik.frontend.rule: Host:traefik.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefixStrip: /traefik
traefik.frontend.headers.SSLHost: traefik.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
# traefik.frontend.auth.basic.users: '${HTTP_USERNAME}:${HTTP_PASSWORD}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# OAuth - Forward Authentication
oauth:
image: thomseddon/traefik-forward-auth
container_name: oauth
hostname: oauth
restart: always
networks:
- default
- traefik_proxy
environment:
PROVIDERS_GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
PROVIDERS_GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
SECRET: ${OAUTH_SECRET}
COOKIE_DOMAIN: ${DOMAINNAME}
INSECURE_COOKIE: "false"
AUTH_HOST: oauth.${DOMAINNAME}
URL_PATH: /_oauth
WHITELIST: ${MY_EMAIL}
LOG_LEVEL: info
LIFETIME: 2592000 # 30 days
labels:
traefik.enable: "true"
traefik.backend: oauth
traefik.port: 4181
traefik.frontend.rule: Host:oauth.${DOMAINNAME}
traefik.frontend.headers.SSLHost: oauth.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# Portainer - Container Management
# Needs trailing / in the URL if using PathPrefixStrip
portainer:
image: portainer/portainer
container_name: portainer
hostname: portainer
restart: unless-stopped
networks:
- traefik_proxy
# ports:
# - "${PORTAINER_PORT}:9000"
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${USERDIR}/docker/portainer/data:/data
environment:
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: portainer
traefik.protocol: http
traefik.port: 9000
traefik.frontend.rule: Host:portainer.${DOMAINNAME}
# traefik.frontend.rule: Host${DOMAINNAME}; PathPrefixStrip: /portainer
traefik.frontend.headers.SSLHost: portainer.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# Organizr - Unified Frontend
organizr:
image: organizrtools/organizr-v2:latest
container_name: organizr
hostname: organizr
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${ORGANIZR_PORT}:80"
volumes:
- ${USERDIR}/docker/organizr:/config
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: organizr
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: Host:${DOMAINNAME},www.${DOMAINNAME}
traefik.frontend.headers.SSLHost: ${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: organizr
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# Heimdall - Unified Frontend Alternative
# Putting all services behind Oragnizr slows things down.
heimdall:
image: linuxserver/heimdall
container_name: heimdall
hostname: heimdall
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${HEIMDALL_PORT}:80"
volumes:
- ${USERDIR}/docker/heimdall:/config
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: heimdall
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: Host:heimdall.${DOMAINNAME}
traefik.frontend.headers.SSLHost: heimdall.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
## Autoindex - Simple Directory Index
autoindex:
image: dceoy/nginx-autoindex
container_name: autoindex
hostname: autoindex
restart: unless-stopped
networks:
- traefik_proxy
# ports:
# - "8015:80"
volumes:
- /media:/var/lib/nginx/html:ro # Location you want to index
labels:
traefik.enable: "true"
traefik.backend: autoindex
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: "Host:index.${DOMAINNAME}"
traefik.frontend.headers.SSLHost: index.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
traefik.frontend.auth.basic.users: '${HTTP_USERNAME}:${HTTP_PASSWORD}'
############################# SMART HOME
# HA-Dockermon - Manage Docker containers in Home Assistant
ha-dockermon:
image: philhawthorne/ha-dockermon
container_name: ha-dockermon
hostname: ha-dockermon
restart: unless-stopped
ports:
- "${HA_DOCKERMON_PORT}:8126"
volumes:
- ${USERDIR}/docker/ha-dockermon:/config
- /var/run/docker.sock:/var/run/docker.sock
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
# Mosquitto - MQTT Broker
# Create mosquitto.conf, passwd, mosquitto.log files and set permissions to 775 user:docker
# dexec mosquitto /bin/sh -> mosquitto_passwd -b /mosquitto/config/passwd username passwd
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
hostname: mosquitto
restart: unless-stopped
ports:
- "${MOSQUITTO_HTTP_PORT}:1883" #http
- "9001:9001" #websockets
# - "${MOSQUITTO_HTTPS_PORT}:8883" #https
volumes:
- ${USERDIR}/docker/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ${USERDIR}/docker/mosquitto/config/passwd:/mosquitto/config/passwd
- ${USERDIR}/docker/shared:/shared
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
# ZoneMinder - Video Surveillance
# Create the database and initial tables using the init script. Database zm, username zmuser, and password zmpass - cannot customize zm, zmuser, or zmpass.
zoneminder:
image: quantumobject/docker-zoneminder:1.32
# image: adc3c7a0ca0a
container_name: zoneminder
hostname: zoneminder
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${ZONEMINDER_HTTP_PORT}:80"
# - "${ZONEMINDER_HTTPS_PORT}:443"
- "9000:9000" # Event Notification Port
privileged: true
shm_size: 4096m
volumes:
- /var/empty
- ${USERDIR}/docker/shared:/shared
- ${USERDIR}/docker/zoneminder/backups:/var/backups
- ${USERDIR}/docker/zoneminder/zoneminder:/var/cache/zoneminder
- ${USERDIR}/docker/zoneminder/config:/config
- type: tmpfs
target: /dev/shm
environment:
SHMEM: "50%"
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
PHP_TZ: ${TZ}
ZM_DB_HOST: ${DB_HOST}
ZM_DB_PORT: ${DB_PORT}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_ROOT: ${USER}
labels:
traefik.enable: "true"
traefik.backend: zoneminder
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: Host:zone.${DOMAINNAME}
traefik.frontend.headers.SSLHost: zone.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
############################# DATABASE
# MariaDB - MySQL Database
mariadb:
container_name: mariadb
image: linuxserver/mariadb:latest
restart: always
networks:
- default
ports:
- "3306:3306"
volumes:
- $USERDIR/docker/mariadb/data:/config
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- PUID=$PUID
- PGID=$PGID
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
# phpMyAdmin - Database management
# Create a new user with admin privileges. Cannot login as root.
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
hostname: phpmyadmin
restart: unless-stopped
networks:
- traefik_proxy
- default
ports:
- "${PHPMYADMIN_PORT}:80"
# depends_on:
# - mariadb
# links:
# - mariadb:db
# volumes:
# - ${USERDIR}/docker/phpmyadmin:/etc/phpmyadmin
environment:
# PMA_HOST: ${DB_HOST}
# PMA_HOST: ${SERVER_IP}
PMA_PORT: ${DB_PORT}
PMA_ARBITRARY: 1
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
labels:
traefik.enable: "true"
traefik.backend: phpmyadmin
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: Host:pma.${DOMAINNAME}
traefik.frontend.headers.SSLHost: pma.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# InfluxDB - Database for sensor data
# Create influxdb.conf
influxdb:
image: influxdb
container_name: influxdb
hostname: influxdb
restart: always
ports:
- "${INFLUXDB_PORT}:8086"
volumes:
# - ${USERDIR}/docker/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- ${USERDIR}/docker/influxdb/db:/var/lib/influxdb
# command: -config /etc/influxdb/influxdb.conf
# Postgres - Database
postgres:
image: postgres
container_name: postgres
hostname: postgres
restart: always
volumes:
- ${USERDIR}/docker/postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${STATPING_DB_PASS}
POSTGRES_USER: ${STATPING_DB_USER}
POSTGRES_DB: ${STATPING_DB}
# Grafana - Graphical data visualization for InfluxDB data
grafana:
image: grafana/grafana
container_name: grafana
hostname: grafana
restart: unless-stopped
networks:
- traefik_proxy
- default
# ports:
# - "${GRAFANA_PORT}:3000"
# depends_on:
# - "influxdb"
user: "0"
volumes:
- ${USERDIR}/docker/grafana:/var/lib/grafana
environment:
GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource,grafana-worldmap-panel,grafana-piechart-panel"
labels:
traefik.enable: "true"
traefik.backend: grafana
traefik.protocol: http
traefik.port: 3000
traefik.frontend.rule: Host:grafana.${DOMAINNAME}
traefik.frontend.headers.SSLHost: grafana.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
############################# DOWNLOADERS
# TransmissionBT - Torrent Downloader
# ONLY ACCESSIBLE THROUGH https://domain.com/transmission/web/ if using PathPrefix
transmission-vpn:
image: haugene/transmission-openvpn
container_name: transmission-vpn
hostname: transmission
restart: unless-stopped
networks:
- traefik_proxy
- default
ports:
- "${TRANSMISSION_PORT}:9091"
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
dns:
- 1.1.1.1
- 1.0.0.1
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/docker/transmission-vpn/data:/data
- ${USERDIR}/docker/transmission-vpn/config:/config
- ${USERDIR}/Downloads:/downloads
environment:
OPENVPN_PROVIDER: IPVANISH
OPENVPN_USERNAME: ${IPVANISH_USERNAME}
OPENVPN_PASSWORD: ${IPVANISH_PASSWORD}
OPENVPN_CONFIG: "ipvanish-CH-Zurich-zrh-c07"
OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60
LOCAL_NETWORK: "${LOCAL_NETWORK}"
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
UMASK_SET: 002
TRANSMISSION_RPC_AUTHENTICATION_REQUIRED: "true"
TRANSMISSION_RPC_HOST_WHITELIST: "127.0.0.1,$SERVER_IP"
TRANSMISSION_RPC_PASSWORD: ${TRANSMISSION_RPC_PASSWORD}
TRANSMISSION_RPC_USERNAME: ${TRANSMISSION_RPC_USERNAME}
TRANSMISSION_UMASK: 002
TRANSMISSION_RATIO_LIMIT: 0.01
TRANSMISSION_RATIO_LIMIT_ENABLED: "true"
TRANSMISSION_ALT_SPEED_DOWN: 2000
TRANSMISSION_ALT_SPEED_ENABLED: "true"
TRANSMISSION_ALT_SPEED_UP: 15
TRANSMISSION_SPEED_LIMIT_DOWN: 6000
TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED: "true"
TRANSMISSION_SPEED_LIMIT_UP: 30
TRANSMISSION_SPEED_LIMIT_UP_ENABLED: "true"
TRANSMISSION_INCOMPLETE_DIR: /downloads/incomplete
TRANSMISSION_INCOMPLETE_DIR_ENABLED: "true"
TRANSMISSION_WATCH_DIR: /downloads
TRANSMISSION_WATCH_DIR_ENABLED: "true"
TRANSMISSION_DOWNLOAD_DIR: /downloads/completed
labels:
traefik.enable: "true"
traefik.backend: transmission-vpn
traefik.protocol: http
traefik.port: 9091
traefik.frontend.rule: Host:trans.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /transmission
traefik.frontend.headers.SSLHost: trans.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# SABnzbd - Binary newsgrabber (NZB downloader)
# Disable SABNnzbd's built-in HTTPS support for traefik proxy to work
# Needs trailing / if using PathPrefix
sabnzbd:
image: linuxserver/sabnzbd
container_name: sabnzbd
hostname: sabnzbd
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${SABNZBD_PORT}:8080"
volumes:
- ${USERDIR}/docker/sabnzbd:/config
- ${USERDIR}/Downloads:/downloads
# - ${USERDIR}/Downloads/incomplete:/incomplete-downloads
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
UMASK_SET: 002
labels:
traefik.enable: "true"
traefik.backend: sabnzbd
traefik.protocol: http
traefik.port: 8080
traefik.frontend.rule: Host:sabnzbd.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /sabnzbd
traefik.frontend.headers.SSLHost: sabnzbd.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
############################# INDEXERS
# NZBHydra2 - NZB meta search
hydra:
image: linuxserver/hydra2
container_name: hydra
hostname: hydra
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${NZBHYDRA_PORT}:5076"
volumes:
- ${USERDIR}/docker/hydra2:/config
- ${USERDIR}/Downloads:/downloads
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: hydra
traefik.protocol: http
traefik.port: 5076
traefik.frontend.rule: Host:hydra.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /hydra
traefik.frontend.headers.SSLHost: hydra.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
############################# PVRS
# Lidarr - Music Management
# Set url_base in lidarr settings if using PathPrefix
lidarr:
image: linuxserver/lidarr
container_name: lidarr
hostname: lidarr
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${LIDARR_PORT}:8686"
volumes:
- ${USERDIR}/docker/lidarr:/config
- ${USERDIR}/Downloads:/downloads
- /media/ds918/media/music:/music
- "/etc/localtime:/etc/localtime:ro"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: lidarr
traefik.protocol: http
traefik.port: 8686
traefik.frontend.rule: Host:lidarr.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /lidarr
traefik.frontend.headers.SSLHost: lidarr.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# Radarr - Movie management
# Set url_base in radarr settings if using PathPrefix
radarr:
# image: aront/radarr #for mp4_automator support
image: linuxserver/radarr:preview
container_name: radarr
hostname: radarr
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${RADARR_PORT}:7878"
volumes:
- ${USERDIR}/docker/radarr:/config
- ${USERDIR}/Downloads:/downloads
- /media:/nas
# - ${USERDIR}/docker/shared/mp4_automator:/config_mp4_automator
# - /media/ds918/media/movies:/movies
- "/etc/localtime:/etc/localtime:ro"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: radarr
traefik.protocol: http
traefik.port: 7878
traefik.frontend.rule: Host:radarr.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /radarr
traefik.frontend.headers.SSLHost: radarr.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
# Sonarr - TV Shows management
# Set url_base in sonarr settings if using PathPrefix
sonarr:
# image: aront/sonarr #for mp4_automator support
image: linuxserver/sonarr:preview
container_name: sonarr
hostname: sonarr
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${SONARR_PORT}:8989"
volumes:
- ${USERDIR}/docker/sonarr:/config
- ${USERDIR}/Downloads:/downloads
# - /media/ds918/media/shows/TV:/tv
- /media:/nas
- "/etc/localtime:/etc/localtime:ro"
# - "${USERDIR}/docker/shared/mp4_automator:/config_mp4_automator:rw"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
labels:
traefik.enable: "true"
traefik.backend: sonarr
traefik.protocol: http
traefik.port: 8989
traefik.frontend.rule: Host:sonarr.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /sonarr
traefik.frontend.headers.SSLHost: sonarr.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
############################# MEDIA
# AirSonic - Music Server
airsonic:
container_name: airsonic
image: linuxserver/airsonic:latest
restart: unless-stopped
networks:
- traefik_proxy
ports:
- "${AIRSONIC_PORT}:4040"
volumes:
- /media:/nas:ro
- $USERDIR/docker/airsonic/podcasts:/podcasts
- $USERDIR/docker/airsonic/playlists:/playlists
- $USERDIR/docker/airsonic/config:/config
# - $USERDIR/docker/airsonic/config:/app/airsonic/config #Used to change log level for debugging
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- PUID=$PUID
- PGID=$PGID
- JAVA_OPTS=-Dserver.use-forward-headers=true
labels:
traefik.enable: "true"
traefik.backend: airsonic
traefik.protocol: http
traefik.port: 4040
traefik.frontend.rule: Host:airsonic.${DOMAINNAME}
traefik.frontend.headers.SSLHost: airsonic.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
# traefik.frontend.auth.forward.address: "http://oauth:4181"
# traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
# traefik.frontend.auth.forward.trustForwardHeader: "true"
# Plex - Media Server
plexms:
image: plexinc/pms-docker:public
container_name: plexms
hostname: plexms
restart: unless-stopped
networks:
- traefik_proxy
- default
ports:
- "${PLEX_PORT}:32400/tcp"
- "3005:3005/tcp"
- "8324:8324/tcp"
- "32469:32469/tcp"
- "1900:1900/udp" #conflict with xTeVe
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
- "${PLEX_WEB_TOOLS_PORT}:33400"
volumes:
- ${USERDIR}/docker/plexms:/config
- ${USERDIR}/Downloads:/Downloads
- /media:/nas
- /dev/shm:/transcode # Offload transcoding to RAM if you have enough RAM
# - ${USERDIR}/Downloads/plex_tmp:/transcode
environment:
TZ: ${TZ}
HOSTNAME: "nucPlex"
PLEX_CLAIM: ${PLEX_CLAIM}
PLEX_UID: ${PUID}
PLEX_GID: ${PGID}
ADVERTISE_IP: http://${SERVER_IP}:${PLEX_PORT}/
labels:
traefik.enable: "true"
traefik.backend: plexms
traefik.protocol: http
traefik.port: 32400
traefik.frontend.rule: Host:nucplex.${DOMAINNAME}
traefik.frontend.headers.SSLHost: nucplex.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
# traefik.frontend.auth.forward.address: "http://oauth:4181"
# traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
# traefik.frontend.auth.forward.trustForwardHeader: "true"
# Emby - Media Server
embyms:
image: emby/embyserver:latest
container_name: embyms
hostname: embyms
restart: unless-stopped
networks:
- traefik_proxy
- default
ports:
- "${EMBY_PORT}:8096/tcp"
- "8920:8920/tcp"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/docker/embyms:/config
- /dev/shm:/transcode
- /media:/nas
- ${USERDIR}/Downloads:/downloads
environment:
TZ: ${TZ}
HOSTNAME: "nucEmby"
UID: ${PUID}
GID: ${PGID}
labels:
traefik.enable: "true"
traefik.backend: embyms
traefik.protocol: http
traefik.port: 8096
traefik.frontend.rule: Host:nucemby.${DOMAINNAME}
traefik.frontend.headers.SSLHost: nucemby.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https:${DOMAINNAME}'
# traefik.frontend.auth.forward.address: "http://oauth:4181"
# traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
# traefik.frontend.auth.forward.trustForwardHeader: "true"
# Jellyfin - Media Server
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
hostname: jellyfin
restart: unless-stopped
networks:
- traefik_proxy
- default
ports:
- "${JELLYFIN_PORT}:8096"
- "8921:8920"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
UMASK_SET: 022
volumes:
- ${USERDIR}/docker/jellyfin:/config
- /dev/shm:/ram_transcode
- /media:/nas
# - /media:/nas:ro # Run in ro mode while upgrading JF
labels:
traefik.enable: "true"
traefik.backend: jellyfin
traefik.protocol: http
traefik.port: 8096
traefik.frontend.rule: Host:jelly.${DOMAINNAME}
traefik.frontend.headers.SSLHost: jelly.${DOMAINNAME}
traefik.docker.network: traefik_proxy
traefik.frontend.passHostHeader: "true"