-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
2724 lines (2698 loc) · 94.8 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
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
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# RESERVED PORTS NOT BE USED IN ANY CONTAINER
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 80 HTTP
# 443 HTTPS
# 1234 SSH
# 7575 Reserved for the Docker Dashboard (personal choice)
# 8080 TCP/UDP
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# DATABASES
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 3330 - Adminer Full-featured database management tool adminer:latest
# 6379 - Authelia-Redis Used for Authelia redis:alpine
# - - Databases-Backup Backups All Redis, MariaDB and Postgres using CRON tiredofit/db-backup:latest
# - - FocalBoard-Postgres Used for FocalBoard postgres:alpine
# 3003 - Grafana The open observability platform grafana/grafana:latest
# - - Immich-Redis Used for Immich redis:alpine
# - - Immich-Postgres Postgres extension provides vector similarity search functions tensorchord/pgvecto-rs:pg16-v0.2.0
# 3004 - InfluxDB Time series database influxdb:alpine
# - - Invidious-Postgres Used for Invidious postgres:alpine
# - - JellyStat-Postgres Used for JellyStat postgres:15.2
# 3002 - Loki Multi-tenant log aggregation system grafana/loki:latest
# 3306 - MariaDB MariaDB Database (MySQL Clone) jbergstroem/mariadb-alpine:latest
# - - Paperless-NGX-Postgres Used for Paperless-NGX postgres:alpine
# - - Paperless-NGX-Redis Used for Paperless-NGX redis:alpine
# - - Promtail Sending log data to Loki grafana/promtail:latest
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# DOCKER RELATED
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# - - Diun Docker images status monitor and notifier using CRON crazymax/diun:latest
# 2375 - Docker Socket Proxy A security-enhanced proxy for the Docker Socket ghcr.io/tecnativa/docker-socket-proxy:latest
# 9900 - Dozzle Container log aggregator amir20/dozzle:latest
# 8200 - Duplicati Backup tool for local files (used for docker mainly) ghcr.io/imagegenius/duplicati:latest
# 11211 - MemCached General-purpose caching system (mainly for YoPass) memcached:alpine
# - - Monocker Live MONitor doCKER with notifications petersem/monocker:latest
# 9000,9443,8000 - Portainer-EE Docker management tool (Business Edition) portainer/portainer-ee:alpine-sts
# - - WatchTower Auto-Update containers with latest images containrrr/watchtower:latest
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# LINKS / PAGE ORGANISATION
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 5050 - Homarr Links manager ghcr.io/ajnart/homarr:latest
# 7461 - LinkDing A bookmark manager that you can host yourself sissbruecker/linkding:latest-alpine
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# MEDIA PLAYING
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 13378 - AudioBookShelf Self-hosted audiobook and podcast server ghcr.io/advplyr/audiobookshelf:latest
# 8096 - Jellyfin Media server jellyfin/jellyfin:10.9.0
# 6555 - JellyStat Stat web interface for Jellyfin Media server cyfershepard/jellystat:unstable
# 4533 - NaviDrome Web-based music collection server and streamer ghcr.io/navidrome/navidrome:latest
# 42010 - Maloja Music scrobble for personal listening statistics krateng/maloja:latest
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# NETWORKING & SECURITY
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 9091 - Authelia 2Factor Authentication authelia/authelia:latest
# - - Cloudflared A secure way to publibly connect to local network cloudflare/cloudflared:latest
# - - Cloudflared-Mon Cloudflare Zero Tunnel health monitor techblog/cloudflared-mon:latest
# 7512 - Dash. Modern server dashboard monitor for the host mauricenino/dashdot:latest
# 20211 - NetAlertX Monitoring WIFI/LAN and alerting of new devices jokobsk/netalertx:latest
# 3001 - Uptime-Kuma Monitoring tool for local DNS louislam/uptime-kuma:latest
# - - VaultWarden-Backup Backs up database for VaultWarden bruceforce/vaultwarden-backup:latest
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# PROGRAMMING
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 8181 - Code-Server Visual Studio Code editor lscr.io/linuxserver/code-server:latest
# 6052,6123 - ESPHome Programming tool for ESP82 chipsets ghcr.io/imagegenius/esphome:latest
# 1883,9001 - MQTT Mosquitto broker eclipse-mosquitto:latest
# 3015 - OctoPrint A snappy web interface for your 3D printer! octoprint/octoprint:latest
# 9999 - TasmoAdmin Manages Sonoff Devices flashed with Tasmota raymondmm/tasmoadmin:latest
# 8259 - TasmoBackup Backups/manages Sonoff Devices flashed with Tasmota danmed/tasmobackupv1:latest
# 9002 - Zigbee2MQTT Convert Zigbee protocol to Mosquitto koenkk/zigbee2mqtt:latest
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# SYSTEM MONITORING & MANAGEMENT
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 4569 - Cloud Commander A file manager for the web with console and editor coderaiser/cloudcmd:latest-alpine
# 8123 - HomeAssistant Smart home monitoring and management ghcr.io/home-assistant/home-assistant:stable
# 6080 - Scrutiny WebUI for S.M.A.R.T monitoring ghcr.io/analogj/scrutiny:master-omnibus
#
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# SELF-HOSTED
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# 8001 - Apprise Push notification using POST lscr.io/linuxserver/apprise-api:latest
# 3765 - ExcaliDraw Virtual whiteboard for sketching hand-drawn like diagrams excalidraw/excalidraw:latest
# 5374 - FocalBoard A project management tool mattermost/focalboard:latest
# 222,3333 - Gitea Git with a cup of tea! gitea/gitea:latest
# 9435 - Hauk A fully open source self-hosted location sharing service bilde2910/hauk:latest
# 8212 - Immich A high performance self-hosted photo and video backup solution ghcr.io/immich-app/immich-server:release
# - - Immich Folder Album Creator Automatically create albums in Immich from a folder structure salvoxia/immich-folder-album-creator:latest
# - - Immich-Machine-Learning ML that alleviate performance issues on low-memory systems ghcr.io/immich-app/immich-machine-learning:release
# - - Immich-Microservices Used for Facial Detection and Recognition ghcr.io/immich-app/immich-server:release
# 7601 - Invidious An open source alternative front-end to YouTube quay.io/invidious/invidious:latest
# 8778 - Kavita A rocket fueled self-hosted digital library for ebook jvmilazz0/kavita:latest
# 8245 - LibreY Free privacy respecting meta search engine Google Alternative ghcr.io/ahwxorg/librey:latest
# 6455 - Mozhi An alternative frontend for many translation engines codeberg.org/aryak/mozhi:latest
# 8777 - Paperless-NGX A document management system ghcr.io/paperless-ngx/paperless-ngx:latest
# - - Paperless-NGX-Gotenberg API for converting numerous document formats into PDF files gotenberg/gotenberg:latest
# - - Paperless-NGX-Tika Detects and extracts metadata/text for different file types ghcr.io/paperless-ngx/tika:latest
# 9980 - PasteFy Pastebin interaapps/pastefy:latest
# 8516 - ProjectSend Clients-oriented, private file sharing web application lscr.io/linuxserver/projectsend:latest
# 8895 - QR Code UI to generate a QR Code from a provided URL bizzycolah/qrcode-generator:latest
# 7701 - Squoosh Ultimate image optimiser with compress and compare dko0/squoosh:latest
# 8082,5055 - TracCar GPS Tracking System traccar/traccar:alpine
# 8089,3012 - VaultWarden Password management application vaultwarden/server:alpine
# 5641,9269 - WizNote Save notes or share documents with your colleagues wiznote/wizserver:latest
# 8180 - YoPass Share Secrets Securely jhaals/yopass:latest
#
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#
#
#
# version: '3'
networks:
# Bridge Network
my_bridge:
name: my_bridge
driver: bridge
attachable: true
ipam:
config:
- subnet: $BRIDGE_SUBNET
gateway: $BRIDGE_GATEWAY
# MacVLAN Network
dockervlan:
name: dockervlan
driver: macvlan
driver_opts:
parent: $ETHCARD
macvlan_mode: bridge
ipam:
config:
- subnet: "$SUBNET"
gateway: "$MACVLAN_GATEWAY"
ip_range: "$MACVLAN_RANGE"
services:
#
####################################################
# #
# -------Adminer------- #
# #
####################################################
#
adminer:
container_name: adminer
restart: $RESTART_POLICY
hostname: adminer
environment:
ADMINER_DEFAULT_DB_DRIVER: mysql
ADMINER_DEFAULT_SERVER: mariadb #172.18.0.5 #mariadb ip address
ADMINER_DESIGN: 'nette' #'esterka'
ADMINER_PLUGINS: 'tables-filter tinymce frames'
ports:
- 3330:8080
networks:
my_bridge:
# depends_on:
# - mariadb
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'adminer:latest'
#
####################################################
# #
# -------AppRise------- #
# #
####################################################
#
# http://192.168.1.10:8001/cfg/<APP_NAME>
# pover://{user_key}@{token}
#
apprise:
container_name: apprise-api
restart: $ALWAYS_ON_POLICY
hostname: apprise
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
networks:
my_bridge:
ports:
- 8001:8000
volumes:
- $PERSIST/apprise:/config
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'lscr.io/linuxserver/apprise-api:latest'
#
####################################################
# #
# AudioBookShelf #
# #
####################################################
#
audiobookshelf:
container_name: audiobookshelf
restart: $RESTART_POLICY
hostname: audiobookshelf
environment:
- TZ=$TZ
volumes:
- $MEDIA_PATH/AudioBooks:/audiobooks
- $MEDIA_PATH/Podcasts:/podcasts
- $PERSIST/audiobookshelf/config:/config
- $PERSIST/audiobookshelf/metadata:/metadata
ports:
- 13378:80
networks:
my_bridge:
image: 'ghcr.io/advplyr/audiobookshelf:latest'
#
#####################################################
# #
# -------Authelia------- #
# #
####################################################
#
authelia:
container_name: authelia
restart: $ALWAYS_ON_POLICY
hostname: authelia
environment:
- TZ=$TZ
volumes:
- $PERSIST/authelia/config:/config
- $PERSIST/authelia/log:/var/log/authelia
- $PERSIST/authelia/assets:/etc/authelia/assets
ports:
- 9091:9091
networks:
my_bridge:
healthcheck:
disable: true
# test: wget -q -O - http://localhost:9091/api/state/ | grep '"status":"OK"'
# interval: 5s
# timeout: 10s
# retries: 5
depends_on:
authelia-redis:
condition: service_started
# - mariadb #enable if using mariadb in config.yaml
labels:
monocker.enable: $MONOCKER_ENABLE
logging:
driver: loki
options:
loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'authelia/authelia:latest' #4.36'
#
####################################################
# #
# -------Authelia-Redis------- #
# #
####################################################
#
authelia-redis:
container_name: authelia-redis
restart: $ALWAYS_ON_POLICY
hostname: authelia-redis
environment:
- TZ=$TZ
volumes:
- $PERSIST/authelia/redis:/data
expose:
- 6379
networks:
my_bridge:
healthcheck:
test: redis-cli ping
interval: 30s
timeout: 5s
retries: 2
labels:
autoheal: $AUTOHEAL_RESTART
monocker.enable: $MONOCKER_ENABLE
image: 'redis:alpine'
#
####################################################
# #
# -------Cloud Commander------- #
# #
####################################################
#
cloudcmd:
container_name: cloudcmd
restart: $RESTART_POLICY
hostname: cloudcmd
environment:
NAME: "Tamimology"
volumes:
- /:/mnt/fs
working_dir: /
tty: true
ports:
- 4569:8000
networks:
my_bridge:
image: 'coderaiser/cloudcmd:latest-alpine'
#
####################################################
# #
# -------CloudFlared------- #
# #
####################################################
#
cloudflared:
container_name: cloudflared
restart: $ALWAYS_ON_POLICY
hostname: cloudflared
user: root
environment:
- NO_AUTOUPDATE=true
- TUNNEL_TOKEN=$MINI_TUNNEL_TOKEN
# network_mode: "host" # I use host networking because I want to tunnel a specific port opened on my host system
networks:
my_bridge:
# ipv4_address: $BRIDGE_NET.201
command: 'tunnel --no-autoupdate run' # 'tunnel --config /etc/tunnel/config.yml run'
labels:
monocker.enable: $MONOCKER_ENABLE
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'cloudflare/cloudflared:latest'
#
####################################################
# #
# -------Cloudflared-Mon------- #
# #
####################################################
#
cloudflared-mon:
container_name: cloudflared-mon
restart: $RESTART_POLICY
hostname: cloudflared-mon
environment:
- CHECK_INTERVALS=10
- NOTIFIERS=pover://$PUSHOVER_USER_KEY@$PUSHOVER_CLOUDFLARED_MON_API
- CF_TOKEN=$CLOUDFLARED_MON_TOKEN
- CF_EMAIL=$GM_USER
- CF_ACCOUNT_ID=$ACCOUNT_ID
volumes:
- $PERSIST/cloudflared-mon:/app/db
networks:
my_bridge:
image: 'techblog/cloudflared-mon:latest'
#
####################################################
# #
# -------Code-Server------- #
# #
####################################################
#
code-server:
container_name: code-server
restart: $RESTART_POLICY
hostname: code-server
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
- SUDO_PASSWORD_HASH=$CODE_SERVER_PASSWORD # $$5$$1991986$$74e2e9019b5834f9506253840f70961eb2d51a8a9fed75f1484c181d037e4fac #https://www.symbionts.de/tools/hash/sha256-hash-salt-generator.html
- PROXY_DOMAIN=vscode.$DOMAINNAME
- DEFAULT_WORKSPACE=/home/coder/project #optional
volumes:
- $PERSIST/code-server:/config
- $PERSIST/homeassistant:/home/coder/project:rw
ports:
- 8181:8443
networks:
my_bridge:
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'lscr.io/linuxserver/code-server:latest'
#
####################################################
# #
# -------DashDot------- #
# #
####################################################
#
dashdot:
container_name: dashdot
restart: $RESTART_POLICY
hostname: dashdot
environment:
- DASHDOT_SHOW_HOST=true
#- DASHDOT_ENABLE_STORAGE_SPLIT_VIEW=true #all drives must be mounted in the container
- DASHDOT_PAGE_TITLE=Mini-Tamimology Server Monitor
#- DASHDOT_ACCEPT_OOKLA_EULA=true
#- DASHDOT_USE_NETWORK_INTERFACE=bond0 # use (ifconfig -a | sed 's/[ \t].*//;/^$/d') in SSH
- DASHDOT_ENABLE_CPU_TEMPS=true
- DASHDOT_NETWORK_SPEED_AS_BYTES=true
- DASHDOT_DISABLE_TILT=true
- DASHDOT_DISABLE_HOST=true
volumes:
- /:/mnt/host:ro
ports:
- 7512:3001
networks:
my_bridge:
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
privileged: false
image: 'mauricenino/dashdot:latest'
#
####################################################
# #
# -------Databases-Backup------- #
# #
####################################################
#
databases-backup:
container_name: databases-backup
restart: $RESTART_POLICY
hostname: databases-backup
volumes:
- $BACKUPS:/backup
#- ./post-script.sh:/assets/custom-scripts/post-script.sh
environment:
- TIMEZONE=$TZ
- USER_DBBACKUP=$PUID
- GROUP_DBBACKUP=$PGID
- CONTAINER_ENABLE_MONITORING=FALSE
- LOG_PATH=/logs/logs
- ENABLE_NOTIFICATIONS=true # only on job failure
- NOTIFICATION_TYPE=email
- MAIL_FROM=$GM_USER
- MAIL_TO=$PUSHOVER_EMAIL_DATABASES_BACKUP
- SMTP_HOST=$GM_HOST
- SMTP_PORT=$GM_PORT
# authelia-redis-backup
- DB01_TYPE=redis
- DB01_HOST=authelia-redis
- DB01_PORT=6379
- DB01_BACKUP_LOCATION=FILESYSTEM
- DB01_FILESYSTEM_PATH=/backup/redis/authelia
- DB01_BACKUP_INTERVAL=1440 #once per day
- DB01_BACKUP_BEGIN="2355" # @23:55 midnight
- DB01_CLEANUP_TIME=8640 # keep for 6 days
- DB01_CHECKSUM=SHA1
- DB01_COMPRESSION=ZSTD
- DB01_COMPRESSION_LEVEL=10
- DB01_SPLIT_DB=false
- DB01_MYSQL_SINGLE_TRANSACTION=true
# homeassistant-mariadb-backup
- DB02_TYPE=mariadb
- DB02_HOST=mariadb
- DB02_PORT=3306
- DB02_NAME=homeassistant
- DB02_USER=homeassistant
- DB02_PASS=$DB_PASSWORD
- DB02_BACKUP_LOCATION=FILESYSTEM
- DB02_FILESYSTEM_PATH=/backup/mariadb/homeassistant
- DB02_BACKUP_INTERVAL=1440 #once per day
- DB02_BACKUP_BEGIN="0000" # @00:00 midnight
- DB02_CLEANUP_TIME=8640 # keep for 6 days
- DB02_CHECKSUM=SHA1
- DB02_COMPRESSION=ZSTD
- DB02_COMPRESSION_LEVEL=10
- DB02_SPLIT_DB=false
- DB02_MYSQL_SINGLE_TRANSACTION=true
# mariadb-sys-backup
- DB03_TYPE=mariadb
- DB03_HOST=mariadb
- DB03_PORT=3306
- DB03_NAME=all
- DB03_NAME_EXCLUDE=homeassistant,pastefy,projectsend,traccar,tasmobackupdb
- DB03_USER=root
- DB03_PASS=$DB_PASSWORD
- DB03_BACKUP_LOCATION=FILESYSTEM
- DB03_FILESYSTEM_PATH=/backup/mariadb/sys
- DB03_BACKUP_INTERVAL=1440 #once per day
- DB03_BACKUP_BEGIN="0005" # @00:05 midnight
- DB03_CLEANUP_TIME=8640 # keep for 6 days
- DB03_CHECKSUM=SHA1
- DB03_COMPRESSION=ZSTD
- DB03_COMPRESSION_LEVEL=10
- DB03_SPLIT_DB=false
- DB03_MYSQL_SINGLE_TRANSACTION=true
# pastefy-mariadb-backup
- DB04_TYPE=mariadb
- DB04_HOST=mariadb
- DB04_PORT=3306
- DB04_NAME=pastefy
- DB04_USER=pastefy
- DB04_PASS=$DB_PASSWORD
- DB04_BACKUP_LOCATION=FILESYSTEM
- DB04_FILESYSTEM_PATH=/backup/mariadb/pastefy
- DB04_BACKUP_INTERVAL=1440 #once per day
- DB04_BACKUP_BEGIN="0010" # @00:10 midnight
- DB04_CLEANUP_TIME=8640 # keep for 6 days
- DB04_CHECKSUM=SHA1
- DB04_COMPRESSION=ZSTD
- DB04_COMPRESSION_LEVEL=10
- DB04_SPLIT_DB=false
- DB04_MYSQL_SINGLE_TRANSACTION=true
# projectsend-mariadb-backup
- DB05_TYPE=mariadb
- DB05_HOST=mariadb
- DB05_PORT=3306
- DB05_NAME=projectsend
- DB05_USER=projectsend
- DB05_PASS=$DB_PASSWORD
- DB05_BACKUP_LOCATION=FILESYSTEM
- DB05_FILESYSTEM_PATH=/backup/mariadb/projectsend
- DB05_BACKUP_INTERVAL=1440 #once per day
- DB05_BACKUP_BEGIN="0015" # @00:15 midnight
- DB05_CLEANUP_TIME=8640 # keep for 6 days
- DB05_CHECKSUM=SHA1
- DB05_COMPRESSION=ZSTD
- DB05_COMPRESSION_LEVEL=10
- DB05_SPLIT_DB=false
- DB05_MYSQL_SINGLE_TRANSACTION=true
# traccar-mariadb-backup
- DB06_TYPE=mariadb
- DB06_HOST=mariadb
- DB06_PORT=3306
- DB06_NAME=traccar
- DB06_USER=traccar
- DB06_PASS=$DB_PASSWORD
- DB06_BACKUP_LOCATION=FILESYSTEM
- DB06_FILESYSTEM_PATH=/backup/mariadb/traccar
- DB06_BACKUP_INTERVAL=1440 #once per day
- DB06_BACKUP_BEGIN="0020" # @00:20 midnight
- DB06_CLEANUP_TIME=8640 # keep for 6 days
- DB06_CHECKSUM=SHA1
- DB06_COMPRESSION=ZSTD
- DB06_COMPRESSION_LEVEL=10
- DB06_SPLIT_DB=false
- DB06_MYSQL_SINGLE_TRANSACTION=true
# tasmobackup-mariadb-backup
- DB07_TYPE=mariadb
- DB07_HOST=mariadb
- DB07_PORT=3306
- DB07_NAME=tasmobackupdb
- DB07_USER=tasmobackup
- DB07_PASS=$DB_PASSWORD
- DB07_BACKUP_LOCATION=FILESYSTEM
- DB07_FILESYSTEM_PATH=/backup/mariadb/tasmobackup
- DB07_BACKUP_INTERVAL=1440 #once per day
- DB07_BACKUP_BEGIN="0025" # @00:25 midnight
- DB07_CLEANUP_TIME=8640 # keep for 6 days
- DB07_CHECKSUM=SHA1
- DB07_COMPRESSION=ZSTD
- DB07_COMPRESSION_LEVEL=10
- DB07_SPLIT_DB=false
- DB07_MYSQL_SINGLE_TRANSACTION=true
# # invidious-postgres-backup
- DB08_TYPE=pgsql
- DB08_HOST=invidious-postgres
- DB08_USER=invidious
- DB08_AUTH=invidious
- DB08_PASS=$DB_PASSWORD
- DB08_NAME=invidious
- DB08_BACKUP_LOCATION=FILESYSTEM
- DB08_FILESYSTEM_PATH=/backup/postgres/invidious
- DB08_SPLIT_DB=false
- DB08_BACKUP_INTERVAL=1440 #once per day
- DB08_BACKUP_BEGIN="0030" # @00:30 midnight
- DB08_CLEANUP_TIME=8640 # keep for 6 days
- DB08_COMPRESSION=ZSTD
- DB08_COMPRESSION_LEVEL=10
- DB08_CHECKSUM=SHA1
- DB08_MYSQL_SINGLE_TRANSACTION=true
# # jellystat-postgres-backup
- DB09_TYPE=pgsql
- DB09_HOST=jellystat-postgres
- DB09_USER=jellystat
- DB09_AUTH=jellystat
- DB09_PASS=$DB_PASSWORD
- DB09_NAME=jfstat
- DB09_BACKUP_LOCATION=FILESYSTEM
- DB09_FILESYSTEM_PATH=/backup/postgres/jellystat
- DB09_SPLIT_DB=false
- DB09_BACKUP_INTERVAL=1440 #once per day
- DB09_BACKUP_BEGIN="0035" # @00:35 midnight
- DB09_CLEANUP_TIME=8640 # keep for 6 days
- DB09_COMPRESSION=ZSTD
- DB09_COMPRESSION_LEVEL=10
- DB09_CHECKSUM=SHA1
- DB09_MYSQL_SINGLE_TRANSACTION=true
# # focalboard-postgres-backup
- DB10_TYPE=pgsql
- DB10_HOST=focalboard-postgres
- DB10_USER=focalboard
- DB10_AUTH=focalboard
- DB10_PASS=$DB_PASSWORD
- DB10_NAME=focalboard
- DB10_BACKUP_LOCATION=FILESYSTEM
- DB10_FILESYSTEM_PATH=/backup/postgres/focalboard
- DB10_SPLIT_DB=false
- DB10_BACKUP_INTERVAL=1440 #once per day
- DB10_BACKUP_BEGIN="0040" # @00:40 midnight
- DB10_CLEANUP_TIME=8640 # keep for 6 days
- DB10_COMPRESSION=ZSTD
- DB10_COMPRESSION_LEVEL=10
- DB10_CHECKSUM=SHA1
- DB10_MYSQL_SINGLE_TRANSACTION=true
# # paperless-ngx-postgres-backup
- DB11_TYPE=pgsql
- DB11_HOST=paperless-ngx-postgres
- DB11_USER=paperless
- DB11_AUTH=paperless
- DB11_PASS=$DB_PASSWORD
- DB11_NAME=paperless
- DB11_BACKUP_LOCATION=FILESYSTEM
- DB11_FILESYSTEM_PATH=/backup/postgres/paperless
- DB11_SPLIT_DB=false
- DB11_BACKUP_INTERVAL=1440 #once per day
- DB11_BACKUP_BEGIN="0045" # @00:45 midnight
- DB11_CLEANUP_TIME=8640 # keep for 6 days
- DB11_COMPRESSION=ZSTD
- DB11_COMPRESSION_LEVEL=10
- DB11_CHECKSUM=SHA1
- DB11_MYSQL_SINGLE_TRANSACTION=true
# paperless-ngx-redis-backup
- DB12_TYPE=redis
- DB12_HOST=paperless-ngx-redis
- DB12_USER=paperless
- DB12_AUTH=paperless
- DB12_PASS=$DB_PASSWORD
- DB12_PORT=6379
- DB12_BACKUP_LOCATION=FILESYSTEM
- DB12_FILESYSTEM_PATH=/backup/redis/paperless
- DB12_BACKUP_INTERVAL=1440 #once per day
- DB12_BACKUP_BEGIN="0050" # @00:50 midnight
- DB12_CLEANUP_TIME=8640 # keep for 6 days
- DB12_CHECKSUM=SHA1
- DB12_COMPRESSION=ZSTD
- DB12_COMPRESSION_LEVEL=10
- DB12_SPLIT_DB=false
- DB12_MYSQL_SINGLE_TRANSACTION=true
# immich-redis-backup
- DB13_TYPE=redis
- DB13_HOST=immich-redis
# - DB13_USER=paperless
# - DB13_AUTH=paperless
# - DB13_PASS=$DB_PASSWORD
- DB13_PORT=6379
- DB13_BACKUP_LOCATION=FILESYSTEM
- DB13_FILESYSTEM_PATH=/backup/redis/immich
- DB13_BACKUP_INTERVAL=1440 #once per day
- DB13_BACKUP_BEGIN="0055" # @00:55 midnight
- DB13_CLEANUP_TIME=8640 # keep for 6 days
- DB13_CHECKSUM=SHA1
- DB13_COMPRESSION=ZSTD
- DB13_COMPRESSION_LEVEL=10
- DB13_SPLIT_DB=false
- DB13_MYSQL_SINGLE_TRANSACTION=true
# # immich-postgres-backup
- DB14_TYPE=pgsql
- DB14_HOST=immich-postgres
- DB14_USER=immichuser
- DB14_AUTH=immich
- DB14_PASS=$DB_PASSWORD
- DB14_NAME=immich
- DB14_BACKUP_LOCATION=FILESYSTEM
- DB14_FILESYSTEM_PATH=/backup/postgres/immich
- DB14_SPLIT_DB=false
- DB14_BACKUP_INTERVAL=1440 #once per day
- DB14_BACKUP_BEGIN="0100" # @01:00 midnight
- DB14_CLEANUP_TIME=8640 # keep for 6 days
- DB14_COMPRESSION=ZSTD
- DB14_COMPRESSION_LEVEL=10
- DB14_CHECKSUM=SHA1
- DB14_MYSQL_SINGLE_TRANSACTION=true
networks:
my_bridge:
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
links:
- authelia-redis
- mariadb
- invidious-postgres
- jellystat-postgres
- focalboard-postgres
- paperless-ngx-postgres
- paperless-ngx-redis
- immich-redis
- immich-postgres
labels:
# autoheal: $AUTOHEAL_RESTART
monocker.enable: $MONOCKER_ENABLE
image: 'tiredofit/db-backup:latest'
#
####################################################
# #
# -------Diun------- #
# #
####################################################
#
diun:
container_name: diun
restart: $RESTART_POLICY
hostname: diun
environment:
- TZ=$TZ
- LOG_LEVEL=info
- LOG_JSON=false
volumes:
- $PERSIST/diun:/data
- $PERSIST/diun/diun.yml:/diun.yml:ro
networks:
my_bridge:
command: serve
image: 'crazymax/diun:latest'
#
####################################################
# #
# -------Dozzle------- #
# #
####################################################
#
dozzle:
container_name: dozzle
restart: $RESTART_POLICY
hostname: dozzle
environment:
DOCKER_HOST: $DOCKER_HOST
DOZZLE_LEVEL: info
DOZZLE_TAILSIZE: 300
DOZZLE_FILTER: "status=running"
DOZZLE_AUTH_PROVIDER: simple
#DOZZLE_AUTH_PROVIDER: forward-proxy
#DOZZLE_AUTH_HEADER_USER: Cf-Access-Authenticated-User-Email
#DOZZLE_AUTH_HEADER_EMAIL: Cf-Access-Authenticated-User-Email
#DOZZLE_AUTH_HEADER_NAME: Cf-Access-Authenticated-User-Email
#DOZZLE_USERNAME: tam
#DOZZLE_PASSWORD: $DOZZLE_PWD
# DOZZLE_FILTER: "label=log_me" # limits logs displayed to containers with this label
volumes:
# - $DOCKER_SOCKET:/var/run/docker.sock
- $PERSIST/dozzle:/data
ports:
- 9900:8080
networks:
my_bridge:
healthcheck:
test: [ "CMD", "/dozzle", "healthcheck" ]
interval: 3s
timeout: 30s
retries: 5
start_period: 30s
labels:
autoheal: $AUTOHEAL_RESTART
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'amir20/dozzle:latest'
#
####################################################
# #
# -------Duplicati------- #
# #
####################################################
#
duplicati:
container_name: duplicati
restart: $ALWAYS_ON_POLICY
hostname: duplicati
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
# https://forum.duplicati.com/t/how-to-configure-automatic-email-notifications-via-gmail-for-every-backup-job/869/19
- CLI_ARGS= --send-mail-url=smtp://$GM_HOST:587/?starttls=when-available
--send-mail-any-operation=true
--send-mail-subject=Duplicati %PARSEDRESULT%, %OPERATIONNAME% report for %backup-name% on Mini-PC
--send-mail-to=$PUSHOVER_EMAIL_DUPLICATI
--send-mail-username=$GM_USER
--send-mail-password=$GM_PSW
--send-mail-from=Tamimology Server <$GM_USER>
--send-mail-level=Success,Error
- PRIVILEGED=true
volumes:
- $PERSIST/duplicati:/config
- $PERSIST/:/source/docker
ports:
- 8200:8200
networks:
my_bridge:
labels:
monocker.enable: $MONOCKER_ENABLE
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'ghcr.io/imagegenius/duplicati:latest'
#
####################################################
# #
# -------ESPHome------- #
# #
####################################################
#
esphome:
container_name: esphome
restart: $RESTART_POLICY
hostname: esphome
privileged: true
environment:
- DEBUG=true
- CLEANUP=false
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
- ESPHOME_DASHBOARD_USE_PING=true
# healthcheck:
# test: curl -fSs http://127.0.0.1:6052 || exit 1
# start_period: 90s
# timeout: 10s
# interval: 5s
# retries: 3
ports:
- 6052:6052/tcp
- 6123:6123/tcp
networks:
my_bridge:
volumes:
- $PERSIST/esphome/:/config:rw
#devices:
# - /dev/ttyUSB0
working_dir: /config
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
#image: 'esphome/esphome:latest'
image: 'ghcr.io/imagegenius/esphome:latest' #alpine version
#
####################################################
# #
# -------ExcaliDraw------- #
# #
####################################################
#
excalidraw:
container_name: excalidraw
restart: $RESTART_POLICY
hostname: excalidraw
ports:
- 3765:80
networks:
my_bridge:
labels:
autoheal: $AUTOHEAL_RESTART
healthcheck:
test: curl -f http://localhost:80/ || exit 1
stdin_open: true
environment:
- NODE_ENV=production
image: 'excalidraw/excalidraw:latest'
#
####################################################
# #
# -------FocalBoard------- #
# #
####################################################
#
focalboard:
container_name: focalboard
restart: $RESTART_POLICY
hostname: focalboard
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=8000
- VIRTUAL_PROTO=http
volumes:
- $PERSIST/focalboard/data:/opt/focalboard/data:rw
- $PERSIST/focalboard/config/config.json:/opt/focalboard/config.json
ports:
- 5374:8000
networks:
my_bridge:
security_opt:
- no-new-privileges:true
depends_on:
focalboard-postgres:
condition: service_healthy
image: 'mattermost/focalboard:latest'
#
####################################################
# #
# -------FocalBoard-Postgres------- #
# #
####################################################
#
focalboard-postgres:
container_name: focalboard-postgres
restart: $RESTART_POLICY
hostname: focalboard-postgres
environment:
- TZ=$TZ
- POSTGRES_DB=focalboard
- POSTGRES_USER=focalboard
- POSTGRES_PASSWORD=$DB_PASSWORD
- PGDATA=/var/lib/postgresql/data
volumes:
- $PERSIST/focalboard/db:/var/lib/postgresql/data:rw
networks:
my_bridge:
security_opt:
- no-new-privileges:true
user: $PUID:$PGID
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "focalboard", "-U", "focalboard"]
timeout: 45s
interval: 10s
retries: 10
labels:
autoheal: $AUTOHEAL_RESTART
image: 'postgres:alpine'
#
####################################################
# #
# -------Grafana------- #
# #
####################################################
#
grafana:
container_name: grafana
restart: $RESTART_POLICY
hostname: grafana
environment: #You can do this with any of the configuration options in https://github.com/grafana/grafana/blob/main/conf/defaults.ini by setting GF_<SectionName>_<KeyName>__FILE to the path of the file holding the secret.
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_SECURITY_ALLOW_EMBEDDING=true
- GF_FEATURE_TOGGLES_ENABLE=flameGraph
- GF_DASHBOARDS_MIN_REFRESH_INTERVAL=1s
# - GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_SMTP_ENABLED=true
- GF_SMTP_HOST=$GM_HOST:$GM_PORT
- GF_SMTP_USER=$GM_USER
- GF_SMTP_PASSWORD=$GM_PSW # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
- GF_SMTP_FROM_NAME="Tamimology Server Grafana"
- GF_EMAILS_WELCOME_EMAIL_ON_SIGN_UP=true
- GF_SERVER_PROTOCOL=http
- GF_SERVER_DOMAIN=grafana.$DOMAINNAME
- GF_SERVER_ROOT_URL=%(protocol)ss://%(domain)s/
user: '1000'
volumes:
- $PERSIST/grafana:/var/lib/grafana
ports:
- 3003:3000
networks:
my_bridge:
depends_on:
- influxdb
# logging:
# driver: loki
# options:
# loki-url: "http://$LOCAL_HOST:3002/loki/api/v1/push"
image: 'grafana/grafana:latest'