Repository: anandslab/docker-traefik Branch: main Commit: 5ab37c2f11b7 Files: 425 Total size: 605.3 KB Directory structure: gitextract_ib118luu/ ├── .env.example ├── .github/ │ └── FUNDING.yml ├── .gitignore ├── LICENSE ├── README.md ├── appdata/ │ ├── authelia/ │ │ ├── configuration.yml.example │ │ └── users.yml.example │ ├── nginx/ │ │ ├── common/ │ │ │ ├── acl.conf │ │ │ ├── disabled/ │ │ │ │ ├── commentspam.conf.disabled │ │ │ │ ├── hack-protection.conf.disabled │ │ │ │ ├── php5.conf.disabled │ │ │ │ ├── redis-php7.conf.disabled │ │ │ │ ├── selfhosted-cdn.conf.disabled │ │ │ │ └── shb-ssl.conf.disabled │ │ │ ├── hotlink.conf │ │ │ ├── nonwp-common-php.conf │ │ │ ├── php7/ │ │ │ │ ├── nonwp-locations-php.conf │ │ │ │ ├── nonwp-nfc-php.conf │ │ │ │ ├── wp-common-php.conf │ │ │ │ ├── wp-nfc-php-beta.conf │ │ │ │ └── wp-nfc-php.conf │ │ │ ├── php8/ │ │ │ │ ├── nonwp-locations-php.conf │ │ │ │ ├── nonwp-nfc-php.conf │ │ │ │ ├── wp-common-php.conf │ │ │ │ └── wp-nfc-php.conf │ │ │ ├── wp-404-rewrites.conf │ │ │ ├── wp-locations-php.conf │ │ │ ├── wp-rankmath-sitemap-config.conf │ │ │ └── wp-yoast-sitemap-config.conf │ │ ├── conf.d/ │ │ │ ├── blockips.conf │ │ │ ├── fastcgi.conf │ │ │ ├── optimizations.conf │ │ │ ├── upstream.conf │ │ │ └── webp.conf │ │ ├── fastcgi.conf │ │ ├── mime.types │ │ ├── nginx.conf │ │ └── sites/ │ │ ├── dash.conf │ │ ├── deployrr.conf │ │ ├── khub.conf │ │ └── simplehomelab.conf │ ├── php/ │ │ ├── php7/ │ │ │ ├── conf.d/ │ │ │ │ ├── extensions.ini │ │ │ │ └── opcache.ini │ │ │ └── php.ini │ │ └── php8/ │ │ ├── pear.conf │ │ ├── php/ │ │ │ ├── conf.d/ │ │ │ │ ├── extensions.ini │ │ │ │ ├── extensions.ini.example │ │ │ │ ├── opcache.ini │ │ │ │ ├── opcache.ini.example │ │ │ │ ├── opcache.ini.new │ │ │ │ └── opcache.ini.old │ │ │ └── php.ini │ │ ├── php-fpm.conf │ │ └── php-fpm.d/ │ │ ├── docker.conf │ │ ├── wordpress.conf │ │ ├── www.conf │ │ └── zz-docker.conf │ ├── picard/ │ │ └── filenaming_script.example │ ├── rclone/ │ │ ├── rclone-logrotate.conf.example │ │ └── rclone.conf.example │ ├── traefik2/ │ │ └── rules/ │ │ ├── ds918/ │ │ │ ├── app-ds918-dsm-oauth.yml.example │ │ │ ├── app-ds918-video-oauth.yml.example │ │ │ ├── chain-basic-auth.yml │ │ │ ├── chain-no-auth.yml │ │ │ ├── chain-oauth-external.yml │ │ │ ├── chain-oauth.yml │ │ │ ├── middlewares-basic-auth.yml │ │ │ ├── middlewares-buffering.yml │ │ │ ├── middlewares-compress.yml │ │ │ ├── middlewares-oauth-external.yml │ │ │ ├── middlewares-oauth.yml │ │ │ ├── middlewares-rate-limit.yml │ │ │ ├── middlewares-secure-headers.yml │ │ │ └── tls-opts.yml │ │ ├── hs/ │ │ │ ├── app-adguard-home-authelia.yml.example │ │ │ ├── app-adguard-home-oauth.yml.example │ │ │ ├── app-haos-no-auth.yml.example │ │ │ ├── app-pihole-oauth.yml.example │ │ │ ├── app-plex-no-auth.yml.example │ │ │ ├── app-proxmox-ve-oauth.yml.example │ │ │ ├── app-tautulli-with-auth-bypass.yml.example │ │ │ ├── app-unifi-controller-authelia.example │ │ │ ├── chain-authelia.yml │ │ │ ├── chain-basic-auth.yml │ │ │ ├── chain-no-auth-no-crowdsec.yml │ │ │ ├── chain-no-auth.yml │ │ │ ├── chain-oauth-external.yml │ │ │ ├── chain-oauth-no-crowdsec.yml │ │ │ ├── chain-oauth.yml │ │ │ ├── domain-passthrough.yml.example │ │ │ ├── middlewares-authelia.yml │ │ │ ├── middlewares-basic-auth.yml │ │ │ ├── middlewares-buffering.yml │ │ │ ├── middlewares-compress.yml │ │ │ ├── middlewares-oauth-external.yml │ │ │ ├── middlewares-oauth.yml │ │ │ ├── middlewares-rate-limit.yml │ │ │ ├── middlewares-secure-headers.yml │ │ │ ├── middlewares-traefik-bouncer.yml │ │ │ └── tls-opts.yml │ │ ├── toml/ │ │ │ ├── app-hassio.toml.example │ │ │ ├── app-pihole.toml.example │ │ │ ├── app-unifi.toml.example │ │ │ ├── middlewares-chains.toml.example │ │ │ ├── middlewares-nextcloud.toml.example │ │ │ └── middlewares.toml.example │ │ └── ws/ │ │ ├── chain-authelia-wp.yml │ │ ├── chain-authelia.yml │ │ ├── chain-basic-auth.yml │ │ ├── chain-no-auth-crowdsec-wp.yml │ │ ├── chain-no-auth-wp.yml │ │ ├── chain-no-auth.yml │ │ ├── chain-oauth-no-crowdsec.yml │ │ ├── chain-oauth.yml │ │ ├── middlewares-authelia.yml │ │ ├── middlewares-basic-auth.yml │ │ ├── middlewares-compress.yml │ │ ├── middlewares-oauth.yml │ │ ├── middlewares-rate-limit.yml │ │ ├── middlewares-secure-headers-wp.yml │ │ ├── middlewares-secure-headers.yml │ │ ├── middlewares-traefik-bouncer.yml │ │ └── tls-opts.yml │ └── traefik3/ │ └── rules/ │ ├── hs/ │ │ ├── chain-basic-auth.yml │ │ ├── chain-no-auth.yml │ │ ├── chain-oauth.yml │ │ ├── middlewares-basic-auth.yml │ │ ├── middlewares-buffering.yml │ │ ├── middlewares-oauth.yml │ │ ├── middlewares-rate-limit.yml │ │ ├── middlewares-secure-headers.yml │ │ └── tls-opts.yml │ └── ws-arm/ │ ├── chain-basic-auth.yml │ ├── chain-no-auth-crowdsec-wp.yml │ ├── chain-no-auth-simple.yml │ ├── chain-no-auth-wp.yml │ ├── chain-no-auth.yml │ ├── chain-oauth.yml │ ├── middlewares-basic-auth.yml │ ├── middlewares-buffering.yml │ ├── middlewares-oauth.yml │ ├── middlewares-rate-limit.yml │ ├── middlewares-secure-headers-wp.yml │ ├── middlewares-secure-headers.yml │ └── tls-opts.yml ├── archives/ │ ├── traefik_v1/ │ │ ├── docker-compose-npm.yml │ │ ├── docker-compose-t1-obsolete.yml │ │ ├── docker-compose-t1-swarm.yml │ │ ├── docker-compose-t1-synology.yml │ │ ├── docker-compose-t1-vpn.yml │ │ ├── docker-compose-t1.yml │ │ ├── traefik1-standalone/ │ │ │ ├── rules/ │ │ │ │ ├── app.toml.example │ │ │ │ ├── dafang1.toml │ │ │ │ ├── hassio.toml │ │ │ │ ├── pihole.toml │ │ │ │ ├── plexwebtools.toml │ │ │ │ ├── shellinabox.toml │ │ │ │ ├── synology.toml │ │ │ │ ├── synplex.toml │ │ │ │ ├── unifi.toml │ │ │ │ ├── webmin.toml │ │ │ │ └── xiaofang1.toml │ │ │ ├── rules.toml │ │ │ ├── traefik.toml │ │ │ ├── traefik.toml.crab │ │ │ ├── traefik.toml.example │ │ │ ├── traefik.toml.singledomain │ │ │ └── traefik.toml.wcddns │ │ └── traefik1-swarm/ │ │ └── rules/ │ │ ├── backcam.toml │ │ ├── dsmfiles.toml │ │ ├── frontcam.toml │ │ ├── hassio.toml │ │ ├── hassio_nodered.toml │ │ ├── hassio_ssh_terminal.toml │ │ ├── hassio_vscode.toml │ │ ├── pihole.toml │ │ ├── plex.toml │ │ ├── plexwebtools.toml │ │ ├── portainer.toml │ │ ├── printer.toml │ │ ├── shellinabox.toml │ │ ├── synology.toml │ │ ├── transmission.toml │ │ ├── webmin.toml │ │ └── xiaofang1.toml │ └── traefik_v3-pre-deployrr/ │ ├── CHANGELOG.md │ ├── custom/ │ │ ├── Dockerfile-csdash │ │ └── Dockerfile-php7 │ ├── docker-compose-dns.yml │ ├── docker-compose-hs-old.yml │ ├── docker-compose-mds.yml │ └── docker-compose-ws.yml ├── commits/ │ ├── 2020/ │ │ ├── 2020_08_17.txt │ │ ├── 2020_08_21.txt │ │ ├── 2020_10_05.txt │ │ ├── 2020_10_06.txt │ │ ├── 2020_10_14.txt │ │ ├── 2020_10_20.txt │ │ ├── 2020_10_24.txt │ │ └── 2020_11_29.txt │ ├── 2021/ │ │ ├── 2021_01_06.txt │ │ ├── 2021_02_14.txt │ │ ├── 2021_03_11.txt │ │ ├── 2021_04_08.txt │ │ ├── 2021_05_14.txt │ │ ├── 2021_08_09.txt │ │ └── 2021_10_04.txt │ ├── 2022/ │ │ ├── 2022_01_23.txt │ │ ├── 2022_02_04.txt │ │ ├── 2022_02_06.txt │ │ ├── 2022_02_21.txt │ │ ├── 2022_02_23.txt │ │ ├── 2022_03_20.txt │ │ ├── 2022_05_19.txt │ │ ├── 2022_06_15.txt │ │ ├── 2022_06_19.txt │ │ ├── 2022_06_26.txt │ │ ├── 2022_07_14.txt │ │ └── 2022_09_20.txt │ ├── 2023/ │ │ ├── 2023_01_26.txt │ │ ├── 2023_03_02.txt │ │ ├── 2023_05_26.txt │ │ └── 2023_09_24.txt │ ├── 2024/ │ │ ├── 2024_01_19.txt │ │ ├── 2024_01_22.txt │ │ ├── 2024_01_30.txt │ │ ├── 2024_05_01.txt │ │ └── 2024_05_30.txt │ └── 2025_10_15.txt ├── compose/ │ ├── archives/ │ │ ├── adguardhome-sync.yml │ │ ├── ampache.yml │ │ ├── apcupsd.yml │ │ ├── autoindex.yml │ │ ├── autoscan.yml │ │ ├── cadvisor.yml │ │ ├── certdumper.yml │ │ ├── cf-companion.yml │ │ ├── cloud-commander.yml │ │ ├── cloud9.yml │ │ ├── cloudflare-ddns.yml │ │ ├── cloudplow.yml │ │ ├── crowdsec-blocklist.yml │ │ ├── crowdsec-metabase.yml │ │ ├── dashy.yml │ │ ├── digikam.yml │ │ ├── dns/ │ │ │ ├── adguardhome-sync.yml │ │ │ ├── adguardhome.yml │ │ │ ├── ddns-updater.yml │ │ │ ├── socket-proxy.yml │ │ │ ├── traefik.yml │ │ │ ├── unbound.yml │ │ │ └── wg-easy.yml │ │ ├── dupeguru.yml │ │ ├── emby.yml │ │ ├── filebrowser.yml │ │ ├── firefox.yml │ │ ├── flaresolverr.yml │ │ ├── funkwhale.yml │ │ ├── glances.yml │ │ ├── gonic.yml │ │ ├── ha-dockermon.yml │ │ ├── handbrake.yml │ │ ├── headscale.yml │ │ ├── heimdall.yml │ │ ├── homeassistant.yml │ │ ├── homepage.yml │ │ ├── jackett.yml │ │ ├── loki.yml │ │ ├── makemkv.yml │ │ ├── mergerfs.yml │ │ ├── metube.yml │ │ ├── miflora.yml │ │ ├── mkvtoolnix.yml │ │ ├── mosquitto.yml │ │ ├── motioneye.yml │ │ ├── musicbrainz.yml │ │ ├── navidrome.yml │ │ ├── node-exporter.yml │ │ ├── nzbget.yml │ │ ├── nzbhydra.yml │ │ ├── ombi.yml │ │ ├── ouroboros.yml │ │ ├── photoprism.yml │ │ ├── photoshow.yml │ │ ├── plex-sync.yml │ │ ├── plex-trakt-sync.yml │ │ ├── postgres.yml │ │ ├── promtail.yml │ │ ├── pyrenamer.yml │ │ ├── readarr.yml │ │ ├── redis-commander.yml │ │ ├── smokeping.yml │ │ ├── smtp-to-telegram.yml │ │ ├── statping.yml │ │ ├── tdarr-node.yml │ │ ├── tiny-media-manager.yml │ │ ├── traefik-certs-dumper.yml │ │ ├── traefik-error-pages.yml │ │ ├── transmission-vpn.yml │ │ ├── unifi-controller.yml │ │ ├── unmanic.yml │ │ ├── varken.yml │ │ ├── watchtower.yml │ │ ├── xteve.yml │ │ └── youtubedl-material.yml │ ├── ds918/ │ │ ├── adguardhome.yml │ │ ├── certdumper.yml │ │ ├── ddns-updater.yml │ │ ├── docker-gc.yml │ │ ├── glances.yml │ │ ├── mergerfs.yml │ │ ├── oauth.yml │ │ ├── plex-sync.yml │ │ ├── plex.yml │ │ ├── portainer.yml │ │ ├── qdirstat.yml │ │ ├── rclone-gcrypt.yml │ │ ├── rclone-gdrive.yml │ │ ├── socket-proxy.yml │ │ ├── syncthing.yml │ │ ├── tdarr.yml │ │ ├── traefik.yml │ │ ├── vscode.yml │ │ └── zerotier.yml │ ├── hs/ │ │ ├── adminer.yml │ │ ├── bazarr.yml │ │ ├── cleanuparr.yml │ │ ├── cloud-commander.yml │ │ ├── custom.yml │ │ ├── deployrr-dashboard.yml │ │ ├── deunhealth.yml │ │ ├── docker-gc.yml │ │ ├── dozzle.yml │ │ ├── firefly-importer.yml │ │ ├── firefly.yml │ │ ├── glances.yml │ │ ├── gluetun.yml │ │ ├── it-tools.yml │ │ ├── kometa.yml │ │ ├── lidarr.yml │ │ ├── maintainerr.yml │ │ ├── makemkv.yml │ │ ├── mkvtoolnix.yml │ │ ├── notifiarr.yml │ │ ├── oauth.yml │ │ ├── picard.yml │ │ ├── prowlarr.yml │ │ ├── qbittorrent-vpn.yml │ │ ├── radarr.yml │ │ ├── sabnzbd.yml │ │ ├── socket-proxy.yml │ │ ├── sonarr.yml │ │ ├── stirling-pdf.yml │ │ ├── traefik.yml │ │ ├── uptime-kuma.yml │ │ └── wud.yml │ ├── mds/ │ │ ├── airsonic-advanced.yml │ │ ├── custom.yml │ │ ├── docker-gc.yml │ │ ├── influxdb.yml │ │ ├── jellyfin.yml │ │ ├── mariadb.yml │ │ ├── mosquitto.yml │ │ ├── node-exporter.yml │ │ ├── pgsql-teslamate.yml │ │ ├── plex-image-cleanup.yml │ │ ├── plex-meta-manager.yml │ │ ├── plex.yml │ │ ├── prometheus.yml │ │ ├── socket-proxy.yml │ │ └── tautulli.yml │ └── ws-arm/ │ ├── adminer.yml │ ├── chromium.yml │ ├── cloudflare-bouncer.yml │ ├── crawl4ai.yml │ ├── crowdsec.yml │ ├── custom.yml │ ├── deployrr-dashboard.yml │ ├── dockflare.yml │ ├── dozzle.yml │ ├── flowise.yml │ ├── glances.yml │ ├── grafana.yml │ ├── influxdb.yml │ ├── mariadb.yml │ ├── n8n.yml │ ├── nginx.yml │ ├── oauth.yml │ ├── ollama.yml │ ├── open-webui.yml │ ├── openhands.yml │ ├── pgadmin.yml │ ├── php7.yml │ ├── php8.yml │ ├── phpmyadmin.yml │ ├── portchecker-api.yml │ ├── portchecker.yml │ ├── postgresql-vector.yml │ ├── postgresql.yml │ ├── prometheus.yml │ ├── qdrant.yml │ ├── redis-disk.yml │ ├── redis.yml │ ├── remmina.yml │ ├── socket-proxy.yml │ ├── sshwifty.yml │ ├── traefik-access-log.yml │ ├── traefik-error-log.yml │ ├── traefik.yml │ ├── vscode.yml │ └── wikidocs.yml ├── docker-compose-ds918.yml ├── docker-compose-hs.yml ├── docker-compose-mds.yml ├── docker-compose-ws-arm.yml ├── scripts/ │ ├── ds918/ │ │ ├── change_perms_plex_hw.sh.example │ │ ├── increase_inotify_limits_syncthing.sh.example │ │ └── switch_ports.sh.example │ ├── hs/ │ │ ├── check-mounts.sh.example │ │ └── start-media-after-boot.sh.example │ └── systemd/ │ └── rclone-ds918.service.example ├── secrets_example/ │ ├── basic_auth_credentials │ ├── cf_dns_api_token │ └── traefik_forward_auth └── shared/ └── config/ └── udms_bash_aliases ================================================ FILE CONTENTS ================================================ ================================================ FILE: .env.example ================================================ PUID='1000' PGID='1000' PRIMARY_USERNAME='anand' TZ='Europe/Zurich' USERDIR='/home/anand' DOCKERDIR='/home/anand/docker' LOCAL_IPS='127.0.0.1/32,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12' CLOUDFLARE_IPS='173.245.48.0/20,103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,141.101.64.0/18,108.162.192.0/18,190.93.240.0/20,188.114.96.0/20,197.234.240.0/22,198.41.128.0/17,162.158.0.0/15,104.16.0.0/13,104.24.0.0/14,172.64.0.0/13,131.0.72.0/22' HOSTNAME='hs' SERVER_LAN_IP='192.168.5.112' DOCKER0_IP='172.17.0.1' DOMAINNAME_1='example.com' DOWNLOADSDIR='/media/ssd/downloads' DATADIR1='/media/nas/data' DATADIR2='/media/nas/data2' MEDIADIR1='/media/nas/data/media' MEDIADIR2='/media/nas/data2/media' DOCKER_HOST='tcp://socket-proxy:2375' DEPLOYRRDASHBOARD_PORT='3050' TRAEFIK_PORT='8080' ADMINER_PORT='8081' ... ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: # [SimpleHomelab] custom: ['https://www.simplehomelab.com/geek-army/join/', 'https://www.buymeacoffee.com/simplehomelab'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] patreon: open_collective: # Replace with a single Open Collective username ko_fi: SimpleHomelab # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry ================================================ FILE: .gitignore ================================================ * */ !.gitignore !README.md !LICENSE !.env.example !docker-compose-hs.yml !docker-compose-mds.yml !docker-compose-ds918.yml !docker-compose-ws-arm.yml !.github .github/* !.github/FUNDING.yml !shared shared/* !shared/*.example !shared/config shared/config/* !shared/config/*.example !shared/config/udms_bash_aliases !secrets_example !secrets_example/* !archives archives/* !archives/** !scripts scripts/* !scripts/*.example !scripts/hs scripts/hs/* !scripts/hs/*.example !scripts/mds scripts/mds/* !scripts/mds/*.example !scripts/systemd scripts/systemd/* !scripts/systemd/*.example !scripts/ds918 scripts/ds918/* !scripts/ds918/*.example !scripts/ws-arm scripts/ws-arm/* !scripts/ws-arm/*.example !compose compose/* !compose/** !commits !commits/** !appdata appdata/* !appdata/authelia appdata/authelia/* !appdata/authelia/*.example !appdata/picard appdata/picard/* !appdata/picard/*.example !appdata/rclone appdata/rclone/* !appdata/rclone/*.example !appdata/php !appdata/php/** !appdata/nginx !appdata/nginx/** !appdata/traefik3 appdata/traefik3/* !appdata/traefik3/*.example !appdata/traefik3/rules appdata/traefik3/rules/* !appdata/traefik3/rules/*.example !appdata/traefik3/rules/ws-arm appdata/traefik3/rules/ws-arm/* !appdata/traefik3/rules/ws-arm/*.example !appdata/traefik3/rules/toml appdata/traefik3/rules/toml/* !appdata/traefik3/rules/toml/*.example !appdata/traefik3/rules/ds918 appdata/traefik3/rules/ds918/* !appdata/traefik3/rules/ds918/*.example !appdata/traefik3/rules/ds918/tls-opts.yml !appdata/traefik3/rules/ds918/middlewares-*.yml !appdata/traefik3/rules/ds918/chain-*.yml !appdata/traefik3/rules/hs appdata/traefik3/rules/hs/* !appdata/traefik3/rules/hs/*.example !appdata/traefik3/rules/hs/tls-opts.yml !appdata/traefik3/rules/hs/middlewares-*.yml !appdata/traefik3/rules/hs/chain-*.yml !appdata/traefik3/rules/ws-arm appdata/traefik3/rules/ws-arm/* !appdata/traefik3/rules/ws-arm/*.example !appdata/traefik3/rules/ws-arm/tls-opts.yml !appdata/traefik3/rules/ws-arm/middlewares-*.yml !appdata/traefik3/rules/ws-arm/chain-*.yml !appdata/traefik2 appdata/traefik2/* !appdata/traefik2/*.example !appdata/traefik2/rules appdata/traefik2/rules/* !appdata/traefik2/rules/*.example !appdata/traefik2/rules/ws appdata/traefik2/rules/ws/* !appdata/traefik2/rules/ws/*.example !appdata/traefik2/rules/toml appdata/traefik2/rules/toml/* !appdata/traefik2/rules/toml/*.example !appdata/traefik2/rules/ds918 appdata/traefik2/rules/ds918/* !appdata/traefik2/rules/ds918/*.example !appdata/traefik2/rules/ds918/tls-opts.yml !appdata/traefik2/rules/ds918/middlewares-*.yml !appdata/traefik2/rules/ds918/chain-*.yml !appdata/traefik2/rules/hs appdata/traefik2/rules/hs/* !appdata/traefik2/rules/hs/*.example !appdata/traefik2/rules/hs/tls-opts.yml !appdata/traefik2/rules/hs/middlewares-*.yml !appdata/traefik2/rules/hs/chain-*.yml !appdata/traefik2/rules/ws appdata/traefik2/rules/ws/* !appdata/traefik2/rules/ws/*.example !appdata/traefik2/rules/ws/tls-opts.yml !appdata/traefik2/rules/ws/middlewares-*.yml !appdata/traefik2/rules/ws/chain-*.yml ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2019 SmartHomeBeginner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # 🐳 Ultimate Docker-Traefik Repo by Anand > **Real-world Docker configurations** from Anand at [SimpleHomelab.com](https://www.simplehomelab.com/) (formerly SmartHomeBeginner.com) [![Deployrr](https://img.shields.io/badge/Powered%20by-Deployrr-blue?style=flat-square)](https://www.simplehomelab.com/deployrr/) [![UDMS Series](https://img.shields.io/badge/UDMS-Series-green?style=flat-square)](https://www.simplehomelab.com/ultimate-docker-media-server-udms-01/) [![150+ Apps](https://img.shields.io/badge/Apps-150%2B-orange?style=flat-square)](#-featured-applications) --- ## 🎯 What This Repository Offers This repository contains my **actual production Docker setups** that power my homelab infrastructure. Unlike theoretical guides, these are real-world configurations that I use daily. My setup is based on [Deployrr](https://www.simplehomelab.com/deployrr/) and [Ultimate Docker Media Server](https://www.simplehomelab.com/ultimate-docker-media-server-udms-01/) series. ### 🎯 Repository Purpose 1. **Share actual setups** - Real configurations I use in production 2. **Extend Deployrr capabilities** - Examples beyond standard Deployrr templates --- ## 🖥️ Infrastructure Overview I believe in **simple, energy-efficient homelab** design that maximizes performance while minimizing complexity. ### 🏠 Networking Architecture - **OPNsense** home firewall running on Proxmox VM (DMZed on ISP router) - **Tailscale** mesh networking connecting all hosts ### 📊 Hardware Specifications | Component | Specifications | Purpose | |-----------|---------------|---------| | **TopTon V700 Mini PC** | Intel i7-13800H, 64GB RAM, 2×2TB NVMe ZFS RAID1, 4TB SATA SSD | Proxmox host that runs my Home Server, Media/Database Server, Home Assistant, Proxmox Backup Server, etc. | | **Synology DS918+** | DX517 Expansion Unit, 8GB RAM, 4×18TB SHR2 (×2 volumes) | Primary use is storage. But I tinker with Docker on it. | | **Oracle Ampere A1** | 4 vCPU ARM64, 24GB RAM, 200GB storage | Web server and automations | --- ## 🐳 Docker Hosts All Docker configurations are organized by host with clear naming conventions. I pool them together and push them to this repository. ### 🏠 Home Server (prefix/suffix: `hs`) ```yaml Platform: Ubuntu 24.04 LXC on Proxmox Resources: 8 vCPU, 8GB RAM, 4GB Swap Storage: 64GB OS + 32GB Docker data Purpose: Core homelab services and support my tinkering habits ``` ### 🎬 Media Database Server (prefix/suffix: `mds`) ```yaml Platform: Ubuntu 24.04 LXC on Proxmox Resources: 12 vCPU, 12GB RAM, 4GB Swap Storage: 64GB OS + 72GB Docker data Purpose: Media servers and databases - Separate so they are not affected by my tinkering ``` ### 🌐 Web Server (prefix/suffix: `ws-arm`) ```yaml Platform: Ubuntu 24.04 ARM64 on Oracle Cloud Resources: 4 vCPU, 24GB RAM Storage: 100GB OS + 100GB data Purpose: Web Server (Nginx, PHP-FPM 8, WordPress, etc.), n8n, Flowise, and more ``` ### 💾 Synology NAS (prefix/suffix: `ds918`) ```yaml Platform: DSM 7.X Resources: 8GB RAM, DX517 Expansion Unit, Volume1 - 4x18TB SHR2, Volume 2 - 4x18TB SHR2 Purpose: I use this only for tinkering with Docker ``` ### 📁 Archives Legacy configurations in `archives` folder - not actively maintained but useful as reference. --- ## 📚 Learning Resources ### 🎥 Ultimate Docker Media Server Guides and Videos #### 🚀 Getting Started 1. [Introduction and Overview](https://www.simplehomelab.com/udms-01-introduction-and-overview/) 2. [Hardware: NAS, Mini PC, or VPS (FREE!). Which one?](https://www.simplehomelab.com/udms-02-hardware-nas-minipc-vps/) 3. [Best Home Server OS, Proxmox LXC vs VM](https://www.simplehomelab.com/udms-03-best-home-server-os/) #### ⚙️ Infrastructure Setup 4. [Install Proxmox on Mini PC with ZFS RAID1 Mirror + 3 Tweaks](https://www.simplehomelab.com/udms-04-install-proxmox-on-mini-pc/) [📹](https://youtu.be/2nIPY7D-UA0) 5. [Installing and Prepping Ubuntu/Debian](https://www.simplehomelab.com/udms-05-installing-ubuntu-on-proxmox/) [📹](https://youtu.be/-ZSQdJ62r-Q) 6. [Mounting Remote Folders using Rclone](https://youtu.be/D-XS0biLP14) [📹](https://youtu.be/D-XS0biLP14) 7. Mounting Remote Folders using SMB/CIFS *(Coming Soon)* 8. Mounting Remote Folders using NFS *(Coming Soon)* 9. Binding Mounting on Proxmox Unprivileged LXC *(Coming Soon)* #### 🔧 Advanced Configuration 10. [Proxmox Unprivileged LXC Network Node Passthrough](https://www.simplehomelab.com/udms-10-proxmox-lxc-network-device-passthrough/) [📹](https://youtu.be/r0nGMFs5pCY) 11. [Proxmox Unprivileged LXC iGPU Node Passthrough](https://www.simplehomelab.com/udms-11-gpu-passthrough-on-proxmox-lxc/) [📹](https://youtu.be/kvnJYyyLoIk) #### 🐳 Docker Fundamentals 12. [Installing Docker and Docker Compose on Ubuntu/Debian](https://www.simplehomelab.com/udms-12-install-docker-and-docker-compose/) 13. [Essential Docker Commands & Time-Saving Aliases](https://www.simplehomelab.com/udms-13-docker-and-docker-compose-commands/) 14. [Kickass Docker Media Server with 150+ Apps](https://www.simplehomelab.com/udms-14-docker-media-server/) [📹](https://youtu.be/THuLgGwq0vg) 15. Best Docker Containers for Homelab *(Coming Soon)* #### 🌐 Remote Access & Security 16. [Exposing Apps to the Internet: Tailscale](https://www.simplehomelab.com/udms-part-16-tailscale-homelab-remote-access/) [📹](https://youtu.be/M6GMp4FJrB8) 17. Exposing Apps to the Internet: Nginx Proxy Manager *(Coming Soon)* 18. [Exposing Apps to the Internet: Traefik Reverse Proxy](https://www.simplehomelab.com/udms-18-traefik-docker-compose-guide/) [📹](https://www.youtube.com/playlist?list=PL1Hno7tIbSWUGrZSqeB9aCsdAuoeVwvgh) #### 🔐 Authentication & Security 19. [Authentication for Docker Apps - Authelia](https://www.simplehomelab.com/udms-19-authelia-docker-compose/) [📹](https://youtu.be/UIq8PLZHBtk) 20. [Authentication for Docker Apps - Google OAuth 2](https://youtu.be/SCKALXprTQE) [📹](https://youtu.be/SCKALXprTQE) 21. [Authentication for Docker Apps - Authentik](https://youtu.be/GoUmJAe1MKc) [📹](https://youtu.be/GoUmJAe1MKc) 22. [CrowdSec Docker Compose – Bulletproof IPS for Homelabs](https://www.simplehomelab.com/udms-22-crowdsec-docker-compose/) 23. [Setting up Crowdsec Cloudflare Bouncer](https://www.simplehomelab.com/udms-23-crowdsec-cloudflare-bouncer/) 24. [Setting up Crowdsec Traefik Bouncer](https://www.simplehomelab.com/udms-24-crowdsec-traefik-bouncer/) #### 🚀 Advanced Topics 25. Advanced Topics: Traefik Plugins *(Coming Soon)* 26. Advanced Topics: Traefik Multiple Domains *(Coming Soon)* 27. Advanced Topics: Traefik Domain Passthrough *(Coming Soon)* 28. Advanced Topics: [Traefik Conditional Auth Bypass](https://www.simplehomelab.com/udms-28-traefik-auth-bypass/) 29. Advanced Topics: [CrowdSec Multiserver Setup](https://www.simplehomelab.com/udms-29-crowdsec-multiserver/) 30. Closing Thoughts and Options to Level Up *(Coming Soon)* ### 📖 Additional Guides #### 🏢 Synology NAS - [Ultimate Synology NAS Docker Compose Media Server 2022](https://www.simplehomelab.com/synology-nas-docker-media-server-2022/) *(Update Pending)* #### 🌐 Web Server - [WordPress on Docker with Nginx, Traefik, LE SSL, Security, and Speed](https://www.simplehomelab.com/wordpress-on-docker-traefik/) *(Update Pending)* #### 🤖 Automation - [Deployrr: Automate Docker Compose based Homelab Setup](https://www.simplehomelab.com/deployrr/) [📹](https://youtu.be/OnoKy73b-w4) --- ## 🚀 Featured Applications **150+ Docker applications** ready for deployment, sourced from the [Deployrr Repository](https://github.com/SimpleHomelab/Deployrr/blob/main/APPS.md): Adminer, Airsonic-Advanced, Authentik, Audiobookshelf, Authelia, Baikal, Bazarr, Beets, Bookstack, cAdvisor, Calibre, Calibre-Web, Change Detection, Chromium, Cleanuparr, Cloud Commander, Cloudflare Tunnel, CrowdSec, CrowdSec Firewall Bouncer, CyberChef, Dashy, DDNS Updater, DeUnhealth, DigiKam, Dockwatch, Docker Garbage Collection, DokuWiki, Double Commander, Dozzle, Dozzle Agent, DweebUI, Emby, ESPHome, FileZilla, Flame, Flaresolverr, Flowise, FreshRSS, Funkwhale, GameVault, Glances, Gluetun, Gonic, Gotenberg, GPTWOL, Grafana, Grocy, Guacamole, Heimdall, Homarr, Home Assistant Core, Homebridge, Homer, Homepage, Huntarr, Immich, InfluxDB, IT-Tools, Jackett, Jellyfin, Jellyseerr, Kasm, Kavita, Kometa, Komga, Lidarr, Lollypop, Maintainerr, MariaDB, Mosquitto, MQTTX Web, Mylar3, n8n, Navidrome, Netdata, Nextcloud, Node Exporter, Node-RED, Notifiarr, OAuth, Ollama, Ombi, OpenHands, Open-WebUI, Organizr, Overseerr, Paperless-AI, Paperless-NGX, PdfDing, PgAdmin, phpMyAdmin, Pi-hole, Piwigo, Plex, Portainer, PostgreSQL, Privatebin, Prometheus, Prowlarr, qBittorrent, qBittorrent with VPN, Qdrant, Radarr, Redis, Redis Commander, Remmina, Resilio Sync, SABnzbd, Scrutiny, SearXNG, ShellInABox, Smokeping, Socket Proxy, Sonarr, Speedtest-Tracker, SSHwifty, Stirling PDF, Tailscale, Tautulli, The Lounge, Theme Park, Tika, TinyAuth, Traefik, Traefik Access Logs, Traefik Bouncer, Traefik Certs Dumper, Traefik Error Logs, Transmission, Trilium Next, Uptime-Kuma, Vaultwarden, Vikunja, Visual Studio Code Server, Wallos, Watchtower, Weaviate, WG-Easy, What's Up Docker (WUD), WikiDocs, Wireguard, and ZeroTier. **Custom Apps** not supported by Deployrr yet (e.g. Nginx, PHP, etc.) --- ## ⚡ Quick Start Commands ### 🎯 Essential Docker Aliases I use **Bash Aliases** installed via Deployrr for streamlined Docker management: | Command | Description | |---------|-------------| | `dcup` | Start Docker stack | | `dcdown` | Stop Docker stack | | `dcrec` | Start or recreate specific service/full stack | | `dcstop` | Stop specific service/full stack | | `dcrestart` | Restart specific service/full stack | | `dclogs` | View real-time logs for stack/service | | `dcpull` | Pull new images for stack/service | > 📖 **Learn More**: [Essential Docker Commands & Time-Saving Aliases](https://www.simplehomelab.com/udms-13-docker-and-docker-compose-commands/) | [Bash Aliases in Deployrr](https://docs.deployrr.app/operating-system/bash-aliases-explained) --- ## 🤝 Support & Community **Documenting, writing guides, and maintaining this repository** requires hundreds of hours of dedicated work. Your support helps keep this project alive and continuously updated. ### 🎖️ Join the Geek Army
Join the Geek Army
### 💬 Join the Discord Community
Join Discord
================================================ FILE: appdata/authelia/configuration.yml.example ================================================ ############################################################### # Authelia configuration # ############################################################### server: address: tcp://0.0.0.0:9091/ buffers: read: 4096 write: 4096 endpoints: enable_pprof: false enable_expvars: false disable_healthcheck: false tls: key: "" certificate: "" # https://www.authelia.com/configuration/miscellaneous/logging/ log: level: info format: text file_path: /config/authelia.log keep_stdout: true # https://www.authelia.com/configuration/second-factor/time-based-one-time-password/ totp: issuer: example.com period: 30 skew: 1 # AUTHELIA_DUO_PLACEHOLDER # https://www.authelia.com/reference/guides/passwords/ authentication_backend: password_reset: disable: false refresh_interval: 5m file: path: /config/users.yml password: algorithm: argon2id iterations: 1 salt_length: 16 parallelism: 8 memory: 256 # blocks this much of the RAM # https://www.authelia.com/overview/authorization/access-control/ access_control: default_policy: deny rules: # - domain: # - "*.example.com" # - "example.com" # policy: bypass # networks: # bypass authentication for local networks # - 10.0.0.0/8 # - 192.168.0.0/16 # - 172.16.0.0/12 - domain: - "*.example.com" - "example.com" policy: two_factor # https://www.authelia.com/configuration/session/introduction/ session: name: authelia_session same_site: lax expiration: 7h inactivity: 5m remember_me: 1M cookies: - domain: 'example.com' authelia_url: 'https://authelia.example.com' default_redirection_url: 'https://example.com' # AUTHELIA_REDIS_PLACEHOLDER # https://www.authelia.com/configuration/security/regulation/ regulation: max_retries: 3 find_time: 10m ban_time: 12h # https://www.authelia.com/configuration/storage/introduction/ storage: # For local storage, uncomment lines below and comment out mysql. https://docs.authelia.com/configuration/storage/sqlite.html # This is good for the beginning. If you have a busy site then switch to other databases. local: path: /config/db.sqlite3 # https://www.authelia.com/configuration/notifications/introduction/ notifier: disable_startup_check: false # For testing purposes, notifications can be sent in a file. Be sure to map the volume in docker-compose. filesystem: filename: /config/notifications.txt ================================================ FILE: appdata/authelia/users.yml.example ================================================ ############################################################### # Users Database # ############################################################### # This file can be used if you do not have an LDAP set up. # CREATE NEW HASHED PASSWORD # sudo docker run -v /home/user/docker/appdata/authelia/configuration.yml:/configuration.yml -it authelia/authelia:4.39.4 authelia crypto hash generate --config /configuration.yml --password MYSTRONGPASSWORD # https://www.authelia.com/reference/guides/passwords/ # List of users users: user1: displayname: "John_Doe_1" password: "HASHED_PASSWORD" email: USER_EMAIL groups: - admins # user2: # displayname: "John_Doe_2" # password: "HASHED_PASSWORD" # email: USER_EMAIL # groups: # - users ================================================ FILE: appdata/nginx/common/acl.conf ================================================ # EasyEngine (ee) protect locations using # HTTP authentication || IP address satisfy any; auth_basic "Restricted Area"; auth_basic_user_file /var/run/secrets/htpasswd; # Allowed IP Address List allow 127.0.0.1; deny all; ================================================ FILE: appdata/nginx/common/disabled/commentspam.conf.disabled ================================================ # Deny Access for comments to No Referrer Requests - spam protection location ~* (wp-comments-post)\.php$ { if ($http_cookie !~* "_gat"){ return 405; } if ($http_referer !~ ^(simplehomelab.com|www.simplehomelab.com) ) { return 405; } } #Return 410 for the 404s for spammy backlinks #http://webmasters.stackexchange.com/questions/84317/help-to-remove-spam-links-leading-to-404-page #http://serverfault.com/questions/646154/return-error-410-for-location-regex-in-nginx?rq=1 location = / { if ($query_string ~ ^p=1459955773) { return 410; } if ($query_string ~ ^p=1461920860) { return 410; } } ================================================ FILE: appdata/nginx/common/disabled/hack-protection.conf.disabled ================================================ #http://serverfault.com/questions/811912/can-nginx-location-blocks-match-a-url-query-string if ( $args ~ "subid=" ) { return 403; } if ( $args ~ "link=" ) { return 403; } if ( $args ~ "q=" ) { return 403; } #location = /raio-raspberry-pi-easier/ { # return 403; #} ================================================ FILE: appdata/nginx/common/disabled/php5.conf.disabled ================================================ # PHP NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass php5; } ================================================ FILE: appdata/nginx/common/disabled/redis-php7.conf.disabled ================================================ # Redis NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) set $skip_cache 0; # POST requests and URL with a query string should always go to php if ($request_method = POST) { set $skip_cache 1; } if ($query_string != "") { set $skip_cache 1; } # Don't cache URL containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*\.php|index.php|/feed/|.*sitemap.*\.xml)") { set $skip_cache 1; } # Don't use the cache for logged in users or recent commenter or customer with items in cart if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|[a-z0-9]+_items_in_cart") { set $skip_cache 1; } # Use cached or actual file if they exists, Otherwise pass request to WordPress location / { try_files $uri $uri/ /index.php?$args; } location /redis-fetch { internal ; set $redis_key $args; redis_pass redis; } location /redis-store { internal ; set_unescape_uri $key $arg_key ; redis2_query set $key $echo_request_body; redis2_query expire $key 14400; redis2_pass redis; } location ~ \.php$ { set $key "nginx-cache:$scheme$request_method$host$request_uri"; try_files $uri =404; srcache_fetch_skip $skip_cache; srcache_store_skip $skip_cache; srcache_response_cache_control off; set_escape_uri $escaped_key $key; srcache_fetch GET /redis-fetch $key; srcache_store PUT /redis-store key=$escaped_key; more_set_headers 'X-SRCache-Fetch-Status $srcache_fetch_status'; more_set_headers 'X-SRCache-Store-Status $srcache_store_status'; include fastcgi_params; fastcgi_pass php7; } ================================================ FILE: appdata/nginx/common/disabled/selfhosted-cdn.conf.disabled ================================================ # Comment: The section below allows only images, JS, and CSS files to be available to self-hosted CDN subdomains. Avoids duplicate availability of other content through subdomains. if ($request_uri ~* "\.(jpe?g|gif|png)$") { rewrite ^(.*) https://cdn.simplehomelab.com$1 permanent; } ================================================ FILE: appdata/nginx/common/disabled/shb-ssl.conf.disabled ================================================ ssl_certificate /etc/nginx/certs/shb/shb_com-unified.crt; ssl_certificate_key /etc/nginx/certs/shb/shb20180213.key; ssl_dhparam /etc/nginx/certs/shb/dhparam2048.pem; ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /etc/nginx/certs/shb/shb_com-ca-bundle-trusted.crt; ================================================ FILE: appdata/nginx/common/hotlink.conf ================================================ #Prevent hotlinking location ~* \.(gif|png|jpe?g|apk|zip)$ { expires 7d; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; # prevent hotlink valid_referers none blocked ~.simplehomelab. ~.google. ~.bing. ~.yahoo. server_names ~($host); if ($invalid_referer) { return 403; } } ================================================ FILE: appdata/nginx/common/nonwp-common-php.conf ================================================ # WordPress COMMON SETTINGS # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Limit access to avoid brute force attack # Disable WP Login location = /wp-login.php { deny all; access_log off; log_not_found off; } # Disable wp-config.txt location = /wp-config.txt { deny all; access_log off; log_not_found off; } # Disable xmlrpc location = /xmlrpc.php { deny all; access_log off; log_not_found off; } # Disallow php in upload folder #location /wp-content/uploads/ { location /images/ { location ~ \.php$ { #Prevent Direct Access Of PHP Files From Web Browsers deny all; } } ================================================ FILE: appdata/nginx/common/php7/nonwp-locations-php.conf ================================================ # NGINX CONFIGURATION FOR COMMON LOCATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Basic locations files location = /favicon.ico { access_log off; log_not_found off; expires max; } location = /robots.txt { # Refer #340 issue try_files $uri $uri/ /index.php?$args; access_log off; log_not_found off; } # Cache static files location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp|avif)$ { add_header "Access-Control-Allow-Origin" "*"; access_log off; log_not_found off; expires max; } # Security settings for better privacy # Deny hidden files location ~ /\.well-known { allow all; } location ~ /\. { deny all; access_log off; log_not_found off; } # Deny backup extensions & log files location ~* ^.+\.(bak|log|old|orig|original|php#|php~|php_bak|save|swo|swp|sql)$ { deny all; access_log off; log_not_found off; } # Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) if ($uri ~* "^.+(readme|license|example)\.(txt|html)$") { return 403; } # # Status pages # location /nginx_status { # stub_status on; # access_log off; # include common/acl.conf; # } # location ~ ^/(status|ping) { # include fastcgi.conf; # fastcgi_pass php7; # include common/acl.conf; # } ================================================ FILE: appdata/nginx/common/php7/nonwp-nfc-php.conf ================================================ # WPFC NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Enable Nginx FastCGI Cache #set $skip_cache 0; # Disable Nginx FastCGI Cache set $skip_cache 1; # POST requests and URL with a query string should always go to php if ($request_method = POST) { set $skip_cache 1; } if ($query_string != "") { set $skip_cache 1; } # Use cached or actual file if they exists, Otherwise pass request to WordPress location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { # include common/hbgauthor.conf; try_files $uri =404; include fastcgi.conf; fastcgi_pass php7; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; } # Not available - Nginx Commercial Subscription Required # location ~ /purge(/.*) { # fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1"; # access_log off; #} ================================================ FILE: appdata/nginx/common/php7/wp-common-php.conf ================================================ # WordPress COMMON SETTINGS # Limit access to avoid brute force attack location = /wp-login.php { #include common/acl.conf; limit_req zone=one burst=1 nodelay; include fastcgi.conf; fastcgi_pass php7; } # Disable wp-config.txt location = /wp-config.txt { deny all; access_log off; log_not_found off; } # Disable xmlrpc location = /xmlrpc.php { deny all; access_log off; log_not_found off; } # Disallow php in upload folder #location /wp-content/uploads/ { location /images/ { location ~ \.php$ { #Prevent Direct Access Of PHP Files From Web Browsers deny all; } } ================================================ FILE: appdata/nginx/common/php7/wp-nfc-php-beta.conf ================================================ # WPFC NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Enable Nginx FastCGI Cache set $skip_cache 1; # Disable Nginx FastCGI Cache #set $skip_cache 1; # POST requests and URL with a query string should always go to php if ($request_method = POST) { set $skip_cache 1; } if ($query_string != "") { set $skip_cache 1; } # Don't cache URL containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*\.php|index.php|/feed/|.*sitemap_index.*\.xml|.*sitemap.*\.xml)") { set $skip_cache 1; } # Don't use the cache for logged in users or recent commenter or customer with items in cart if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|[a-z0-9]+_items_in_cart") { set $skip_cache 1; } # Use cached or actual file if they exists, Otherwise pass request to WordPress location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass php8; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; } # Not available - Nginx Commercial Subscription Required # location ~ /purge(/.*) { # fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1"; # access_log off; #} ================================================ FILE: appdata/nginx/common/php7/wp-nfc-php.conf ================================================ # WPFC NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Enable Nginx FastCGI Cache set $skip_cache 1; # Disable Nginx FastCGI Cache #set $skip_cache 1; # POST requests and URL with a query string should always go to php if ($request_method = POST) { set $skip_cache 1; } if ($query_string != "") { set $skip_cache 1; } # Don't cache URL containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*\.php|index.php|/feed/|.*sitemap_index.*\.xml|.*sitemap.*\.xml)") { set $skip_cache 1; } # Don't use the cache for logged in users or recent commenter or customer with items in cart if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|[a-z0-9]+_items_in_cart") { set $skip_cache 1; } # Use cached or actual file if they exists, Otherwise pass request to WordPress location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass php7; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; } # Not available - Nginx Commercial Subscription Required # location ~ /purge(/.*) { # fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1"; # access_log off; #} ================================================ FILE: appdata/nginx/common/php8/nonwp-locations-php.conf ================================================ # NGINX CONFIGURATION FOR COMMON LOCATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Basic locations files location = /favicon.ico { access_log off; log_not_found off; expires max; } location = /robots.txt { # Refer #340 issue try_files $uri $uri/ /index.php?$args; access_log off; log_not_found off; } # Cache static files location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp|avif)$ { add_header "Access-Control-Allow-Origin" "*"; access_log off; log_not_found off; expires max; } # Security settings for better privacy # Deny hidden files location ~ /\.well-known { allow all; } location ~ /\. { deny all; access_log off; log_not_found off; } # Deny backup extensions & log files location ~* ^.+\.(bak|log|old|orig|original|php#|php~|php_bak|save|swo|swp|sql)$ { deny all; access_log off; log_not_found off; } # Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) if ($uri ~* "^.+(readme|license|example)\.(txt|html)$") { return 403; } ================================================ FILE: appdata/nginx/common/php8/nonwp-nfc-php.conf ================================================ # WPFC NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Enable Nginx FastCGI Cache #set $skip_cache 0; # Disable Nginx FastCGI Cache set $skip_cache 1; # POST requests and URL with a query string should always go to php if ($request_method = POST) { set $skip_cache 1; } if ($query_string != "") { set $skip_cache 1; } # Use cached or actual file if they exists, Otherwise pass request to WordPress location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { # include common/hbgauthor.conf; try_files $uri =404; include fastcgi.conf; fastcgi_pass php8; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; } # Not available - Nginx Commercial Subscription Required # location ~ /purge(/.*) { # fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1"; # access_log off; #} ================================================ FILE: appdata/nginx/common/php8/wp-common-php.conf ================================================ # WordPress COMMON SETTINGS # Limit access to avoid brute force attack # Also Managed Challenge on Cloudflare WAF location = /wp-login.php { #include common/acl.conf; limit_req zone=one burst=1 nodelay; include fastcgi.conf; fastcgi_pass php8wp; } # Disable wp-config.txt location = /wp-config.txt { deny all; access_log off; log_not_found off; } # Managed challenge on Cloudflare WAF # Disable xmlrpc location = /xmlrpc.php { deny all; access_log off; log_not_found off; } # Disallow php in upload folder #location /wp-content/uploads/ { location /images/ { location ~ \.php$ { #Prevent Direct Access Of PHP Files From Web Browsers deny all; } } ================================================ FILE: appdata/nginx/common/php8/wp-nfc-php.conf ================================================ # WPFC NGINX CONFIGURATION # DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee) # Enable Nginx FastCGI Cache set $skip_cache 0; # Disable Nginx FastCGI Cache #set $skip_cache 1; # POST requests and URL with a query string should always go to php if ($request_method = POST) { set $skip_cache 1; } if ($query_string != "") { set $skip_cache 1; } # Don't cache URL containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*\.php|index.php|/feed/|.*sitemap_index.*\.xml|.*sitemap.*\.xml)") { set $skip_cache 1; } # Don't use the cache for logged in users or recent commenter or customer with items in cart if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|[a-z0-9]+_items_in_cart") { set $skip_cache 1; } # Use cached or actual file if they exists, Otherwise pass request to WordPress location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass php8wp; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; } ================================================ FILE: appdata/nginx/common/wp-404-rewrites.conf ================================================ #Rewrite to fix /mobile /GPT_URL 404 errors # https://stackoverflow.com/questions/39377750/nginx-location-rewrite-url-with-or-without-trailing-slash # redirect /mobile/ and /mobile to parent url rewrite ^(.*/)mobile/?$ $1 permanent; # redirect /amp/ and /amp to parent url rewrite ^(.*/)amp/?$ $1 permanent; # redirect /null/ and /null to parent url rewrite ^(.*/)null/?$ $1 permanent; # redirect /href/ and /href to parent url rewrite ^(.*/)href/?$ $1 permanent; # redirect /comment-subscriptions/, /comment-3341/, etc. to parent url rewrite ^(.*/)comment-(.*/?)$ $1/#disqus_thread permanent; # redirect /feeds/ to /feed/ rewrite ^(.*/)feeds/?$ $1/feed/ permanent; # redirect /post-slug/feed/ to /feed/ rewrite ^(.*/)(.*/)feed/?$ $1/feed/ permanent; # deleted posts rewrite ^(.*/)htpc-news-roundup(.*)$ $1 permanent; #forward htpc news roundups to homepage rewrite ^(.*/)smart-home-news-roundup(.*)$ $1 permanent; #forward htpc news roundups to homepage rewrite ^(.*/)openelec-4(.*)$ $1/openelec-released-raspberry-pi-update-instructions/ permanent; rewrite ^(.*/)openelec-3(.*)$ $1/openelec-released-raspberry-pi-update-instructions/ permanent; rewrite ^(.*/)openelec-6(.*)$ $1/openelec-released-raspberry-pi-update-instructions/ permanent; rewrite ^(.*/)openelec-5(.*)$ $1/openelec-released-raspberry-pi-update-instructions/ permanent; rewrite ^(.*/)qbittorrent-3(.*)$ $1/qbittorrent-released-installation-and-upgrade/ permanent; rewrite ^(.*/)qbittorrent-v3(.*)$ $1/qbittorrent-released-installation-and-upgrade/ permanent; rewrite ^(.*/)transmission-2(.*)$ $1/transmission-released-installation-and-upgrade/ permanent; rewrite ^(.*/)sabnzbd-0(.*)$ $1/sabnzbd-released-installation-upgrade/ permanent; rewrite ^(.*/)sabnzbd-1(.*)$ $1/sabnzbd-released-installation-upgrade/ permanent; rewrite ^(.*/)webmin-1(.*)$ $1/webmin-released-installation-and-upgrade/ permanent; rewrite ^(.*/)phpmyadmin-4(.*)$ $1/phpmyadmin-released-installation-and-upgrade/ permanent; rewrite ^(.*/)deluge-torrent-1(.*)$ $1/deluge-torrent-released-installation-and-upgrade/ permanent; rewrite ^(.*/)adbfire-201(.*)$ $1/install-and-configure-adblink-for-amazon-fire-tv/ permanent; rewrite ^(.*/)minidlna-1(.*)$ $1/install-minidlna-on-ubuntu-ultimate-guide/ permanent; # add to any 404s /slug/\"https:\/\/www.addtoany.com\/share\ # enable this # rewrite ^(/.*/.*)addtoany(.*)$ https://www.simplehomelab.com/$1 permanent; # remove weird characters at the end of 404s # enable this # rewrite ^(/.*/.*)t3=(.*)$ https://www.simplehomelab.com/$1 permanent; # ,t3=nav... and '',t3=nav # rewrite ^(.*/\'/)$ $1 permanent; # /single quote/ # #rewrite ^(.*/)*5C*m3=$ $1 permanent; # #rewrite ^(.*/)admin/$ $1/wp-admin/ permanent; # #the one below does not seem to work # #rewrite ^(.*/)[GPT_URL]$ $1 permanent; #rewrite ^(/.*/.*)m3=(.*)$ https://www.simplehomelab.com/$1 permanent; # ,m3= and '',m3= ================================================ FILE: appdata/nginx/common/wp-locations-php.conf ================================================ # NGINX CONFIGURATION FOR COMMON LOCATION # From WP Cloudflare Super Page cache Plugin - June 14, 2021 location ~* \.(xml|xsl)$ { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; } location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; } location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; } #location = /wp-content/wp-cloudflare-super-page-cache/www.simplehomelab.com/debug.log { access_log off; deny all; } # Cache static files location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|js|gif|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf)$ { add_header Pragma "public"; add_header Cache-Control "public"; access_log off; log_not_found off; expires 1y; } # https://shortpixel.com/knowledge-base/article/111-configure-nginx-to-transparently-serve-webp-files-when-supported location ~* ^(/images/.+)\.(png|jpg|jpeg)$ { set $base $1; set $webp_uri $base$webp_suffix; set $webp_old_uri $base.$2$webp_suffix; set $root "/var/www/html/simplehomelab"; root $root; add_header Vary Accept; add_header Pragma "public"; add_header Cache-Control "public"; access_log off; log_not_found off; expires 1y; if ( !-f $root$webp_uri ) { add_header X_WebP_SP_Miss $root$webp_uri; } try_files $webp_uri $webp_old_uri $uri =404; } # Feed location ~* \.(?:rss|atom)$ { add_header Pragma "public"; add_header Cache-Control "public"; access_log off; log_not_found off; expires 5d; } # Security settings for better privacy # Deny hidden files location ~ /\.well-known { allow all; } location ~ /\. { deny all; access_log off; log_not_found off; } # Deny backup extensions & log files location ~* ^.+\.(bak|log|old|orig|original|php#|php~|php_bak|save|swo|swp|sql)$ { deny all; access_log off; log_not_found off; } # Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) # Added build.xml based on 404 data on redirection plugin - 9/21/2020 if ($uri ~* "^.+(readme|license|example|build)\.(txt|html|xml)$") { return 403; } ================================================ FILE: appdata/nginx/common/wp-rankmath-sitemap-config.conf ================================================ # Sitemap Config location ~ ([^/]*)sitemap(.*)\.x(m|s)l$ { # Basic Config rewrite ^.*/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^.*/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; # Sitemap Styling - Blank Sitemap error or "Error loading stylesheet: Parsing an XSLT stylesheet failed." rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last; # Redirect sitemap to sitemap_index rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent; access_log off; } ================================================ FILE: appdata/nginx/common/wp-yoast-sitemap-config.conf ================================================ # Yoast sitemap location ~ ([^/]*)sitemap(.*)\.x(m|s)l$ { rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent; rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last; # Rules for yoast sitemap with wp|wpsubdir|wpsubdomain rewrite ^.*/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^.*/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; # Following lines are options. Needed for WordPress seo addons rewrite ^/news_sitemap\.xml$ /index.php?sitemap=wpseo_news last; rewrite ^/locations\.kml$ /index.php?sitemap=wpseo_local_kml last; rewrite ^/geo_sitemap\.xml$ /index.php?sitemap=wpseo_local last; rewrite ^/video-sitemap\.xsl$ /index.php?xsl=video last; access_log off; } ================================================ FILE: appdata/nginx/conf.d/blockips.conf ================================================ # Block IP Address # deny 1.1.1.1; ================================================ FILE: appdata/nginx/conf.d/fastcgi.conf ================================================ # FastCGI cache settings fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503; fastcgi_cache_valid 200 301 302 404 1h; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SERVER_NAME $http_host; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; fastcgi_keep_conn on; ================================================ FILE: appdata/nginx/conf.d/optimizations.conf ================================================ # Custom Configs # Prevent iframe or clickjacking https://gist.github.com/plentz/6737338 # add_header X-Frame-Options SAMEORIGIN; # Added by Traefik # Custom Sizes https://www.digitalocean.com/community/articles/how-to-optimize-nginx-configuration # http://www.narga.net/recommended-nginx-configuration-high-traffic-wordpress/2/ client_body_buffer_size 10K; client_header_buffer_size 1k; client_max_body_size 8m; large_client_header_buffers 4 32k; # 400 Bad Request - increased from 2 8k. # Caches information about open FDs, freqently accessed files. # Changing this setting, in my environment, brought performance up from 560k req/sec, to 904k req/sec. # I recommend using some varient of these options, though not the specific values listed below. # http://www.narga.net/recommended-nginx-configuration-high-traffic-wordpress/2/ open_file_cache max=1000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses 2; open_file_cache_errors on; # Time Outs https://www.digitalocean.com/community/articles/how-to-optimize-nginx-configuration # http://www.narga.net/recommended-nginx-configuration-high-traffic-wordpress/2/ # send the client a "request timed out" if the body is not loaded by this time. Default 60. client_body_timeout 12; client_header_timeout 12; # If the client stops reading data, free up the stale client connection after this much time. Default 60. send_timeout 10; # How long an idle keepalive connection remains open. keepalive_timeout 15; ================================================ FILE: appdata/nginx/conf.d/upstream.conf ================================================ upstream php8 { server php8:9000; } upstream php8wp { server php8:9001; } ================================================ FILE: appdata/nginx/conf.d/webp.conf ================================================ # Insert this block before the server directive, which creates the $webp_suffix if the browser supports WebP map $http_accept $webp_suffix { default ""; "~*webp" ".webp"; } ================================================ FILE: appdata/nginx/fastcgi.conf ================================================ fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param HTTPS $https if_not_empty; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; # To fix CGI application vulnerability - https://httpoxy.org fastcgi_param HTTP_PROXY ""; ================================================ FILE: appdata/nginx/mime.types ================================================ types { text/html html htm shtml; text/css css; text/xml xml; image/gif gif; image/jpeg jpeg jpg; application/javascript js; application/atom+xml atom; application/rss+xml rss; text/mathml mml; text/plain txt; text/vnd.sun.j2me.app-descriptor jad; text/vnd.wap.wml wml; text/x-component htc; image/png png; image/tiff tif tiff; image/vnd.wap.wbmp wbmp; image/x-icon ico; image/x-jng jng; image/x-ms-bmp bmp; image/svg+xml svg svgz; image/webp webp; application/font-woff woff; application/java-archive jar war ear; application/json json; application/mac-binhex40 hqx; application/msword doc; application/pdf pdf; application/postscript ps eps ai; application/rtf rtf; application/vnd.apple.mpegurl m3u8; application/vnd.ms-excel xls; application/vnd.ms-fontobject eot; application/vnd.ms-powerpoint ppt; application/vnd.wap.wmlc wmlc; application/vnd.google-earth.kml+xml kml; application/vnd.google-earth.kmz kmz; application/x-7z-compressed 7z; application/x-cocoa cco; application/x-java-archive-diff jardiff; application/x-java-jnlp-file jnlp; application/x-makeself run; application/x-perl pl pm; application/x-pilot prc pdb; application/x-rar-compressed rar; application/x-redhat-package-manager rpm; application/x-sea sea; application/x-shockwave-flash swf; application/x-stuffit sit; application/x-tcl tcl tk; application/x-x509-ca-cert der pem crt; application/x-xpinstall xpi; application/xhtml+xml xhtml; application/xspf+xml xspf; application/zip zip; application/octet-stream bin exe dll; application/octet-stream deb; application/octet-stream dmg; application/octet-stream iso img; application/octet-stream msi msp msm; application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; audio/midi mid midi kar; audio/mpeg mp3; audio/ogg ogg; audio/x-m4a m4a; audio/x-realaudio ra; video/3gpp 3gpp 3gp; video/mp2t ts; video/mp4 mp4; video/mpeg mpeg mpg; video/quicktime mov; video/webm webm; video/x-flv flv; video/x-m4v m4v; video/x-mng mng; video/x-ms-asf asx asf; video/x-ms-wmv wmv; video/x-msvideo avi; } ================================================ FILE: appdata/nginx/nginx.conf ================================================ worker_processes auto; # use " grep processor /proc/cpuinfo | wc -l " and type the number here, or stay with automatic configuration events { worker_connections 1024; # use " ulimit -n" and type the number here multi_accept on; } http { ############# NGINX conf include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; tcp_nodelay on; server_names_hash_bucket_size 128; types_hash_max_size 2048; server_tokens off; reset_timedout_connection on; fastcgi_read_timeout 300; # Logging Settings access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; # Log format Settings #log_format rt_cache '$remote_addr $upstream_response_time $upstream_cache_status [$time_local] ' #'$http_host "$request" $status $body_bytes_sent ' #'"$http_referer" "$http_user_agent"'; # Proxy Settings real_ip_header X-Forwarded-For; set_real_ip_from 192.168.90.0/24; # Your internal Traefik network cidr # Limit Request limit_req_status 403; limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; # Headers # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains" always; add_header Fastcgi-Cache $upstream_cache_status; # Gzip Compression Settings gzip on; gzip_static on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component text/xml text/javascript; # Virtual Host Configs include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites/*.conf; } ================================================ FILE: appdata/nginx/sites/dash.conf ================================================ server { listen 80; server_name dash.simplehomelab.com; root /var/www/html/dash; index index.php; access_log /var/log/nginx/dash-access.log; error_log /var/log/nginx/dash-error.log; # Turn on directory listing autoindex on; include common/php8/nonwp-nfc-php.conf; include common/nonwp-common-php.conf; include common/php8/nonwp-locations-php.conf; } ================================================ FILE: appdata/nginx/sites/deployrr.conf ================================================ server { listen 80; server_name deployrr.app; return 301 $scheme://www.deployrr.app$request_uri; } server { listen 80; server_name www.deployrr.app; root /var/www/html/deployrr; index index.php; access_log /var/log/nginx/deployrr-access.log; error_log /var/log/nginx/deployrr-error.log; include common/php8/nonwp-nfc-php.conf; include common/nonwp-common-php.conf; include common/php8/nonwp-locations-php.conf; } ================================================ FILE: appdata/nginx/sites/khub.conf ================================================ server { listen 80; server_name khub.info; return 301 $scheme://www.khub.info$request_uri; } server { listen 80; server_name www.khub.info; root /var/www/html/khub; index index.php; access_log /var/log/nginx/khub-access.log; error_log /var/log/nginx/khub-error.log; include common/php8/nonwp-nfc-php.conf; include common/nonwp-common-php.conf; include common/php8/nonwp-locations-php.conf; } ================================================ FILE: appdata/nginx/sites/simplehomelab.conf ================================================ server { listen 80; server_name simplehomelab.com; return 301 $scheme://www.simplehomelab.com$request_uri; } server { listen 80; server_name www.simplehomelab.com; root /var/www/html/simplehomelab; index index.php; access_log /var/log/nginx/simplehomelab-access.log; error_log /var/log/nginx/simplehomelab-error.log; # #include common/hotlink.conf; include common/wp-rankmath-sitemap-config.conf; include common/wp-404-rewrites.conf; include common/php8/wp-nfc-php.conf; include common/php8/wp-common-php.conf; include common/wp-locations-php.conf; } ================================================ FILE: appdata/php/php7/conf.d/extensions.ini ================================================ zend_extension=opcache extension=amqp extension=bcmath extension=bz2 extension=calendar extension=event extension=exif extension=gd extension=gettext extension=imagick extension=intl extension=ldap extension=mysqli extension=pdo_mysql extension=pdo_pgsql extension=pgsql extension=redis extension=soap extension=sockets extension=xsl extension=zip ================================================ FILE: appdata/php/php7/conf.d/opcache.ini ================================================ opcache.enable=0 ; 0 means it will check on every request ;Development = 0. Production = 1 or comment out (default 1) #opcache.revalidate_freq=1 ; 0 is irrelevant if opcache.validate_timestamps=0 which is desirable in production ;Development = 1. Production = 0 or comment out (default 0) #opcache.validate_timestamps=0 ;Development = 1. Production =0 or comment out (default 0) #opcache.consistency_checks=0 opcache.max_accelerated_files=20000 opcache.memory_consumption=128 opcache.max_wasted_percentage=10 opcache.interned_strings_buffer=16 opcache.fast_shutdown=1 ================================================ FILE: appdata/php/php7/php.ini ================================================ [PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ; PHP's initialization file, generally called php.ini, is responsible for ; configuring many of the aspects of PHP's behavior. ; PHP attempts to find and load this configuration from a number of locations. ; The following is a summary of its search order: ; 1. SAPI module specific location. ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI) ; 5. The web server's directory (for SAPI modules), or directory of PHP ; (otherwise in Windows) ; 6. The directory from the --with-config-file-path compile time option, or the ; Windows directory (usually C:\windows) ; See the PHP docs for more specific information. ; http://php.net/configuration.file ; The syntax of the file is extremely simple. Whitespace and lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; Directives following the section heading [PATH=/www/mysite] only ; apply to PHP files in the /www/mysite directory. Directives ; following the section heading [HOST=www.example.com] only apply to ; PHP files served from www.example.com. Directives set in these ; special sections cannot be overridden by user-defined INI files or ; at runtime. Currently, [PATH=] and [HOST=] sections only work under ; CGI/FastCGI. ; http://php.net/ini.sections ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; Directives are variables used to configure PHP or PHP extensions. ; There is no name validation. If PHP can't find an expected ; directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a ; previously set variable or directive (e.g. ${foo}) ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; ^ bitwise XOR ; & bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; foo = ; sets foo to an empty string ; foo = None ; sets foo to an empty string ; foo = "None" ; sets foo to the string 'None' ; If you use constants in your value, and these constants belong to a ; dynamically loaded extension (either a PHP extension or a Zend extension), ; you may only use these constants *after* the line that loads the extension. ;;;;;;;;;;;;;;;;;;; ; About this file ; ;;;;;;;;;;;;;;;;;;; ; PHP comes packaged with two INI files. One that is recommended to be used ; in production environments and one that is recommended to be used in ; development environments. ; php.ini-production contains settings which hold security, performance and ; best practices at its core. But please be aware, these settings may break ; compatibility with older or less security conscience applications. We ; recommending using the production ini in production and testing environments. ; php.ini-development is very similar to its production variant, except it is ; much more verbose when it comes to errors. We recommend using the ; development version only in development environments, as errors shown to ; application users can inadvertently leak otherwise secure information. ; This is the php.ini-production INI file. ;;;;;;;;;;;;;;;;;;; ; Quick Reference ; ;;;;;;;;;;;;;;;;;;; ; The following are all the settings which are different in either the production ; or development versions of the INIs with respect to PHP's default behavior. ; Please see the actual settings later in the document for more details as to why ; we recommend these changes in PHP's behavior. ; display_errors ; Default Value: On ; Development Value: On ; Production Value: Off ; display_startup_errors ; Default Value: Off ; Development Value: On ; Production Value: Off ; error_reporting ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED ; Development Value: E_ALL ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; log_errors ; Default Value: Off ; Development Value: On ; Production Value: On ; max_input_time ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) ; Production Value: 60 (60 seconds) ; output_buffering ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096 ; register_argc_argv ; Default Value: On ; Development Value: Off ; Production Value: Off ; request_order ; Default Value: None ; Development Value: "GP" ; Production Value: "GP" ; session.gc_divisor ; Default Value: 100 ; Development Value: 1000 ; Production Value: 1000 ; session.sid_bits_per_character ; Default Value: 4 ; Development Value: 5 ; Production Value: 5 ; short_open_tag ; Default Value: On ; Development Value: Off ; Production Value: Off ; variables_order ; Default Value: "EGPCS" ; Development Value: "GPCS" ; Production Value: "GPCS" ;;;;;;;;;;;;;;;;;;;; ; php.ini Options ; ;;;;;;;;;;;;;;;;;;;; ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" ;user_ini.filename = ".user.ini" ; To disable this feature set this option to an empty value ;user_ini.filename = ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) ;user_ini.cache_ttl = 300 ;;;;;;;;;;;;;;;;;;;; ; Language Options ; ;;;;;;;;;;;;;;;;;;;; ; Enable the PHP scripting language engine under Apache. ; http://php.net/engine engine = On ; This directive determines whether or not PHP will recognize code between ; tags as PHP source which should be processed as such. It is ; generally recommended that should be used and that this feature ; should be disabled, as enabling it may result in issues when generating XML ; documents, however this remains supported for backward compatibility reasons. ; Note that this directive does not control the would work. ; http://php.net/syntax-highlighting ;highlight.string = #DD0000 ;highlight.comment = #FF9900 ;highlight.keyword = #007700 ;highlight.default = #0000BB ;highlight.html = #000000 ; If enabled, the request will be allowed to complete even if the user aborts ; the request. Consider enabling it if executing long requests, which may end up ; being interrupted by the user or a browser timing out. PHP's default behavior ; is to disable this feature. ; http://php.net/ignore-user-abort ;ignore_user_abort = On ; Determines the size of the realpath cache to be used by PHP. This value should ; be increased on systems where PHP opens many files to reflect the quantity of ; the file operations performed. ; Note: if open_basedir is set, the cache is disabled ; http://php.net/realpath-cache-size ;realpath_cache_size = 4096k ; Duration of time, in seconds for which to cache realpath information for a given ; file or directory. For systems with rarely changing files, consider increasing this ; value. ; http://php.net/realpath-cache-ttl ;realpath_cache_ttl = 120 ; Enables or disables the circular reference collector. ; http://php.net/zend.enable-gc zend.enable_gc = On ; If enabled, scripts may be written in encodings that are incompatible with ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such ; encodings. To use this feature, mbstring extension must be enabled. ; Default: Off ;zend.multibyte = Off ; Allows to set the default encoding for the scripts. This value will be used ; unless "declare(encoding=...)" directive appears at the top of the script. ; Only affects if zend.multibyte is set. ; Default: "" ;zend.script_encoding = ; Allows to include or exclude arguments from stack traces generated for exceptions ; Default: Off ; In production, it is recommended to turn this setting on to prohibit the output ; of sensitive information in stack traces zend.exception_ignore_args = On ;;;;;;;;;;;;;;;;; ; Miscellaneous ; ;;;;;;;;;;;;;;;;; ; Decides whether PHP may expose the fact that it is installed on the server ; (e.g. by adding its signature to the Web server header). It is no security ; threat in any way, but it makes it possible to determine whether you use PHP ; on your server or not. ; http://php.net/expose-php expose_php = On ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI ;max_execution_time = 30 max_execution_time = 600 ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly ; long running scripts. ; Note: This directive is hardcoded to -1 for the CLI SAPI ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) ; Production Value: 60 (60 seconds) ; http://php.net/max-input-time max_input_time = 60 ; Maximum input variable nesting level ; http://php.net/max-input-nesting-level ;max_input_nesting_level = 64 ; How many GET/POST/COOKIE input variables may be accepted ;max_input_vars = 1000 max_input_vars = 25000 ; Maximum amount of memory a script may consume ; http://php.net/memory-limit ;memory_limit = 128M memory_limit = 512M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; This directive informs PHP of which errors, warnings and notices you would like ; it to take action for. The recommended way of setting values for this ; directive is through the use of the error level constants and bitwise ; operators. The error level constants are below here for convenience as well as ; some common settings and their meanings. ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT ; those related to E_NOTICE and E_STRICT, which together cover best practices and ; recommended coding standards in PHP. For performance reasons, this is the ; recommend error reporting setting. Your production server shouldn't be wasting ; resources complaining about best practices and coding standards. That's what ; development servers and development settings are for. ; Note: The php.ini-development file has this setting as E_ALL. This ; means it pretty much reports everything which is exactly what you want during ; development and early testing. ; ; Error Level Constants: ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) ; E_ERROR - fatal run-time errors ; E_RECOVERABLE_ERROR - almost fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time parse errors ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and ; relying on the fact it is automatically initialized to an ; empty string) ; E_STRICT - run-time notices, enable to have PHP suggest changes ; to your code which will ensure the best interoperability ; and forward compatibility of your code ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's ; initial startup ; E_COMPILE_ERROR - fatal compile-time errors ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) ; E_USER_ERROR - user-generated error message ; E_USER_WARNING - user-generated warning message ; E_USER_NOTICE - user-generated notice message ; E_DEPRECATED - warn about code that will not work in future versions ; of PHP ; E_USER_DEPRECATED - user-generated deprecation warnings ; ; Common Values: ; E_ALL (Show all errors, warnings and notices including coding standards.) ; E_ALL & ~E_NOTICE (Show all errors, except for notices) ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED ; Development Value: E_ALL ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; http://php.net/error-reporting error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT ; This directive controls whether or not and where PHP will output errors, ; notices and warnings too. Error output is very useful during development, but ; it could be very dangerous in production environments. Depending on the code ; which is triggering the error, sensitive information could potentially leak ; out of your application such as database usernames and passwords or worse. ; For production environments, we recommend logging errors rather than ; sending them to STDOUT. ; Possible Values: ; Off = Do not display any errors ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) ; On or stdout = Display errors to STDOUT ; Default Value: On ; Development Value: On ; Production Value: Off ; http://php.net/display-errors display_errors = Off ; The display of errors which occur during PHP's startup sequence are handled ; separately from display_errors. PHP's default behavior is to suppress those ; errors from clients. Turning the display of startup errors on can be useful in ; debugging configuration problems. We strongly recommend you ; set this to 'off' for production servers. ; Default Value: Off ; Development Value: On ; Production Value: Off ; http://php.net/display-startup-errors display_startup_errors = Off ; Besides displaying errors, PHP can also log errors to locations such as a ; server-specific log, STDERR, or a location specified by the error_log ; directive found below. While errors should not be displayed on productions ; servers they should still be monitored and logging is a great way to do that. ; Default Value: Off ; Development Value: On ; Production Value: On ; http://php.net/log-errors log_errors = On ; Set maximum length of log_errors. In error_log information about the source is ; added. The default is 1024 and 0 allows to not apply any maximum length at all. ; http://php.net/log-errors-max-len log_errors_max_len = 1024 ; Do not log repeated messages. Repeated errors must occur in same file on same ; line unless ignore_repeated_source is set true. ; http://php.net/ignore-repeated-errors ignore_repeated_errors = Off ; Ignore source of message when ignoring repeated messages. When this setting ; is On you will not log errors with repeated messages from different files or ; source lines. ; http://php.net/ignore-repeated-source ignore_repeated_source = Off ; If this parameter is set to Off, then memory leaks will not be shown (on ; stdout or in the log). This is only effective in a debug compile, and if ; error reporting includes E_WARNING in the allowed list ; http://php.net/report-memleaks report_memleaks = On ; This setting is on by default. ;report_zend_debug = 0 ; Store the last error/warning message in $php_errormsg (boolean). Setting this value ; to On can assist in debugging and is appropriate for development servers. It should ; however be disabled on production servers. ; This directive is DEPRECATED. ; Default Value: Off ; Development Value: Off ; Production Value: Off ; http://php.net/track-errors ;track_errors = Off ; Turn off normal error reporting and emit XML-RPC error XML ; http://php.net/xmlrpc-errors ;xmlrpc_errors = 0 ; An XML-RPC faultCode ;xmlrpc_error_number = 0 ; When PHP displays or logs an error, it has the capability of formatting the ; error message as HTML for easier reading. This directive controls whether ; the error message is formatted as HTML or not. ; Note: This directive is hardcoded to Off for the CLI SAPI ; http://php.net/html-errors ;html_errors = On ; If html_errors is set to On *and* docref_root is not empty, then PHP ; produces clickable error messages that direct to a page describing the error ; or function causing the error in detail. ; You can download a copy of the PHP manual from http://php.net/docs ; and change docref_root to the base URL of your local copy including the ; leading '/'. You must also specify the file extension being used including ; the dot. PHP's default behavior is to leave these settings empty, in which ; case no links to documentation are generated. ; Note: Never use this feature for production boxes. ; http://php.net/docref-root ; Examples ;docref_root = "/phpmanual/" ; http://php.net/docref-ext ;docref_ext = .html ; String to output before an error message. PHP's default behavior is to leave ; this setting blank. ; http://php.net/error-prepend-string ; Example: ;error_prepend_string = "" ; String to output after an error message. PHP's default behavior is to leave ; this setting blank. ; http://php.net/error-append-string ; Example: ;error_append_string = "" ; Log errors to specified file. PHP's default behavior is to leave this value ; empty. ; http://php.net/error-log ; Example: ;error_log = php_errors.log ; Log errors to syslog (Event Log on Windows). ;error_log = syslog ; The syslog ident is a string which is prepended to every message logged ; to syslog. Only used when error_log is set to syslog. ;syslog.ident = php ; The syslog facility is used to specify what type of program is logging ; the message. Only used when error_log is set to syslog. ;syslog.facility = user ; Set this to disable filtering control characters (the default). ; Some loggers only accept NVT-ASCII, others accept anything that's not ; control characters. If your logger accepts everything, then no filtering ; is needed at all. ; Allowed values are: ; ascii (all printable ASCII characters and NL) ; no-ctrl (all characters except control characters) ; all (all characters) ; raw (like "all", but messages are not split at newlines) ; http://php.net/syslog.filter ;syslog.filter = ascii ;windows.show_crt_warning ; Default value: 0 ; Development value: 0 ; Production value: 0 ;;;;;;;;;;;;;;;;; ; Data Handling ; ;;;;;;;;;;;;;;;;; ; The separator used in PHP generated URLs to separate arguments. ; PHP's default setting is "&". ; http://php.net/arg-separator.output ; Example: ;arg_separator.output = "&" ; List of separator(s) used by PHP to parse input URLs into variables. ; PHP's default setting is "&". ; NOTE: Every character in this directive is considered as separator! ; http://php.net/arg-separator.input ; Example: ;arg_separator.input = ";&" ; This directive determines which super global arrays are registered when PHP ; starts up. G,P,C,E & S are abbreviations for the following respective super ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty ; paid for the registration of these arrays and because ENV is not as commonly ; used as the others, ENV is not recommended on productions servers. You ; can still get access to the environment variables through getenv() should you ; need to. ; Default Value: "EGPCS" ; Development Value: "GPCS" ; Production Value: "GPCS"; ; http://php.net/variables-order variables_order = "GPCS" ; This directive determines which super global data (G,P & C) should be ; registered into the super global array REQUEST. If so, it also determines ; the order in which that data is registered. The values for this directive ; are specified in the same manner as the variables_order directive, ; EXCEPT one. Leaving this value empty will cause PHP to use the value set ; in the variables_order directive. It does not mean it will leave the super ; globals array REQUEST empty. ; Default Value: None ; Development Value: "GP" ; Production Value: "GP" ; http://php.net/request-order request_order = "GP" ; This directive determines whether PHP registers $argv & $argc each time it ; runs. $argv contains an array of all the arguments passed to PHP when a script ; is invoked. $argc contains an integer representing the number of arguments ; that were passed when the script was invoked. These arrays are extremely ; useful when running scripts from the command line. When this directive is ; enabled, registering these variables consumes CPU cycles and memory each time ; a script is executed. For performance reasons, this feature should be disabled ; on production servers. ; Note: This directive is hardcoded to On for the CLI SAPI ; Default Value: On ; Development Value: Off ; Production Value: Off ; http://php.net/register-argc-argv register_argc_argv = Off ; When enabled, the ENV, REQUEST and SERVER variables are created when they're ; first used (Just In Time) instead of when the script starts. If these ; variables are not used within a script, having this directive on will result ; in a performance gain. The PHP directive register_argc_argv must be disabled ; for this directive to have any effect. ; http://php.net/auto-globals-jit auto_globals_jit = On ; Whether PHP will read the POST data. ; This option is enabled by default. ; Most likely, you won't want to disable this option globally. It causes $_POST ; and $_FILES to always be empty; the only way you will be able to read the ; POST data will be through the php://input stream wrapper. This can be useful ; to proxy requests or to process the POST data in a memory efficient fashion. ; http://php.net/enable-post-data-reading ;enable_post_data_reading = Off ; Maximum size of POST data that PHP will accept. ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; http://php.net/post-max-size ;post_max_size = 8M post_max_size = 8M ; Automatically add files before PHP document. ; http://php.net/auto-prepend-file auto_prepend_file = ; Automatically add files after PHP document. ; http://php.net/auto-append-file auto_append_file = ; By default, PHP will output a media type using the Content-Type header. To ; disable this, simply set it to be empty. ; ; PHP's built-in default media type is set to text/html. ; http://php.net/default-mimetype default_mimetype = "text/html" ; PHP's default character set is set to UTF-8. ; http://php.net/default-charset default_charset = "UTF-8" ; PHP internal character encoding is set to empty. ; If empty, default_charset is used. ; http://php.net/internal-encoding ;internal_encoding = ; PHP input character encoding is set to empty. ; If empty, default_charset is used. ; http://php.net/input-encoding ;input_encoding = ; PHP output character encoding is set to empty. ; If empty, default_charset is used. ; See also output_buffer. ; http://php.net/output-encoding ;output_encoding = ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\path1;\path2" ;include_path = ".;c:\php\includes" ; ; PHP's default setting for include_path is ".;/path/to/php/pear" ; http://php.net/include-path ; The root of the PHP pages, used only if nonempty. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root ; if you are running php as a CGI under any web server (other than IIS) ; see documentation for security issues. The alternate is to use the ; cgi.force_redirect configuration below ; http://php.net/doc-root doc_root = ; The directory under which PHP opens the script using /~username used only ; if nonempty. ; http://php.net/user-dir user_dir = ; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir ;extension_dir = "./" ; On windows: ;extension_dir = "ext" ; Directory where the temporary files should be placed. ; Defaults to the system default (see sys_get_temp_dir) ;sys_temp_dir = "/tmp" ; Whether or not to enable the dl() function. The dl() function does NOT work ; properly in multithreaded servers, such as IIS or Zeus, and is automatically ; disabled on them. ; http://php.net/enable-dl enable_dl = Off ; cgi.force_redirect is necessary to provide security running PHP as a CGI under ; most web servers. Left undefined, PHP turns this on by default. You can ; turn it off here AT YOUR OWN RISK ; **You CAN safely turn this off for IIS, in fact, you MUST.** ; http://php.net/cgi.force-redirect ;cgi.force_redirect = 1 ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with ; every request. PHP's default behavior is to disable this feature. ;cgi.nph = 1 ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP ; will look for to know it is OK to continue execution. Setting this variable MAY ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. ; http://php.net/cgi.redirect-status-env ;cgi.redirect_status_env = ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. ; http://php.net/cgi.fix-pathinfo ;cgi.fix_pathinfo=1 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside ; of the web tree and people will not be able to circumvent .htaccess security. ;cgi.discard_path=1 ; FastCGI under IIS supports the ability to impersonate ; security tokens of the calling client. This allows IIS to define the ; security context that the request runs under. mod_fastcgi under Apache ; does not currently support this feature (03/17/2002) ; Set to 1 if running under IIS. Default is zero. ; http://php.net/fastcgi.impersonate ;fastcgi.impersonate = 1 ; Disable logging through FastCGI connection. PHP's default behavior is to enable ; this feature. ;fastcgi.logging = 0 ; cgi.rfc2616_headers configuration option tells PHP what type of headers to ; use when sending HTTP response code. If set to 0, PHP sends Status: header that ; is supported by Apache. When this option is set to 1, PHP will send ; RFC2616 compliant header. ; Default is zero. ; http://php.net/cgi.rfc2616-headers ;cgi.rfc2616_headers = 0 ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! ; (shebang) at the top of the running script. This line might be needed if the ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI ; mode skips this line and ignores its content if this directive is turned on. ; http://php.net/cgi.check-shebang-line ;cgi.check_shebang_line=1 ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. ; http://php.net/file-uploads file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ; http://php.net/upload-tmp-dir ;upload_tmp_dir = ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize ;upload_max_filesize = 2M upload_max_filesize = 3M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 20 ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. ; http://php.net/allow-url-fopen allow_url_fopen = On ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. ; http://php.net/allow-url-include allow_url_include = Off ; Define the anonymous ftp password (your email address). PHP's default setting ; for this is empty. ; http://php.net/from ;from="john@doe.com" ; Define the User-Agent string. PHP's default setting for this is empty. ; http://php.net/user-agent ;user_agent="PHP" ; Default timeout for socket based streams (seconds) ; http://php.net/default-socket-timeout default_socket_timeout = 60 ; If your scripts have to deal with files from Macintosh systems, ; or you are running on a Mac and need to deal with files from ; unix or win32 systems, setting this flag will cause PHP to ; automatically detect the EOL character in those files so that ; fgets() and file() will work regardless of the source of the file. ; http://php.net/auto-detect-line-endings ;auto_detect_line_endings = Off ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; ; If you wish to have an extension loaded automatically, use the following ; syntax: ; ; extension=modulename ; ; For example: ; ; extension=mysqli ; ; When the extension library to load is not located in the default extension ; directory, You may specify an absolute path to the library file: ; ; extension=/path/to/extension/mysqli.so ; ; Note : The syntax used in previous PHP versions ('extension=.so' and ; 'extension='php_.dll') is supported for legacy reasons and may be ; deprecated in a future PHP major version. So, when it is possible, please ; move to the new ('extension=) syntax. ; ; Notes for Windows environments : ; ; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) ; extension folders as well as the separate PECL DLL download (PHP 5+). ; Be sure to appropriately set the extension_dir directive. ; ;extension=bz2 ;extension=curl ;extension=ffi ;extension=ftp ;extension=fileinfo ;extension=gd2 ;extension=gettext ;extension=gmp ;extension=intl ;extension=imap ;extension=ldap ;extension=mbstring ;extension=exif ; Must be after mbstring as it depends on it ;extension=mysqli ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client ;extension=odbc ;extension=openssl ;extension=pdo_firebird ;extension=pdo_mysql ;extension=pdo_oci ;extension=pdo_odbc ;extension=pdo_pgsql ;extension=pdo_sqlite ;extension=pgsql ;extension=shmop ; The MIBS data available in the PHP distribution must be installed. ; See http://www.php.net/manual/en/snmp.installation.php ;extension=snmp ;extension=soap ;extension=sockets ;extension=sodium ;extension=sqlite3 ;extension=tidy ;extension=xmlrpc ;extension=xsl ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; [CLI Server] ; Whether the CLI web server uses ANSI color coding in its terminal output. cli_server.color = On [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone ;date.timezone = date.timezone = America/New_York ; http://php.net/date.default-latitude ;date.default_latitude = 31.7667 ; http://php.net/date.default-longitude ;date.default_longitude = 35.2333 ; http://php.net/date.sunrise-zenith ;date.sunrise_zenith = 90.583333 ; http://php.net/date.sunset-zenith ;date.sunset_zenith = 90.583333 [filter] ; http://php.net/filter.default ;filter.default = unsafe_raw ; http://php.net/filter.default-flags ;filter.default_flags = [iconv] ; Use of this INI entry is deprecated, use global input_encoding instead. ; If empty, default_charset or input_encoding or iconv.input_encoding is used. ; The precedence is: default_charset < input_encoding < iconv.input_encoding ;iconv.input_encoding = ; Use of this INI entry is deprecated, use global internal_encoding instead. ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding ;iconv.internal_encoding = ; Use of this INI entry is deprecated, use global output_encoding instead. ; If empty, default_charset or output_encoding or iconv.output_encoding is used. ; The precedence is: default_charset < output_encoding < iconv.output_encoding ; To use an output encoding conversion, iconv's output handler must be set ; otherwise output encoding conversion cannot be performed. ;iconv.output_encoding = [imap] ; rsh/ssh logins are disabled by default. Use this INI entry if you want to ; enable them. Note that the IMAP library does not filter mailbox names before ; passing them to rsh/ssh command, thus passing untrusted data to this function ; with rsh/ssh enabled is insecure. ;imap.enable_insecure_rsh=0 [intl] ;intl.default_locale = ; This directive allows you to produce PHP errors when some error ; happens within intl functions. The value is the level of the error produced. ; Default is 0, which does not produce any errors. ;intl.error_level = E_WARNING ;intl.use_exceptions = 0 [sqlite3] ; Directory pointing to SQLite3 extensions ; http://php.net/sqlite3.extension-dir ;sqlite3.extension_dir = ; SQLite defensive mode flag (only available from SQLite 3.26+) ; When the defensive flag is enabled, language features that allow ordinary ; SQL to deliberately corrupt the database file are disabled. This forbids ; writing directly to the schema, shadow tables (eg. FTS data tables), or ; the sqlite_dbpage virtual table. ; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html ; (for older SQLite versions, this flag has no use) ;sqlite3.defensive = 1 [Pcre] ; PCRE library backtracking limit. ; http://php.net/pcre.backtrack-limit ;pcre.backtrack_limit=100000 ; PCRE library recursion limit. ; Please note that if you set this value to a high number you may consume all ; the available process stack and eventually crash PHP (due to reaching the ; stack size limit imposed by the Operating System). ; http://php.net/pcre.recursion-limit ;pcre.recursion_limit=100000 ; Enables or disables JIT compilation of patterns. This requires the PCRE ; library to be compiled with JIT support. ;pcre.jit=1 [Pdo] ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" ; http://php.net/pdo-odbc.connection-pooling ;pdo_odbc.connection_pooling=strict ;pdo_odbc.db2_instance_name [Pdo_mysql] ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. pdo_mysql.default_socket= [Phar] ; http://php.net/phar.readonly ;phar.readonly = On ; http://php.net/phar.require-hash ;phar.require_hash = On ;phar.cache_list = [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path ;sendmail_path = ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(). ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers. ;mail.log = ; Log mail to syslog (Event Log on Windows). ;mail.log = syslog [ODBC] ; http://php.net/odbc.default-db ;odbc.default_db = Not yet implemented ; http://php.net/odbc.default-user ;odbc.default_user = Not yet implemented ; http://php.net/odbc.default-pw ;odbc.default_pw = Not yet implemented ; Controls the ODBC cursor model. ; Default: SQL_CURSOR_STATIC (default). ;odbc.default_cursortype ; Allow or prevent persistent links. ; http://php.net/odbc.allow-persistent odbc.allow_persistent = On ; Check that a connection is still valid before reuse. ; http://php.net/odbc.check-persistent odbc.check_persistent = On ; Maximum number of persistent links. -1 means no limit. ; http://php.net/odbc.max-persistent odbc.max_persistent = -1 ; Maximum number of links (persistent + non-persistent). -1 means no limit. ; http://php.net/odbc.max-links odbc.max_links = -1 ; Handling of LONG fields. Returns number of bytes to variables. 0 means ; passthru. ; http://php.net/odbc.defaultlrl odbc.defaultlrl = 4096 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation ; of odbc.defaultlrl and odbc.defaultbinmode ; http://php.net/odbc.defaultbinmode odbc.defaultbinmode = 1 [MySQLi] ; Maximum number of persistent links. -1 means no limit. ; http://php.net/mysqli.max-persistent mysqli.max_persistent = -1 ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements ; http://php.net/mysqli.allow_local_infile ;mysqli.allow_local_infile = On ; Allow or prevent persistent links. ; http://php.net/mysqli.allow-persistent mysqli.allow_persistent = On ; Maximum number of links. -1 means no limit. ; http://php.net/mysqli.max-links mysqli.max_links = -1 ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look ; at MYSQL_PORT. ; http://php.net/mysqli.default-port mysqli.default_port = 3306 ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. ; http://php.net/mysqli.default-socket mysqli.default_socket = ; Default host for mysqli_connect() (doesn't apply in safe mode). ; http://php.net/mysqli.default-host mysqli.default_host = ; Default user for mysqli_connect() (doesn't apply in safe mode). ; http://php.net/mysqli.default-user mysqli.default_user = ; Default password for mysqli_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") ; and reveal this password! And of course, any users with read access to this ; file will be able to reveal the password as well. ; http://php.net/mysqli.default-pw mysqli.default_pw = ; Allow or prevent reconnect mysqli.reconnect = Off [mysqlnd] ; Enable / Disable collection of general statistics by mysqlnd which can be ; used to tune and monitor MySQL operations. mysqlnd.collect_statistics = On ; Enable / Disable collection of memory usage statistics by mysqlnd which can be ; used to tune and monitor MySQL operations. mysqlnd.collect_memory_statistics = Off ; Records communication from all extensions using mysqlnd to the specified log ; file. ; http://php.net/mysqlnd.debug ;mysqlnd.debug = ; Defines which queries will be logged. ;mysqlnd.log_mask = 0 ; Default size of the mysqlnd memory pool, which is used by result sets. ;mysqlnd.mempool_default_size = 16000 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. ;mysqlnd.net_cmd_buffer_size = 2048 ; Size of a pre-allocated buffer used for reading data sent by the server in ; bytes. ;mysqlnd.net_read_buffer_size = 32768 ; Timeout for network requests in seconds. ;mysqlnd.net_read_timeout = 31536000 ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA ; key. ;mysqlnd.sha256_server_public_key = [OCI8] ; Connection: Enables privileged connections using external ; credentials (OCI_SYSOPER, OCI_SYSDBA) ; http://php.net/oci8.privileged-connect ;oci8.privileged_connect = Off ; Connection: The maximum number of persistent OCI8 connections per ; process. Using -1 means no limit. ; http://php.net/oci8.max-persistent ;oci8.max_persistent = -1 ; Connection: The maximum number of seconds a process is allowed to ; maintain an idle persistent connection. Using -1 means idle ; persistent connections will be maintained forever. ; http://php.net/oci8.persistent-timeout ;oci8.persistent_timeout = -1 ; Connection: The number of seconds that must pass before issuing a ; ping during oci_pconnect() to check the connection validity. When ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables ; pings completely. ; http://php.net/oci8.ping-interval ;oci8.ping_interval = 60 ; Connection: Set this to a user chosen connection class to be used ; for all pooled server requests with Oracle 11g Database Resident ; Connection Pooling (DRCP). To use DRCP, this value should be set to ; the same string for all web servers running the same application, ; the database pool must be configured, and the connection string must ; specify to use a pooled server. ;oci8.connection_class = ; High Availability: Using On lets PHP receive Fast Application ; Notification (FAN) events generated when a database node fails. The ; database must also be configured to post FAN events. ;oci8.events = Off ; Tuning: This option enables statement caching, and specifies how ; many statements to cache. Using 0 disables statement caching. ; http://php.net/oci8.statement-cache-size ;oci8.statement_cache_size = 20 ; Tuning: Enables statement prefetching and sets the default number of ; rows that will be fetched automatically after statement execution. ; http://php.net/oci8.default-prefetch ;oci8.default_prefetch = 100 ; Compatibility. Using On means oci_close() will not close ; oci_connect() and oci_new_connect() connections. ; http://php.net/oci8.old-oci-close-semantics ;oci8.old_oci_close_semantics = Off [PostgreSQL] ; Allow or prevent persistent links. ; http://php.net/pgsql.allow-persistent pgsql.allow_persistent = On ; Detect broken persistent links always with pg_pconnect(). ; Auto reset feature requires a little overheads. ; http://php.net/pgsql.auto-reset-persistent pgsql.auto_reset_persistent = Off ; Maximum number of persistent links. -1 means no limit. ; http://php.net/pgsql.max-persistent pgsql.max_persistent = -1 ; Maximum number of links (persistent+non persistent). -1 means no limit. ; http://php.net/pgsql.max-links pgsql.max_links = -1 ; Ignore PostgreSQL backends Notice message or not. ; Notice message logging require a little overheads. ; http://php.net/pgsql.ignore-notice pgsql.ignore_notice = 0 ; Log PostgreSQL backends Notice message or not. ; Unless pgsql.ignore_notice=0, module cannot log notice message. ; http://php.net/pgsql.log-notice pgsql.log_notice = 0 [bcmath] ; Number of decimal digits for all bcmath functions. ; http://php.net/bcmath.scale bcmath.scale = 0 [browscap] ; http://php.net/browscap ;browscap = extra/browscap.ini [Session] ; Handler used to store/retrieve data. ; http://php.net/session.save-handler session.save_handler = files ; Argument passed to save_handler. In the case of files, this is the path ; where data files are stored. Note: Windows users have to change this ; variable in order to use PHP's session functions. ; ; The path can be defined as: ; ; session.save_path = "N;/path" ; ; where N is an integer. Instead of storing all the session files in ; /path, what this will do is use subdirectories N-levels deep, and ; store the session data in those directories. This is useful if ; your OS has problems with many files in one directory, and is ; a more efficient layout for servers that handle many sessions. ; ; NOTE 1: PHP will not create this directory structure automatically. ; You can use the script in the ext/session dir for that purpose. ; NOTE 2: See the section on garbage collection below if you choose to ; use subdirectories for session storage ; ; The file storage module creates files using mode 600 by default. ; You can change that by using ; ; session.save_path = "N;MODE;/path" ; ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; http://php.net/session.save-path ;session.save_path = "/tmp" ; Whether to use strict session mode. ; Strict session mode does not accept an uninitialized session ID, and ; regenerates the session ID if the browser sends an uninitialized session ID. ; Strict mode protects applications from session fixation via a session adoption ; vulnerability. It is disabled by default for maximum compatibility, but ; enabling it is encouraged. ; https://wiki.php.net/rfc/strict_sessions session.use_strict_mode = 0 ; Whether to use cookies. ; http://php.net/session.use-cookies session.use_cookies = 1 ; http://php.net/session.cookie-secure ;session.cookie_secure = ; This option forces PHP to fetch and use a cookie for storing and maintaining ; the session id. We encourage this operation as it's very helpful in combating ; session hijacking when not specifying and managing your own session id. It is ; not the be-all and end-all of session hijacking defense, but it's a good start. ; http://php.net/session.use-only-cookies session.use_only_cookies = 1 ; Name of the session (used as cookie name). ; http://php.net/session.name session.name = PHPSESSID ; Initialize session on request startup. ; http://php.net/session.auto-start session.auto_start = 0 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. ; http://php.net/session.cookie-lifetime session.cookie_lifetime = 0 ; The path for which the cookie is valid. ; http://php.net/session.cookie-path session.cookie_path = / ; The domain for which the cookie is valid. ; http://php.net/session.cookie-domain session.cookie_domain = ; Whether or not to add the httpOnly flag to the cookie, which makes it ; inaccessible to browser scripting languages such as JavaScript. ; http://php.net/session.cookie-httponly session.cookie_httponly = ; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) ; Current valid values are "Strict", "Lax" or "None". When using "None", ; make sure to include the quotes, as `none` is interpreted like `false` in ini files. ; https://tools.ietf.org/html/draft-west-first-party-cookies-07 session.cookie_samesite = ; Handler used to serialize data. php is the standard serializer of PHP. ; http://php.net/session.serialize-handler session.serialize_handler = php ; Defines the probability that the 'garbage collection' process is started on every ; session initialization. The probability is calculated by using gc_probability/gc_divisor, ; e.g. 1/100 means there is a 1% chance that the GC process starts on each request. ; Default Value: 1 ; Development Value: 1 ; Production Value: 1 ; http://php.net/session.gc-probability session.gc_probability = 1 ; Defines the probability that the 'garbage collection' process is started on every ; session initialization. The probability is calculated by using gc_probability/gc_divisor, ; e.g. 1/100 means there is a 1% chance that the GC process starts on each request. ; For high volume production servers, using a value of 1000 is a more efficient approach. ; Default Value: 100 ; Development Value: 1000 ; Production Value: 1000 ; http://php.net/session.gc-divisor session.gc_divisor = 1000 ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 ; NOTE: If you are using the subdirectory option for storing session files ; (see session.save_path above), then garbage collection does *not* ; happen automatically. You will need to do your own garbage ; collection through a shell script, cron entry, or some other method. ; For example, the following script is the equivalent of setting ; session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): ; find /path/to/sessions -cmin +24 -type f | xargs rm ; Check HTTP Referer to invalidate externally stored URLs containing ids. ; HTTP_REFERER has to contain this substring for the session to be ; considered as valid. ; http://php.net/session.referer-check session.referer_check = ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. ; http://php.net/session.cache-limiter session.cache_limiter = nocache ; Document expires after n minutes. ; http://php.net/session.cache-expire session.cache_expire = 180 ; trans sid support is disabled by default. ; Use of trans sid may risk your users' security. ; Use this option with caution. ; - User may send URL contains active session ID ; to other person via. email/irc/etc. ; - URL that contains active session ID may be stored ; in publicly accessible computer. ; - User may access your site with the same session ID ; always using URL stored in browser's history or bookmarks. ; http://php.net/session.use-trans-sid session.use_trans_sid = 0 ; Set session ID character length. This value could be between 22 to 256. ; Shorter length than default is supported only for compatibility reason. ; Users should use 32 or more chars. ; http://php.net/session.sid-length ; Default Value: 32 ; Development Value: 26 ; Production Value: 26 session.sid_length = 26 ; The URL rewriter will look for URLs in a defined set of HTML tags. ;
is special; if you include them here, the rewriter will ; add a hidden field with the info which is otherwise appended ; to URLs. tag's action attribute URL will not be modified ; unless it is specified. ; Note that all valid entries require a "=", even if no value follows. ; Default Value: "a=href,area=href,frame=src,form=" ; Development Value: "a=href,area=href,frame=src,form=" ; Production Value: "a=href,area=href,frame=src,form=" ; http://php.net/url-rewriter.tags session.trans_sid_tags = "a=href,area=href,frame=src,form=" ; URL rewriter does not rewrite absolute URLs by default. ; To enable rewrites for absolute paths, target hosts must be specified ; at RUNTIME. i.e. use ini_set() ; tags is special. PHP will check action attribute's URL regardless ; of session.trans_sid_tags setting. ; If no host is defined, HTTP_HOST will be used for allowed host. ; Example value: php.net,www.php.net,wiki.php.net ; Use "," for multiple hosts. No spaces are allowed. ; Default Value: "" ; Development Value: "" ; Production Value: "" ;session.trans_sid_hosts="" ; Define how many bits are stored in each character when converting ; the binary hash data to something readable. ; Possible values: ; 4 (4 bits: 0-9, a-f) ; 5 (5 bits: 0-9, a-v) ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") ; Default Value: 4 ; Development Value: 5 ; Production Value: 5 ; http://php.net/session.hash-bits-per-character session.sid_bits_per_character = 5 ; Enable upload progress tracking in $_SESSION ; Default Value: On ; Development Value: On ; Production Value: On ; http://php.net/session.upload-progress.enabled ;session.upload_progress.enabled = On ; Cleanup the progress information as soon as all POST data has been read ; (i.e. upload completed). ; Default Value: On ; Development Value: On ; Production Value: On ; http://php.net/session.upload-progress.cleanup ;session.upload_progress.cleanup = On ; A prefix used for the upload progress key in $_SESSION ; Default Value: "upload_progress_" ; Development Value: "upload_progress_" ; Production Value: "upload_progress_" ; http://php.net/session.upload-progress.prefix ;session.upload_progress.prefix = "upload_progress_" ; The index name (concatenated with the prefix) in $_SESSION ; containing the upload progress information ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" ; http://php.net/session.upload-progress.name ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" ; How frequently the upload progress should be updated. ; Given either in percentages (per-file), or in bytes ; Default Value: "1%" ; Development Value: "1%" ; Production Value: "1%" ; http://php.net/session.upload-progress.freq ;session.upload_progress.freq = "1%" ; The minimum delay between updates, in seconds ; Default Value: 1 ; Development Value: 1 ; Production Value: 1 ; http://php.net/session.upload-progress.min-freq ;session.upload_progress.min_freq = "1" ; Only write session data when session data is changed. Enabled by default. ; http://php.net/session.lazy-write ;session.lazy_write = On [Assertion] ; Switch whether to compile assertions at all (to have no overhead at run-time) ; -1: Do not compile at all ; 0: Jump over assertion at run-time ; 1: Execute assertions ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1) ; Default Value: 1 ; Development Value: 1 ; Production Value: -1 ; http://php.net/zend.assertions zend.assertions = -1 ; Assert(expr); active by default. ; http://php.net/assert.active ;assert.active = On ; Throw an AssertionError on failed assertions ; http://php.net/assert.exception ;assert.exception = On ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) ; http://php.net/assert.warning ;assert.warning = On ; Don't bail out by default. ; http://php.net/assert.bail ;assert.bail = Off ; User-function to be called if an assertion fails. ; http://php.net/assert.callback ;assert.callback = 0 ; Eval the expression with current error_reporting(). Set to true if you want ; error_reporting(0) around the eval(). ; http://php.net/assert.quiet-eval ;assert.quiet_eval = 0 [COM] ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs ; http://php.net/com.typelib-file ;com.typelib_file = ; allow Distributed-COM calls ; http://php.net/com.allow-dcom ;com.allow_dcom = true ; autoregister constants of a component's typlib on com_load() ; http://php.net/com.autoregister-typelib ;com.autoregister_typelib = true ; register constants casesensitive ; http://php.net/com.autoregister-casesensitive ;com.autoregister_casesensitive = false ; show warnings on duplicate constant registrations ; http://php.net/com.autoregister-verbose ;com.autoregister_verbose = true ; The default character set code-page to use when passing strings to and from COM objects. ; Default: system ANSI code page ;com.code_page= [mbstring] ; language for internal character representation. ; This affects mb_send_mail() and mbstring.detect_order. ; http://php.net/mbstring.language ;mbstring.language = Japanese ; Use of this INI entry is deprecated, use global internal_encoding instead. ; internal/script encoding. ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding ;mbstring.internal_encoding = ; Use of this INI entry is deprecated, use global input_encoding instead. ; http input encoding. ; mbstring.encoding_translation = On is needed to use this setting. ; If empty, default_charset or input_encoding or mbstring.input is used. ; The precedence is: default_charset < input_encoding < mbsting.http_input ; http://php.net/mbstring.http-input ;mbstring.http_input = ; Use of this INI entry is deprecated, use global output_encoding instead. ; http output encoding. ; mb_output_handler must be registered as output buffer to function. ; If empty, default_charset or output_encoding or mbstring.http_output is used. ; The precedence is: default_charset < output_encoding < mbstring.http_output ; To use an output encoding conversion, mbstring's output handler must be set ; otherwise output encoding conversion cannot be performed. ; http://php.net/mbstring.http-output ;mbstring.http_output = ; enable automatic encoding translation according to ; mbstring.internal_encoding setting. Input chars are ; converted to internal encoding by setting this to On. ; Note: Do _not_ use automatic encoding translation for ; portable libs/applications. ; http://php.net/mbstring.encoding-translation ;mbstring.encoding_translation = Off ; automatic encoding detection order. ; "auto" detect order is changed according to mbstring.language ; http://php.net/mbstring.detect-order ;mbstring.detect_order = auto ; substitute_character used when character cannot be converted ; one from another ; http://php.net/mbstring.substitute-character ;mbstring.substitute_character = none ; overload(replace) single byte functions by mbstring functions. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), ; etc. Possible values are 0,1,2,4 or combination of them. ; For example, 7 for overload everything. ; 0: No overload ; 1: Overload mail() function ; 2: Overload str*() functions ; 4: Overload ereg*() functions ; http://php.net/mbstring.func-overload ;mbstring.func_overload = 0 ; enable strict encoding detection. ; Default: Off ;mbstring.strict_detection = On ; This directive specifies the regex pattern of content types for which mb_output_handler() ; is activated. ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) ;mbstring.http_output_conv_mimetype= ; This directive specifies maximum stack depth for mbstring regular expressions. It is similar ; to the pcre.recursion_limit for PCRE. ; Default: 100000 ;mbstring.regex_stack_limit=100000 ; This directive specifies maximum retry count for mbstring regular expressions. It is similar ; to the pcre.backtrack_limit for PCRE. ; Default: 1000000 ;mbstring.regex_retry_limit=1000000 [gd] ; Tell the jpeg decode to ignore warnings and try to create ; a gd image. The warning will then be displayed as notices ; disabled by default ; http://php.net/gd.jpeg-ignore-warning ;gd.jpeg_ignore_warning = 1 [exif] ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. ; With mbstring support this will automatically be converted into the encoding ; given by corresponding encode setting. When empty mbstring.internal_encoding ; is used. For the decode settings you can distinguish between motorola and ; intel byte order. A decode setting cannot be empty. ; http://php.net/exif.encode-unicode ;exif.encode_unicode = ISO-8859-15 ; http://php.net/exif.decode-unicode-motorola ;exif.decode_unicode_motorola = UCS-2BE ; http://php.net/exif.decode-unicode-intel ;exif.decode_unicode_intel = UCS-2LE ; http://php.net/exif.encode-jis ;exif.encode_jis = ; http://php.net/exif.decode-jis-motorola ;exif.decode_jis_motorola = JIS ; http://php.net/exif.decode-jis-intel ;exif.decode_jis_intel = JIS [Tidy] ; The path to a default tidy configuration file to use when using tidy ; http://php.net/tidy.default-config ;tidy.default_config = /usr/local/lib/php/default.tcfg ; Should tidy clean and repair output automatically? ; WARNING: Do not use this option if you are generating non-html content ; such as dynamic images ; http://php.net/tidy.clean-output tidy.clean_output = Off [soap] ; Enables or disables WSDL caching feature. ; http://php.net/soap.wsdl-cache-enabled soap.wsdl_cache_enabled=1 ; Sets the directory name where SOAP extension will put cache files. ; http://php.net/soap.wsdl-cache-dir soap.wsdl_cache_dir="/tmp" ; (time to live) Sets the number of second while cached file will be used ; instead of original one. ; http://php.net/soap.wsdl-cache-ttl soap.wsdl_cache_ttl=86400 ; Sets the size of the cache limit. (Max. number of WSDL files to cache) soap.wsdl_cache_limit = 5 [sysvshm] ; A default size of the shared memory segment ;sysvshm.init_mem = 10000 [ldap] ; Sets the maximum number of open links or -1 for unlimited. ldap.max_links = -1 [dba] ;dba.default_handler= [opcache] ; Determines if Zend OPCache is enabled ;opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP ;opcache.enable_cli=0 ; The OPcache shared memory storage size. ;opcache.memory_consumption=128 ; The amount of memory for interned strings in Mbytes. ;opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. ; Only numbers between 200 and 1000000 are allowed. ;opcache.max_accelerated_files=10000 ; The maximum percentage of "wasted" memory until a restart is scheduled. ;opcache.max_wasted_percentage=5 ; When this directive is enabled, the OPcache appends the current working ; directory to the script key, thus eliminating possible collisions between ; files with the same name (basename). Disabling the directive improves ; performance, but may break existing applications. ;opcache.use_cwd=1 ; When disabled, you must reset the OPcache manually or restart the ; webserver for changes to the filesystem to take effect. ;opcache.validate_timestamps=1 ; How often (in seconds) to check file timestamps for changes to the shared ; memory storage allocation. ("1" means validate once per second, but only ; once per request. "0" means always validate) ;opcache.revalidate_freq=2 ; Enables or disables file search in include_path optimization ;opcache.revalidate_path=0 ; If disabled, all PHPDoc comments are dropped from the code to reduce the ; size of the optimized code. ;opcache.save_comments=1 ; Allow file existence override (file_exists, etc.) performance feature. ;opcache.enable_file_override=0 ; A bitmask, where each bit enables or disables the appropriate OPcache ; passes ;opcache.optimization_level=0x7FFFBFFF ;opcache.dups_fix=0 ; The location of the OPcache blacklist file (wildcards allowed). ; Each OPcache blacklist file is a text file that holds the names of files ; that should not be accelerated. The file format is to add each filename ; to a new line. The filename may be a full path or just a file prefix ; (i.e., /var/www/x blacklists all the files and directories in /var/www ; that start with 'x'). Line starting with a ; are ignored (comments). ;opcache.blacklist_filename= ; Allows exclusion of large files from being cached. By default all files ; are cached. ;opcache.max_file_size=0 ; Check the cache checksum each N requests. ; The default value of "0" means that the checks are disabled. ;opcache.consistency_checks=0 ; How long to wait (in seconds) for a scheduled restart to begin if the cache ; is not being accessed. ;opcache.force_restart_timeout=180 ; OPcache error_log file name. Empty string assumes "stderr". ;opcache.error_log= ; All OPcache errors go to the Web server log. ; By default, only fatal errors (level 0) or errors (level 1) are logged. ; You can also enable warnings (level 2), info messages (level 3) or ; debug messages (level 4). ;opcache.log_verbosity_level=1 ; Preferred Shared Memory back-end. Leave empty and let the system decide. ;opcache.preferred_memory_model= ; Protect the shared memory from unexpected writing during script execution. ; Useful for internal debugging only. ;opcache.protect_memory=0 ; Allows calling OPcache API functions only from PHP scripts which path is ; started from specified string. The default "" means no restriction ;opcache.restrict_api= ; Mapping base of shared memory segments (for Windows only). All the PHP ; processes have to map shared memory into the same address space. This ; directive allows to manually fix the "Unable to reattach to base address" ; errors. ;opcache.mmap_base= ; Facilitates multiple OPcache instances per user (for Windows only). All PHP ; processes with the same cache ID and user share an OPcache instance. ;opcache.cache_id= ; Enables and sets the second level cache directory. ; It should improve performance when SHM memory is full, at server restart or ; SHM reset. The default "" disables file based caching. ;opcache.file_cache= ; Enables or disables opcode caching in shared memory. ;opcache.file_cache_only=0 ; Enables or disables checksum validation when script loaded from file cache. ;opcache.file_cache_consistency_checks=1 ; Implies opcache.file_cache_only=1 for a certain process that failed to ; reattach to the shared memory (for Windows only). Explicitly enabled file ; cache is required. ;opcache.file_cache_fallback=1 ; Enables or disables copying of PHP code (text segment) into HUGE PAGES. ; This should improve performance, but requires appropriate OS configuration. ;opcache.huge_code_pages=1 ; Validate cached file permissions. ;opcache.validate_permission=0 ; Prevent name collisions in chroot'ed environment. ;opcache.validate_root=0 ; If specified, it produces opcode dumps for debugging different stages of ; optimizations. ;opcache.opt_debug_level=0 ; Specifies a PHP script that is going to be compiled and executed at server ; start-up. ; http://php.net/opcache.preload ;opcache.preload= ; Preloading code as root is not allowed for security reasons. This directive ; facilitates to let the preloading to be run as another user. ; http://php.net/opcache.preload_user ;opcache.preload_user= ; Prevents caching files that are less than this number of seconds old. It ; protects from caching of incompletely updated files. In case all file updates ; on your site are atomic, you may increase performance by setting it to "0". ;opcache.file_update_protection=2 ; Absolute path used to store shared lockfiles (for *nix only). ;opcache.lockfile_path=/tmp [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. ;curl.cainfo = [openssl] ; The location of a Certificate Authority (CA) file on the local filesystem ; to use when verifying the identity of SSL/TLS peers. Most users should ; not specify a value for this directive as PHP will attempt to use the ; OS-managed cert stores in its absence. If specified, this value may still ; be overridden on a per-stream basis via the "cafile" SSL stream context ; option. ;openssl.cafile= ; If openssl.cafile is not specified or if the CA file is not found, the ; directory pointed to by openssl.capath is searched for a suitable ; certificate. This value must be a correctly hashed certificate directory. ; Most users should not specify a value for this directive as PHP will ; attempt to use the OS-managed cert stores in its absence. If specified, ; this value may still be overridden on a per-stream basis via the "capath" ; SSL stream context option. ;openssl.capath= [ffi] ; FFI API restriction. Possible values: ; "preload" - enabled in CLI scripts and preloaded files (default) ; "false" - always disabled ; "true" - always enabled ;ffi.enable=preload ; List of headers files to preload, wildcard patterns allowed. ;ffi.preload= ================================================ FILE: appdata/php/php8/pear.conf ================================================ #PEAR_Config 0.9 a:33:{s:9:"cache_dir";s:15:"/tmp/pear/cache";s:15:"default_channel";s:12:"pear.php.net";s:16:"preferred_mirror";s:12:"pear.php.net";s:13:"remote_config";s:0:"";s:13:"auto_discover";i:0;s:13:"master_server";s:12:"pear.php.net";s:10:"http_proxy";s:0:"";s:7:"php_dir";s:18:"/usr/local/lib/php";s:7:"ext_dir";s:55:"/usr/local/lib/php/extensions/no-debug-non-zts-20240924";s:7:"doc_dir";s:22:"/usr/local/lib/php/doc";s:7:"bin_dir";s:14:"/usr/local/bin";s:8:"data_dir";s:23:"/usr/local/lib/php/data";s:7:"cfg_dir";s:22:"/usr/local/lib/php/cfg";s:7:"www_dir";s:25:"/usr/local/lib/php/htdocs";s:7:"man_dir";s:28:"/usr/local/lib/php/local/man";s:8:"test_dir";s:23:"/usr/local/lib/php/test";s:8:"temp_dir";s:14:"/tmp/pear/temp";s:12:"download_dir";s:18:"/tmp/pear/download";s:7:"php_bin";s:18:"/usr/local/bin/php";s:10:"php_prefix";s:0:"";s:10:"php_suffix";s:0:"";s:7:"php_ini";s:0:"";s:12:"metadata_dir";s:0:"";s:8:"username";s:0:"";s:8:"password";s:0:"";s:7:"verbose";i:1;s:15:"preferred_state";s:6:"stable";s:5:"umask";i:18;s:9:"cache_ttl";i:3600;s:8:"sig_type";s:3:"gpg";s:7:"sig_bin";s:18:"/usr/local/bin/gpg";s:9:"sig_keyid";s:0:"";s:10:"sig_keydir";s:23:"/usr/local/etc/pearkeys";} ================================================ FILE: appdata/php/php8/php/conf.d/extensions.ini ================================================ zend_extension=opcache extension=amqp extension=bcmath extension=bz2 extension=calendar extension=exif extension=gd extension=gettext extension=imagick extension=intl extension=ldap extension=mysqli extension=pdo_mysql extension=pdo_pgsql extension=pgsql extension=redis extension=soap extension=sockets extension=xsl extension=zip ================================================ FILE: appdata/php/php8/php/conf.d/extensions.ini.example ================================================ extension=gd extension=mysqli extension=sodium extension=pdo_mysql extension=exif extension=zip extension=imagick extension=mcrypt extension=pspell extension=redis extension=sockets extension=ssh2 zend_extension=opcache ================================================ FILE: appdata/php/php8/php/conf.d/opcache.ini ================================================ ; Claude Sonnet 3.5 - February 4, 2025 opcache.enable=1 opcache.memory_consumption=512 opcache.interned_strings_buffer=16 opcache.max_accelerated_files=20000 opcache.revalidate_freq=3600 opcache.validate_timestamps=0 opcache.max_wasted_percentage=10 opcache.enable_cli=0 opcache.save_comments=1 ; WordPress specific opcache.fast_shutdown=1 opcache.consistency_checks=0 ================================================ FILE: appdata/php/php8/php/conf.d/opcache.ini.example ================================================ opcache.enable=1 ; 0 means it will check on every request ;Development = 0. Production = 1 or comment out (default 1) opcache.revalidate_freq=0 ; 0 is irrelevant if opcache.validate_timestamps=0 which is desirable in production ;Development = 1. Production = 0 or comment out (default 0) opcache.validate_timestamps=1 ;Development = 1. Production0 or comment out (default 0) opcache.consistency_checks=1 opcache.max_accelerated_files=20000 opcache.memory_consumption=192 opcache.max_wasted_percentage=10 opcache.interned_strings_buffer=16 opcache.fast_shutdown=1 ================================================ FILE: appdata/php/php8/php/conf.d/opcache.ini.new ================================================ ; Claude Sonnet 3.5 opcache.enable=0 opcache.memory_consumption=256 opcache.interned_strings_buffer=16 opcache.max_accelerated_files=20000 opcache.revalidate_freq=3600 opcache.validate_timestamps=0 opcache.max_wasted_percentage=10 opcache.enable_cli=0 opcache.save_comments=1 ; WordPress specific opcache.fast_shutdown=1 opcache.consistency_checks=0 ================================================ FILE: appdata/php/php8/php/conf.d/opcache.ini.old ================================================ opcache.enable=1 ; 0 means it will check on every request ;Development = 0. Production = 1 or comment out (default 1) opcache.revalidate_freq=1 ; 0 is irrelevant if opcache.validate_timestamps=0 which is desirable in production ;Development = 1. Production = 0 or comment out (default 0) opcache.validate_timestamps=0 ;Development = 1. Production =0 or comment out (default 0) opcache.consistency_checks=0 opcache.max_accelerated_files=20000 opcache.memory_consumption=128 opcache.max_wasted_percentage=10 opcache.interned_strings_buffer=16 opcache.fast_shutdown=1 ================================================ FILE: appdata/php/php8/php/php.ini ================================================ ; Memory memory_limit = 256M max_execution_time = 300 max_input_time = 60 max_input_vars = 3000 ; File Upload upload_max_filesize = 8M post_max_size = 18M max_file_uploads = 20 ; Error Handling error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off display_startup_errors = Off log_errors = On error_log = /var/log/php/php-error.log ; Performance realpath_cache_size = 4096k realpath_cache_ttl = 120 ; Session session.save_handler = files session.gc_probability = 1 session.gc_divisor = 1000 ================================================ FILE: appdata/php/php8/php-fpm.conf ================================================ ;;;;;;;;;;;;;;;;;;;;; ; FPM Configuration ; ;;;;;;;;;;;;;;;;;;;;; ; All relative paths in this configuration file are relative to PHP's install ; prefix (/usr/local). This prefix can be dynamically changed by using the ; '-p' argument from the command line. ;;;;;;;;;;;;;;;;;; ; Global Options ; ;;;;;;;;;;;;;;;;;; [global] ; Pid file ; Note: the default prefix is /usr/local/var ; Default Value: none ;pid = run/php-fpm.pid ; Error log file ; If it's set to "syslog", log is sent to syslogd instead of being written ; into a local file. ; Note: the default prefix is /usr/local/var ; Default Value: log/php-fpm.log ;error_log = log/php-fpm.log ; syslog_facility is used to specify what type of program is logging the ; message. This lets syslogd specify that messages from different facilities ; will be handled differently. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON) ; Default Value: daemon ;syslog.facility = daemon ; syslog_ident is prepended to every message. If you have multiple FPM ; instances running on the same server, you can change the default value ; which must suit common needs. ; Default Value: php-fpm ;syslog.ident = php-fpm ; Log level ; Possible Values: alert, error, warning, notice, debug ; Default Value: notice ;log_level = notice ; Log limit on number of characters in the single line (log entry). If the ; line is over the limit, it is wrapped on multiple lines. The limit is for ; all logged characters including message prefix and suffix if present. However ; the new line character does not count into it as it is present only when ; logging to a file descriptor. It means the new line character is not present ; when logging to syslog. ; Default Value: 1024 ;log_limit = 4096 ; Log buffering specifies if the log line is buffered which means that the ; line is written in a single write operation. If the value is false, then the ; data is written directly into the file descriptor. It is an experimental ; option that can potentially improve logging performance and memory usage ; for some heavy logging scenarios. This option is ignored if logging to syslog ; as it has to be always buffered. ; Default value: yes ;log_buffering = no ; If this number of child processes exit with SIGSEGV or SIGBUS within the time ; interval set by emergency_restart_interval then FPM will restart. A value ; of '0' means 'Off'. ; Default Value: 0 ;emergency_restart_threshold = 0 ; Interval of time used by emergency_restart_interval to determine when ; a graceful restart will be initiated. This can be useful to work around ; accidental corruptions in an accelerator's shared memory. ; Available Units: s(econds), m(inutes), h(ours), or d(ays) ; Default Unit: seconds ; Default Value: 0 ;emergency_restart_interval = 0 ; Time limit for child processes to wait for a reaction on signals from master. ; Available units: s(econds), m(inutes), h(ours), or d(ays) ; Default Unit: seconds ; Default Value: 0 ;process_control_timeout = 0 ; The maximum number of processes FPM will fork. This has been designed to control ; the global number of processes when using dynamic PM within a lot of pools. ; Use it with caution. ; Note: A value of 0 indicates no limit ; Default Value: 0 ; process.max = 128 ; Specify the nice(2) priority to apply to the master process (only if set) ; The value can vary from -19 (highest priority) to 20 (lowest priority) ; Note: - It will only work if the FPM master process is launched as root ; - The pool process will inherit the master process priority ; unless specified otherwise ; Default Value: no set ; process.priority = -19 ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. ; Default Value: yes ;daemonize = yes ; Set open file descriptor rlimit for the master process. ; Default Value: system defined value ;rlimit_files = 1024 ; Set max core size rlimit for the master process. ; Possible Values: 'unlimited' or an integer greater or equal to 0 ; Default Value: system defined value ;rlimit_core = 0 ; Specify the event mechanism FPM will use. The following is available: ; - select (any POSIX os) ; - poll (any POSIX os) ; - epoll (linux >= 2.5.44) ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0) ; - port (Solaris >= 10) ; Default Value: not set (auto detection) ;events.mechanism = epoll ; When FPM is built with systemd integration, specify the interval, ; in seconds, between health report notification to systemd. ; Set to 0 to disable. ; Available Units: s(econds), m(inutes), h(ours) ; Default Unit: seconds ; Default value: 10 ;systemd_interval = 10 ;;;;;;;;;;;;;;;;;;;; ; Pool Definitions ; ;;;;;;;;;;;;;;;;;;;; ; Multiple pools of child processes may be started with different listening ; ports and different management options. The name of the pool will be ; used in logs and stats. There is no limitation on the number of pools which ; FPM can handle. Your system will tell you anyway :) ; Include one or more files. If glob(3) exists, it is used to include a bunch of ; files from a glob(3) pattern. This directive can be used everywhere in the ; file. ; Relative path can also be used. They will be prefixed by: ; - the global prefix if it's been set (-p argument) ; - /usr/local otherwise include=etc/php-fpm.d/*.conf ================================================ FILE: appdata/php/php8/php-fpm.d/docker.conf ================================================ [global] ; error_log = /proc/self/fd/2 error_log = /var/log/php/error.log ; access_log = /var/log/php/access.log ; https://github.com/docker-library/php/pull/725#issuecomment-443540114 log_limit = 8192 [www] ; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work. ; https://bugs.php.net/bug.php?id=73886 access.log = /proc/self/fd/2 ; access.log = /var/log/php/www-access.log clear_env = no ; Ensure worker stdout and stderr are sent to the main error log. catch_workers_output = yes decorate_workers_output = no [wordpress] ; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work. ; https://bugs.php.net/bug.php?id=73886 access.log = /proc/self/fd/2 ; access.log = /var/log/php/wordpress-access.log clear_env = no ; Ensure worker stdout and stderr are sent to the main error log. catch_workers_output = yes decorate_workers_output = no ================================================ FILE: appdata/php/php8/php-fpm.d/wordpress.conf ================================================ ; USE THE ONE BELOW IF IN FUTURE YOU DECIDE TO USE A SEPARATE PHP PROCESS FOR NON-WP SITES. REMEMBER TO CHANGE THE PORT 9000 TO AVOID CONFLICT. Also the name [WWW] ; Claude Sonnet 3.5 - February 4, 2025 [wordpress] user = www-data group = www-data listen = 127.0.0.1:9001 pm = dynamic pm.max_children = 50 pm.start_servers = 8 pm.min_spare_servers = 4 pm.max_spare_servers = 12 ; pm.max_requests = 500 ; possibly causing slow down plugin activation/deactivation pm.process_idle_timeout = 10s ; possibly causing slow down plugin activation/deactivation request_terminate_timeout = 300s ; possibly causing slow down plugin activation/deactivation php_admin_value[error_log] = /var/log/php/wordpress-error.log php_admin_flag[log_errors] = on ================================================ FILE: appdata/php/php8/php-fpm.d/www.conf ================================================ ; USE THE ONE BELOW IF IN FUTURE YOU DECIDE TO USE A SEPARATE PHP PROCESS FOR NON-WP SITES. REMEMBER TO CHANGE THE PORT 9000 TO AVOID CONFLICT. Also the name [WWW] ; Claude Sonnet 3.5 - February 4, 2025 [www] user = www-data group = www-data listen = 127.0.0.1:9000 pm = dynamic pm.max_children = 20 pm.start_servers = 4 pm.min_spare_servers = 2 pm.max_spare_servers = 6 ; pm.max_requests = 500 ; possibly causing slow down plugin activation/deactivation pm.process_idle_timeout = 10s ; possibly causing slow down plugin activation/deactivation request_terminate_timeout = 300s ; possibly causing slow down plugin activation/deactivation php_admin_value[error_log] = /var/log/php/www-error.log php_admin_flag[log_errors] = on ================================================ FILE: appdata/php/php8/php-fpm.d/zz-docker.conf ================================================ [global] daemonize = no [www] listen = 9000 [wordpress] listen = 9001 ================================================ FILE: appdata/picard/filenaming_script.example ================================================ $noop( *** BASED ON https://community.metabrainz.org/t/repository-for-neat-file-name-string-patterns-and-tagger-script-snippets/2786/25 *** ) $noop( *** DO NOT EDIT THE AREA BELOW | EDITABLE AREA WILL BE AT THE VERY BOTTOM *** ) $set(MainFolder1,-= $upper($left(%albumartist%,1)) =-/) $set(MainFolder2,-= $upper($left(%albumartistsort%,1)) =-/) $set(MainFolder3,) $set(Artist1,$replace($rreplace(%albumartist%,[_:*?"<>|],-),?,)/) $set(Artist2,$replace($rreplace(%albumartistsort%,[_:*?"<>|],-),?,)/) $set(Album1,$replace($rreplace([$left(%date%,4)] %album%,[_:*?"<>|], -),?,)$if(%date%,$if(%album%, ))/) $set(Album1,$if(%date%,$if(%album%, )[$left(%date%,4)]) $replace($rreplace(%album%,[_:*?"<>|], -),?,) - $upper(%_extension%)/) $set(Album2,$replace($rreplace(%album%,[_:*?"<>|], -),?,)/) $set(MultiDisc1,$if($gt(%totaldiscs%,1),Disc $num(%discnumber%,1)/) $set(MultiDisc2,) $set(PreTitle1,$replace($rreplace(%albumartist% - %album% -,[_:*?"<>|], -),?,)) $set(PreTitle2,) $set(Track1, $num(%tracknumber%,2) - ) $set(Track2, $num(%discnumber%,1)-$num(%tracknumber%,2) - )) $set(Title,$replace($rreplace(%title%,[_:*?"<>|],),?,)) $noop( *** DO NOT EDIT THE AREA ABOVE| EDITABLE AREA IS JUST BELOW *** ) $noop( *** The Following will use the example of artist: Amy Winehouse and album: Back to Black *** ) $noop( *** Default output: -=A =-/Amy Winehouse/Back to Black [2007]/Disc 1/Amy Winehouse - Back to Black - 01 - Rehab *** ) $noop( *** Change the NUMERICAL value ONLY! Example: %MainFolder1% would be changed to %MainFolder2% *** ) $noop( *** Only change the numerical value to either 1 or 2, anything else will mess things up. *** ) %MainFolder3% $noop( OPTION 1 -= A=- | OPTION 2 -= W =- | OPTION 3 = No single character folder will be created. ) %Artist1% $noop( OPTION 1 = Amy WineHouse| OPTION 2 = Winehouse, Amy ) %Album1% $noop( OPTION 1 = [2007] Back to Black | OPTION 2 = Back to Black ) %MultiDisc2% $noop( OPTION 1 = If album has more than 1 Disc, then add Disc folders | OPTION 2 = Do not sort by Disc, put all files into a single folder. ) %PreTitle2% $noop( OPTION 1 = Show Artist and Album in the track title | OPTION 2 = Do not display Artist or Album) %Track2% $noop( OPTION 1 = Track Number: 01 | OPTION 2: Track Number: 1-01-> This is best if MultiDisc is set to 2, because you will have 2 track numbers as 01 - *track names*, etc. ) %Title% $noop( NO OPTION - Just display the name of the track. ) ================================================ FILE: appdata/rclone/rclone-logrotate.conf.example ================================================ /home/USER/docker/appdata/rclone/logs/*.log { daily rotate 7 notifempty missingok compress delaycompress su USER USER create 0664 USER USER size 20M } ================================================ FILE: appdata/rclone/rclone.conf.example ================================================ [shb-drive] type = drive scope = drive token = {"access_token":"blah_blah_blah","expiry":"2021-02-12T22:37:02.490073796-05:00"} root_folder_id = blah_blah_blah client_id = blah_blah_blah client_secret = blah_blah_blah [shb-crypt] type = crypt remote = shb-drive:crypt password = blah_blah_blah password2 = blah_blah_blah ================================================ FILE: appdata/traefik2/rules/ds918/app-ds918-dsm-oauth.yml.example ================================================ http: routers: synology-rtr: rule: "Host(`dsm.{{env "DOMAINNAME_DS918"}}`)" entryPoints: - https middlewares: - chain-oauth service: synology-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: synology-svc: loadBalancer: servers: - url: "http://192.168.1.254:5000" ================================================ FILE: appdata/traefik2/rules/ds918/app-ds918-video-oauth.yml.example ================================================ http: routers: synology-video-rtr: rule: "Host(`video.{{env "DOMAINNAME_DS918"}}`)" entryPoints: - https middlewares: - chain-oauth service: synology-video-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: synology-video-svc: loadBalancer: servers: - url: "http://192.168.1.254:5003" ================================================ FILE: appdata/traefik2/rules/ds918/chain-basic-auth.yml ================================================ http: middlewares: chain-basic-auth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-basic-auth - middlewares-compress ================================================ FILE: appdata/traefik2/rules/ds918/chain-no-auth.yml ================================================ http: middlewares: chain-no-auth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-compress ================================================ FILE: appdata/traefik2/rules/ds918/chain-oauth-external.yml ================================================ http: middlewares: chain-oauth-external: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth-external - middlewares-compress ================================================ FILE: appdata/traefik2/rules/ds918/chain-oauth.yml ================================================ http: middlewares: chain-oauth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth - middlewares-compress ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-basic-auth.yml ================================================ http: middlewares: middlewares-basic-auth: basicAuth: # users: # - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1" usersFile: "/run/secrets/basic_auth_credentials" realm: "Traefik 2 Basic Auth" ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-buffering.yml ================================================ http: middlewares: middlewares-buffering: buffering: maxResponseBodyBytes: 2000000 maxRequestBodyBytes: 10485760 memRequestBodyBytes: 2097152 memResponseBodyBytes: 2097152 retryExpression: "IsNetworkError() && Attempts() <= 2" ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-compress.yml ================================================ http: middlewares: middlewares-compress: compress: {} ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-oauth-external.yml ================================================ http: middlewares: middlewares-oauth-external: forwardAuth: address: "https://oauth.{{env "DOMAINNAME_DS918"}}" trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-oauth.yml ================================================ http: middlewares: middlewares-oauth: forwardAuth: address: "http://oauth:4181" # Make sure you have the OAuth service in docker-compose.yml trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-rate-limit.yml ================================================ http: middlewares: middlewares-rate-limit: rateLimit: average: 100 burst: 50 ================================================ FILE: appdata/traefik2/rules/ds918/middlewares-secure-headers.yml ================================================ http: middlewares: middlewares-secure-headers: headers: accessControlAllowMethods: - GET - OPTIONS - PUT accessControlMaxAge: 100 hostsProxyHeaders: - "X-Forwarded-Host" # sslRedirect: true #replaced with middlewares-https-redirectscheme for v2.5.x stsSeconds: 63072000 stsIncludeSubdomains: true stsPreload: true forceSTSHeader: true # frameDeny: true #overwritten by customFrameOptionsValue customFrameOptionsValue: "allow-from https:{{env "DOMAINNAME_DS918"}}" #CSP takes care of this but may be needed for organizr. contentTypeNosniff: true browserXssFilter: true # sslForceHost: true # add sslHost to all of the services # sslHost: "{{env "DOMAINNAME_DS918"}}" referrerPolicy: "same-origin" # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk. # the below line also breaks some apps due to 'none' - sonarr, radarr, etc. # contentSecurityPolicy: "frame-ancestors '*.{{env "DOMAINNAME_DS918"}}:*';object-src 'none';script-src 'none';" # Line below, featurePolicy, was deprecated in v2.5.x in favor permissionPolicy # featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';" permissionsPolicy: "camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=()" customResponseHeaders: X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex," server: "" # https://community.traefik.io/t/how-to-make-websockets-work-with-traefik-2-0-setting-up-rancher/1732 # X-Forwarded-Proto: "https" ================================================ FILE: appdata/traefik2/rules/ds918/tls-opts.yml ================================================ tls: options: tls-opts: minVersion: VersionTLS12 cipherSuites: - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 - TLS_AES_128_GCM_SHA256 - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 - TLS_FALLBACK_SCSV # Client is doing version fallback. See RFC 7507 curvePreferences: - CurveP521 - CurveP384 sniStrict: true ================================================ FILE: appdata/traefik2/rules/hs/app-adguard-home-authelia.yml.example ================================================ http: routers: adguard-rtr: rule: "Host(`ag.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-authelia service: adguard-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: adguard-svc: loadBalancer: servers: - url: "http://ADGUARD-CLOUD-SERVER-IP:80" ================================================ FILE: appdata/traefik2/rules/hs/app-adguard-home-oauth.yml.example ================================================ http: routers: adguard-rtr: rule: "Host(`ag.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-oauth service: adguard-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: adguard-svc: loadBalancer: servers: - url: "http://ADGUARD-CLOUD-SERVER-IP:80" ================================================ FILE: appdata/traefik2/rules/hs/app-haos-no-auth.yml.example ================================================ http: routers: haos-rtr: rule: "Host(`haos.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-no-auth service: haos-svc tls: certResolver: dns-cloudflare services: haos-svc: loadBalancer: servers: - url: "http://192.168.1.123:8123" # or whatever your external host's IP:port is ================================================ FILE: appdata/traefik2/rules/hs/app-pihole-oauth.yml.example ================================================ http: routers: pihole-rtr: rule: "Host(`pihole.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-oauth - pihole-add-admin service: pihole-svc tls: certResolver: dns-cloudflare middlewares: pihole-add-admin: addPrefix: prefix: "/admin" services: pihole-svc: loadBalancer: servers: - url: "http://192.168.1.26:80" # or whatever your external host's IP:port is ================================================ FILE: appdata/traefik2/rules/hs/app-plex-no-auth.yml.example ================================================ http: routers: splex-rtr: rule: "Host(`splex.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-oauth service: splex-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: splex-svc: loadBalancer: servers: - url: "http://192.168.1.238:32400" ================================================ FILE: appdata/traefik2/rules/hs/app-proxmox-ve-oauth.yml.example ================================================ http: routers: proxmox-rtr: rule: "Host(`pve.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-oauth service: proxmox-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: proxmox-svc: loadBalancer: passHostHeader: true serversTransport: "pve" servers: - url: "https://192.168.1.100:8006/" serversTransports: pve: insecureSkipVerify: true ================================================ FILE: appdata/traefik2/rules/hs/app-tautulli-with-auth-bypass.yml.example ================================================ http: routers: tautulli-rtr: rule: "Host(`tautulli.{{env "DOMAINNAME_HS"}}`)" priority: 99 entryPoints: - websecure middlewares: - chain-oauth service: tautulli-svc tautulli-rtr-bypass: # rule: "Host(`tautulli.$DOMAINNAME_HS`) && Header(`traefik-auth-bypass-key`, `$TRAEFIK_AUTH_BYPASS_KEY`)" # Bypass Auth for LunaSea on iOS rule: "Host(`tautulli.$DOMAINNAME_HS`) && (Header(`X-Api-Key`, `$TAUTULLI_API_KEY`) || Query(`apikey`, `$TAUTULLI_API_KEY`))" priority: 100 entryPoints: - websecure middlewares: - chain-no-auth service: tautulli-svc services: tautulli-svc: loadBalancer: servers: - url: "http://192.168.1.111:8181" ================================================ FILE: appdata/traefik2/rules/hs/app-unifi-controller-authelia.example ================================================ http: routers: unifi-rtr: rule: "Host(`unifi.{{env "DOMAINNAME_HS"}}`)" entryPoints: - websecure middlewares: - chain-authelia service: unifi-svc tls: certResolver: dns-cloudflare options: tls-opts@file services: unifi-svc: loadBalancer: passHostHeader: true serversTransport: "pve" servers: - url: "https://192.168.1.100:8443/" serversTransports: pve: insecureSkipVerify: true ================================================ FILE: appdata/traefik2/rules/hs/chain-authelia.yml ================================================ http: middlewares: chain-authelia: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-authelia ================================================ FILE: appdata/traefik2/rules/hs/chain-basic-auth.yml ================================================ http: middlewares: chain-basic-auth: chain: middlewares: - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-basic-auth #- middlewares-compress ================================================ FILE: appdata/traefik2/rules/hs/chain-no-auth-no-crowdsec.yml ================================================ http: middlewares: chain-no-auth-no-crowdsec: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers #- middlewares-compress ================================================ FILE: appdata/traefik2/rules/hs/chain-no-auth.yml ================================================ http: middlewares: chain-no-auth: chain: middlewares: #- middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers #- middlewares-compress ================================================ FILE: appdata/traefik2/rules/hs/chain-oauth-external.yml ================================================ http: middlewares: chain-oauth-external: chain: middlewares: - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth-external #- middlewares-compress ================================================ FILE: appdata/traefik2/rules/hs/chain-oauth-no-crowdsec.yml ================================================ http: middlewares: chain-oauth-no-crowdsec: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth #- middlewares-compress ================================================ FILE: appdata/traefik2/rules/hs/chain-oauth.yml ================================================ http: middlewares: chain-oauth: chain: middlewares: #- middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth - middlewares-compress ================================================ FILE: appdata/traefik2/rules/hs/domain-passthrough.yml.example ================================================ tcp: routers: synology-traefik-rtr: entryPoints: - websecure rule: "HostSNIRegexp(`{{env "DOMAINNAME_DS918"}}`, `{subdomain:[a-z]+}.{{env "DOMAINNAME_DS918"}}`)" service: synology-traefik-svc tls: passthrough: true services: synology-traefik-svc: loadBalancer: servers: - address: "192.168.1.254:443" ================================================ FILE: appdata/traefik2/rules/hs/middlewares-authelia.yml ================================================ http: middlewares: middlewares-authelia: forwardAuth: address: "http://authelia:9091/api/verify?rd=https://authelia.{{env "DOMAINNAME_HS"}}" trustForwardHeader: true authResponseHeaders: - "Remote-User" - "Remote-Groups" ================================================ FILE: appdata/traefik2/rules/hs/middlewares-basic-auth.yml ================================================ http: middlewares: middlewares-basic-auth: basicAuth: # users: # - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1" usersFile: "/run/secrets/basic_auth_credentials" realm: "Traefik 2 Basic Auth" ================================================ FILE: appdata/traefik2/rules/hs/middlewares-buffering.yml ================================================ http: middlewares: middlewares-buffering: buffering: maxResponseBodyBytes: 2000000 maxRequestBodyBytes: 10485760 memRequestBodyBytes: 2097152 memResponseBodyBytes: 2097152 retryExpression: "IsNetworkError() && Attempts() <= 2" ================================================ FILE: appdata/traefik2/rules/hs/middlewares-compress.yml ================================================ http: middlewares: middlewares-compress: compress: {} ================================================ FILE: appdata/traefik2/rules/hs/middlewares-oauth-external.yml ================================================ http: middlewares: middlewares-oauth-external: forwardAuth: address: "https://oauth.{{env "DOMAINNAME_HS"}}" # Make sure you have the OAuth service in a remote server trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" ================================================ FILE: appdata/traefik2/rules/hs/middlewares-oauth.yml ================================================ http: middlewares: middlewares-oauth: forwardAuth: address: "http://oauth:4181" # Make sure you have the OAuth service in docker-compose.yml trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" ================================================ FILE: appdata/traefik2/rules/hs/middlewares-rate-limit.yml ================================================ http: middlewares: middlewares-rate-limit: rateLimit: average: 100 burst: 50 ================================================ FILE: appdata/traefik2/rules/hs/middlewares-secure-headers.yml ================================================ http: middlewares: middlewares-secure-headers: headers: accessControlAllowMethods: - GET - OPTIONS - PUT accessControlMaxAge: 100 hostsProxyHeaders: - "X-Forwarded-Host" stsSeconds: 63072000 stsIncludeSubdomains: true stsPreload: true # forceSTSHeader: true # This is a good thing but it can be tricky. Enable after everything works. customFrameOptionsValue: SAMEORIGIN # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options contentTypeNosniff: true browserXssFilter: true referrerPolicy: "same-origin" permissionsPolicy: "camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=()" customResponseHeaders: X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex," # disable search engines from indexing home server server: "" # hide server info from visitors ================================================ FILE: appdata/traefik2/rules/hs/middlewares-traefik-bouncer.yml ================================================ http: middlewares: middlewares-traefik-bouncer: forwardAuth: address: "http://traefik-bouncer:8080/api/v1/forwardAuth" # Make sure you have the traefik-bouncer service in docker-compose.yml trustForwardHeader: true ================================================ FILE: appdata/traefik2/rules/hs/tls-opts.yml ================================================ tls: options: tls-opts: minVersion: VersionTLS12 cipherSuites: - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 - TLS_AES_128_GCM_SHA256 - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 - TLS_FALLBACK_SCSV # Client is doing version fallback. See RFC 7507 curvePreferences: - CurveP521 - CurveP384 sniStrict: true ================================================ FILE: appdata/traefik2/rules/toml/app-hassio.toml.example ================================================ [http.routers] [http.routers.hassio-rtr] entryPoints = ["https"] rule = "HostHeader(`hassio.example.com`)" service = "hassio-svc" middlewares = ["chain-no-auth"] [http.routers.hassio-rtr.tls] certresolver = "dns-cloudflare" [http.services] [http.services.hassio-svc] [http.services.hassio-svc.loadBalancer] passHostHeader = true [[http.services.hassio-svc.loadBalancer.servers]] url = "http://HASSIO-IP:8123" # or whatever your external host's IP:port is ================================================ FILE: appdata/traefik2/rules/toml/app-pihole.toml.example ================================================ [http.routers] [http.routers.pihole-rtr] entryPoints = ["https"] rule = "HostHeader(`pihole.example.com`)" service = "pihole-svc" middlewares = ["chain-authelia", "pihole-add-admin"] [http.routers.pihole-rtr.tls] certresolver = "dns-cloudflare" [http.middlewares] [http.middlewares.pihole-add-admin.addPrefix] prefix = "/admin" [http.services] [http.services.pihole-svc] [http.services.pihole-svc.loadBalancer] passHostHeader = true [[http.services.pihole-svc.loadBalancer.servers]] url = "http://PIHOLE-IP:80" # or whatever your external host's IP:port is ================================================ FILE: appdata/traefik2/rules/toml/app-unifi.toml.example ================================================ [http.routers] [http.routers.unifi-rtr] entryPoints = ["https"] rule = "Host(`unifi.example.com`)" # will only work with cloudflare Full SSL (not Strict) service = "unifi-svc" middlewares = ["chain-authelia"] [http.routers.unifi-rtr.tls] certresolver = "dns-cloudflare" [http.services] [http.services.unifi-svc] [http.services.unifi-svc.loadBalancer] passHostHeader = true [[http.services.unifi-svc.loadBalancer.servers]] "https://192.168.5.254:8443" # or whatever your external host's IP:port is ================================================ FILE: appdata/traefik2/rules/toml/middlewares-chains.toml.example ================================================ [http.middlewares] [http.middlewares.chain-no-auth] [http.middlewares.chain-no-auth.chain] middlewares = [ "middlewares-rate-limit", "middlewares-https-redirectscheme", "middlewares-secure-headers"] [http.middlewares.chain-basic-auth] [http.middlewares.chain-basic-auth.chain] middlewares = [ "middlewares-rate-limit", "middlewares-https-redirectscheme", "middlewares-secure-headers", "middlewares-basic-auth"] [http.middlewares.chain-oauth] [http.middlewares.chain-oauth.chain] middlewares = [ "middlewares-rate-limit", "middlewares-https-redirectscheme", "middlewares-secure-headers", "middlewares-oauth"] [http.middlewares.chain-authelia] [http.middlewares.chain-authelia.chain] middlewares = [ "middlewares-rate-limit", "middlewares-https-redirectscheme", "middlewares-secure-headers", "middlewares-authelia"] [http.middlewares.chain-nextcloud] [http.middlewares.chain-nextcloud.chain] middlewares = [ "middlewares-rate-limit", "middlewares-https-redirectscheme", "nextcloud-middlewares-secure-headers", "nextcloud-redirect"] ================================================ FILE: appdata/traefik2/rules/toml/middlewares-nextcloud.toml.example ================================================ [code] [http.middlewares] ### Let's give them a new name so it won't conflict with others [http.middlewares.nextcloud-middlewares-secure-headers] ### Change the name here as well [http.middlewares.nextcloud-middlewares-secure-headers.headers] ### Comment out this line as Nextcloud uses quite a few methods for different apps # accessControlAllowMethods= ["GET", "OPTIONS", "PUT"] accessControlMaxAge = 100 hostsProxyHeaders = ["X-Forwarded-Host"] # sslRedirect = true #replaced with middlewares-https-redirectscheme for v2.5.x stsSeconds = 63072000 stsIncludeSubdomains = true stsPreload = true forceSTSHeader = true # frameDeny = true #overwritten by customFrameOptionsValue ### We will modify this value for Nextcloud to remove the X-Frame-Options error: customFrameOptionsValue = "SAMEORIGIN" #CSP takes care of this but may be needed for organizr. contentTypeNosniff = true browserXssFilter = true # sslForceHost = true # add sslHost to all of the services # sslHost = "example.com" referrerPolicy = "same-origin" # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk. # the below line also breaks some apps due to 'none' - sonarr, radarr, etc. # contentSecurityPolicy = "frame-ancestors '*.example.com:*';object-src 'none';script-src 'none';" # Line below, featurePolicy, was deprecated in v2.5.x in favor permissionPolicy # featurePolicy = "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';" permissionsPolicy = "camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=()" ### Change the middleware name here as well [http.middlewares.nextcloud-middlewares-secure-headers.headers.customResponseHeaders] ### We just need to set this to none X-Robots-Tag = "none" server = "" ### This section redirects requests for Nextcloud calendar and contacts service discovery ### source: https://docs.nextcloud.com/server/21/admin_manual/issues/general_troubleshooting.html#service-discovery [http.middlewares.nextcloud-redirect] [http.middlewares.nextcloud-redirect.redirectRegex] permanent = true regex = "https://(.*)/.well-known/(card|cal)dav" replacement = "https://${1}/remote.php/dav/" ================================================ FILE: appdata/traefik2/rules/toml/middlewares.toml.example ================================================ [http.middlewares] [http.middlewares.middlewares-basic-auth] [http.middlewares.middlewares-basic-auth.basicAuth] # users = [ # "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1", # ] realm = "Traefik2 Basic Auth" usersFile = "/shared/.htpasswd" #be sure to mount the volume through docker-compose.yml [http.middlewares.middlewares-rate-limit] [http.middlewares.middlewares-rate-limit.rateLimit] average = 100 burst = 50 # Available Header Options: #####https://github.com/unrolled/secure#available-options #####https://docs.traefik.io/middlewares/headers/ # A great resource for these headers is your preferred browser's docs. Firefox: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers # https://developers.google.com/search/reference/robots_meta_tag # https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Clickjacking_Defense_Cheat_Sheet.md # CSP for VNC: https://github.com/cockpit-project/cockpit/pull/5932 # Check headers here, don't include OAuth when checking headers, otherwise you are checking google's headers: https://securityheaders.com # or check them here: https://observatory.mozilla.org/ # CAUTION: Any headers defined in docker-compose (yml) will OVERWRITE ALL of the headers defined below. [http.middlewares.middlewares-secure-headers] [http.middlewares.middlewares-secure-headers.headers] accessControlAllowMethods= ["GET", "OPTIONS", "PUT"] accessControlMaxAge = 100 hostsProxyHeaders = ["X-Forwarded-Host"] # sslRedirect = true #replaced with middlewares-https-redirectscheme for v2.5.x stsSeconds = 63072000 stsIncludeSubdomains = true stsPreload = true forceSTSHeader = true # frameDeny = true #overwritten by customFrameOptionsValue customFrameOptionsValue = "allow-from https:example.com" #CSP takes care of this but may be needed for organizr. contentTypeNosniff = true browserXssFilter = true # sslForceHost = true # add sslHost and all of the # sslHost = "example.com" referrerPolicy = "same-origin" # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk. # the below line also breaks some apps due to 'none' - sonarr, radarr, etc. # contentSecurityPolicy = "frame-ancestors '*.example.com:*';object-src 'none';script-src 'none';" # Line below, featurePolicy, was deprecated in v2.5.x in favor permissionPolicy # featurePolicy = "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';" permissionsPolicy = "camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=()" [http.middlewares.middlewares-secure-headers.headers.customResponseHeaders] X-Robots-Tag = "none,noarchive,nosnippet,notranslate,noimageindex," server = "" [http.middlewares.middlewares-oauth] [http.middlewares.middlewares-oauth.forwardAuth] address = "http://oauth:4181" # Make sure you have the OAuth service in docker-compose.yml trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] [http.middlewares.middlewares-authelia] [http.middlewares.middlewares-authelia.forwardAuth] address = "http://authelia:9091/api/verify?rd=https://authelia.example.com" trustForwardHeader = true authResponseHeaders = ["Remote-User", "Remote-Groups"] ================================================ FILE: appdata/traefik2/rules/ws/chain-authelia-wp.yml ================================================ http: middlewares: chain-authelia-wp: chain: middlewares: - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers-wp - middlewares-authelia ================================================ FILE: appdata/traefik2/rules/ws/chain-authelia.yml ================================================ http: middlewares: chain-authelia: chain: middlewares: - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-authelia ================================================ FILE: appdata/traefik2/rules/ws/chain-basic-auth.yml ================================================ http: middlewares: chain-basic-auth: chain: middlewares: - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-basic-auth ================================================ FILE: appdata/traefik2/rules/ws/chain-no-auth-crowdsec-wp.yml ================================================ http: middlewares: chain-no-auth-crowdsec-wp: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers-wp ================================================ FILE: appdata/traefik2/rules/ws/chain-no-auth-wp.yml ================================================ http: middlewares: chain-no-auth-wp: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers-wp ================================================ FILE: appdata/traefik2/rules/ws/chain-no-auth.yml ================================================ http: middlewares: chain-no-auth: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers ================================================ FILE: appdata/traefik2/rules/ws/chain-oauth-no-crowdsec.yml ================================================ http: middlewares: chain-oauth-no-crowdsec: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers-wp - middlewares-oauth ================================================ FILE: appdata/traefik2/rules/ws/chain-oauth.yml ================================================ http: middlewares: chain-oauth: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth ================================================ FILE: appdata/traefik2/rules/ws/middlewares-authelia.yml ================================================ http: middlewares: middlewares-authelia: forwardAuth: address: "http://authelia:9091/api/verify?rd=https://authelia.{{env "DOMAINNAME_WS"}}" trustForwardHeader: true authResponseHeaders: - "Remote-User" - "Remote-Groups" ================================================ FILE: appdata/traefik2/rules/ws/middlewares-basic-auth.yml ================================================ http: middlewares: middlewares-basic-auth: basicAuth: # users: # - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1" usersFile: "/run/secrets/basic_auth_credentials" realm: "Traefik 2 Basic Auth" ================================================ FILE: appdata/traefik2/rules/ws/middlewares-compress.yml ================================================ http: middlewares: middlewares-compress: compress: {} ================================================ FILE: appdata/traefik2/rules/ws/middlewares-oauth.yml ================================================ http: middlewares: middlewares-oauth: forwardAuth: address: "http://oauth:4181" # Make sure you have the OAuth service in docker-compose.yml trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" ================================================ FILE: appdata/traefik2/rules/ws/middlewares-rate-limit.yml ================================================ http: middlewares: middlewares-rate-limit: rateLimit: average: 100 burst: 50 ================================================ FILE: appdata/traefik2/rules/ws/middlewares-secure-headers-wp.yml ================================================ http: middlewares: middlewares-secure-headers-wp: headers: hostsProxyHeaders: - "X-Forwarded-Host" stsSeconds: 31536000 stsIncludeSubdomains: true stsPreload: true #frameDeny: true # Popups like plugin details etc. wont't open with this. customFrameOptionsValue: "allow-from https:{{env "DOMAINNAME_WS"}}" contentTypeNosniff: true browserXssFilter: true ================================================ FILE: appdata/traefik2/rules/ws/middlewares-secure-headers.yml ================================================ http: middlewares: middlewares-secure-headers: headers: accessControlAllowMethods: - GET - OPTIONS - PUT accessControlMaxAge: 100 hostsProxyHeaders: - "X-Forwarded-Host" # sslRedirect: true #replaced with middlewares-https-redirectscheme for v2.5.x stsSeconds: 63072000 stsIncludeSubdomains: true stsPreload: true forceSTSHeader: true # frameDeny: true #overwritten by customFrameOptionsValue customFrameOptionsValue: "allow-from https:{{env "DOMAINNAME_WS"}}" #CSP takes care of this but may be needed for organizr. contentTypeNosniff: true browserXssFilter: true # sslForceHost: true # add sslHost to all of the services # sslHost: "{{env "DOMAINNAME_WS"}}" referrerPolicy: "same-origin" # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk. # the below line also breaks some apps due to 'none' - sonarr, radarr, etc. # contentSecurityPolicy: "frame-ancestors '*.{{env "DOMAINNAME_WS"}}:*';object-src 'none';script-src 'none';" # Line below, featurePolicy, was deprecated in v2.5.x in favor permissionPolicy # featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';" permissionsPolicy: "camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=()" customResponseHeaders: X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex," server: "" # https://community.traefik.io/t/how-to-make-websockets-work-with-traefik-2-0-setting-up-rancher/1732 # X-Forwarded-Proto: "https" ================================================ FILE: appdata/traefik2/rules/ws/middlewares-traefik-bouncer.yml ================================================ http: middlewares: middlewares-traefik-bouncer: forwardAuth: address: "http://traefik-bouncer:8080/api/v1/forwardAuth" # Make sure you have the traefik-bouncer service in docker-compose.yml trustForwardHeader: true ================================================ FILE: appdata/traefik2/rules/ws/tls-opts.yml ================================================ tls: options: tls-opts: minVersion: VersionTLS12 cipherSuites: - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 - TLS_AES_128_GCM_SHA256 - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 - TLS_FALLBACK_SCSV # Client is doing version fallback. See RFC 7507 curvePreferences: - CurveP521 - CurveP384 sniStrict: true ================================================ FILE: appdata/traefik3/rules/hs/chain-basic-auth.yml ================================================ http: middlewares: chain-basic-auth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-basic-auth # - middlewares-compress ================================================ FILE: appdata/traefik3/rules/hs/chain-no-auth.yml ================================================ http: middlewares: chain-no-auth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers # - middlewares-compress ================================================ FILE: appdata/traefik3/rules/hs/chain-oauth.yml ================================================ http: middlewares: chain-oauth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth ================================================ FILE: appdata/traefik3/rules/hs/middlewares-basic-auth.yml ================================================ http: middlewares: middlewares-basic-auth: basicAuth: # users: # - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1" usersFile: "/run/secrets/basic_auth_credentials" realm: "Traefik Basic Auth" ================================================ FILE: appdata/traefik3/rules/hs/middlewares-buffering.yml ================================================ http: middlewares: middlewares-buffering: buffering: maxResponseBodyBytes: 2000000 maxRequestBodyBytes: 10485760 memRequestBodyBytes: 2097152 memResponseBodyBytes: 2097152 retryExpression: "IsNetworkError() && Attempts() <= 2" ================================================ FILE: appdata/traefik3/rules/hs/middlewares-oauth.yml ================================================ http: middlewares: middlewares-oauth: forwardAuth: address: "http://oauth:4181/portals/main" trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" - "X-Forwarded-Displayname" - "X-Authenticated-User" ================================================ FILE: appdata/traefik3/rules/hs/middlewares-rate-limit.yml ================================================ http: middlewares: middlewares-rate-limit: rateLimit: average: 100 burst: 50 ================================================ FILE: appdata/traefik3/rules/hs/middlewares-secure-headers.yml ================================================ http: middlewares: middlewares-secure-headers: headers: accessControlAllowMethods: - GET - OPTIONS - PUT accessControlMaxAge: 100 hostsProxyHeaders: - "X-Forwarded-Host" stsSeconds: 63072000 stsIncludeSubdomains: true stsPreload: true forceSTSHeader: true # This is a good thing but it can be tricky. Enable after everything works. # Comment out customFrameOptionsValue if you're using Jellyfin on LG WebOS customFrameOptionsValue: SAMEORIGIN # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options contentTypeNosniff: true browserXssFilter: true referrerPolicy: "same-origin" permissionsPolicy: "camera=(), microphone=(), geolocation=(), payment=(), usb=()" customResponseHeaders: X-Robots-Tag: "none,noindex,nofollow,noarchive,nosnippet,notranslate,noimageindex" # disable search engines from indexing home server server: "" # hide server info from visitors customRequestHeaders: X-Forwarded-Proto: https ================================================ FILE: appdata/traefik3/rules/hs/tls-opts.yml ================================================ tls: options: tls-opts: minVersion: VersionTLS12 cipherSuites: - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 - TLS_AES_128_GCM_SHA256 - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 - TLS_FALLBACK_SCSV # Client is doing version fallback. See RFC 7507 curvePreferences: - CurveP521 - CurveP384 sniStrict: true ================================================ FILE: appdata/traefik3/rules/ws-arm/chain-basic-auth.yml ================================================ http: middlewares: chain-basic-auth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers - middlewares-basic-auth # - middlewares-compress ================================================ FILE: appdata/traefik3/rules/ws-arm/chain-no-auth-crowdsec-wp.yml ================================================ http: middlewares: chain-no-auth-crowdsec-wp: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers-wp ================================================ FILE: appdata/traefik3/rules/ws-arm/chain-no-auth-simple.yml ================================================ http: middlewares: chain-no-auth-simple: chain: middlewares: - middlewares-rate-limit # - middlewares-secure-headers # - middlewares-compress ================================================ FILE: appdata/traefik3/rules/ws-arm/chain-no-auth-wp.yml ================================================ http: middlewares: chain-no-auth-wp: chain: middlewares: # - middlewares-traefik-bouncer # leave this out if you are not using CrowdSec - middlewares-rate-limit - middlewares-secure-headers-wp ================================================ FILE: appdata/traefik3/rules/ws-arm/chain-no-auth.yml ================================================ http: middlewares: chain-no-auth: chain: middlewares: - middlewares-rate-limit - middlewares-secure-headers # - middlewares-compress ================================================ FILE: appdata/traefik3/rules/ws-arm/chain-oauth.yml ================================================ http: middlewares: chain-oauth: chain: middlewares: # - plugins-crowdsec-traefik-bouncer - middlewares-rate-limit - middlewares-secure-headers - middlewares-oauth ================================================ FILE: appdata/traefik3/rules/ws-arm/middlewares-basic-auth.yml ================================================ http: middlewares: middlewares-basic-auth: basicAuth: # users: # - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1" usersFile: "/run/secrets/basic_auth_credentials" realm: "Traefik Basic Auth" ================================================ FILE: appdata/traefik3/rules/ws-arm/middlewares-buffering.yml ================================================ http: middlewares: middlewares-buffering: buffering: maxResponseBodyBytes: 2000000 maxRequestBodyBytes: 10485760 memRequestBodyBytes: 2097152 memResponseBodyBytes: 2097152 retryExpression: "IsNetworkError() && Attempts() <= 2" ================================================ FILE: appdata/traefik3/rules/ws-arm/middlewares-oauth.yml ================================================ http: middlewares: middlewares-oauth: forwardAuth: address: "http://oauth:4181" # Make sure you have the OAuth service in docker-compose.yml trustForwardHeader: true authResponseHeaders: - "X-Forwarded-User" ================================================ FILE: appdata/traefik3/rules/ws-arm/middlewares-rate-limit.yml ================================================ http: middlewares: middlewares-rate-limit: rateLimit: average: 100 burst: 50 ================================================ FILE: appdata/traefik3/rules/ws-arm/middlewares-secure-headers-wp.yml ================================================ http: middlewares: middlewares-secure-headers-wp: headers: hostsProxyHeaders: - "X-Forwarded-Host" stsSeconds: 31536000 stsIncludeSubdomains: true stsPreload: true #frameDeny: true # Popups like plugin details etc. wont't open with this. customFrameOptionsValue: "allow-from https:{{env "DOMAINNAME_1"}}" contentTypeNosniff: true browserXssFilter: true ================================================ FILE: appdata/traefik3/rules/ws-arm/middlewares-secure-headers.yml ================================================ http: middlewares: middlewares-secure-headers: headers: accessControlAllowMethods: - GET - OPTIONS - PUT accessControlMaxAge: 100 hostsProxyHeaders: - "X-Forwarded-Host" stsSeconds: 63072000 stsIncludeSubdomains: true stsPreload: true forceSTSHeader: true # This is a good thing but it can be tricky. Enable after everything works. customFrameOptionsValue: SAMEORIGIN # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options contentTypeNosniff: true browserXssFilter: true referrerPolicy: "same-origin" permissionsPolicy: "camera=(), microphone=(), geolocation=(), payment=(), usb=()" customResponseHeaders: X-Robots-Tag: "none,noindex,nofollow,noarchive,nosnippet,notranslate,noimageindex" # disable search engines from indexing home server server: "" # hide server info from visitors customRequestHeaders: X-Forwarded-Proto: https ================================================ FILE: appdata/traefik3/rules/ws-arm/tls-opts.yml ================================================ tls: options: tls-opts: minVersion: VersionTLS12 cipherSuites: - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 - TLS_AES_128_GCM_SHA256 - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 - TLS_FALLBACK_SCSV # Client is doing version fallback. See RFC 7507 curvePreferences: - CurveP521 - CurveP384 sniStrict: true ================================================ FILE: archives/traefik_v1/docker-compose-npm.yml ================================================ version: "3.9" ########################### NETWORKS # You may customize the network subnet (192.168.89.0/24) below as you please. # Docker Compose version 3.5 or higher required to define networks this way. networks: default: driver: bridge npm_proxy: name: npm_proxy driver: bridge ipam: config: - subnet: 192.168.89.0/24 # If you decide to use Socket Proxy, you need socket_proxy network as we. See https://www.smarthomebeginner.com/traefik-docker-security-best-practices/#9_Use_a_Docker_Socket_Proxy ########################### EXTENSION FIELDS # Helps eliminate repetition of sections # More Info on how to use this: https://github.com/htpcBeginner/docker-traefik/pull/228 # Common environment values x-environment: &default-tz-puid-pgid TZ: $TZ PUID: $PUID PGID: $PGID # Keys common to some of the core services that we always to automatically restart on failure x-common-keys-core: &common-keys-core networks: - npm_proxy security_opt: - no-new-privileges:true restart: always # Keys common to some of the dependent services/apps x-common-keys-apps: &common-keys-apps networks: - npm_proxy security_opt: - no-new-privileges:true restart: unless-stopped # Keys common to some of the services in media-services.txt x-common-keys-media: &common-keys-media networks: - npm_proxy security_opt: - no-new-privileges:true restart: "no" ########################### SERVICES services: ############################# FRONTENDS # Nginx Proxy Manager - Reverse Proxy with LetsEncrypt npm: <<: *common-keys-core # See EXTENSION FIELDS at the top container_name: nginx-proxy-manager image: 'jc21/nginx-proxy-manager:latest' # For Static IP networks: # For Static IP npm_proxy: ipv4_address: 192.168.89.254 # You can specify a static IP # For Dynamic IP # networks: # - npm_proxy ports: - '80:80' # Public HTTP Port. Port Forwarding on Router is ON. - '443:443' # Public HTTPS Port. Port Forwarding on Router is ON. - '81:81' # Admin Web Port. Port Forwarding on Router is OFF. Internal Home Network Access only - 192.168.89.254:81. volumes: - $DOCKERDIR/appdata/npm/config:/config - $DOCKERDIR/appdata/npm/letsencrypt:/etc/letsencrypt - $DOCKERDIR/appdata/npm/data:/data environment: DB_SQLITE_FILE: "/config/database.sqlite" DISABLE_IPV6: 'true' # Portainer - WebUI for Containers portainer: <<: *common-keys-core # See EXTENSION FIELDS at the top container_name: portainer image: portainer/portainer-ce:latest command: -H unix:///var/run/docker.sock # Use Docker Socket Proxy and comment this line out, for improved security. # command: -H tcp://socket-proxy:2375 # Use this instead, if you have Socket Proxy enabled. networks: - npm_proxy ports: - "9000:9000" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy and comment this line out, for improved security. - $DOCKERDIR/appdata/portainer/data:/data # Change to local directory if you want to save/transfer config locally. environment: - TZ=$TZ # Heimdall - Application Dashboard heimdall: <<: *common-keys-core # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/heimdall container_name: heimdall ports: - "83:80" # 80 to 82 already taken by other services # - "444:443" # 443 used by Nginx Proxy Manager. Disabled because we will put Heimdall behind proxy. volumes: - $DOCKERDIR/appdata/heimdall:/config environment: <<: *default-tz-puid-pgid ############################# DOWNLOADERS # nzbget - Binary newsgrabber (NZB downloader) nzbget: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/nzbget container_name: nzbget networks: npm_proxy: ipv4_address: 192.168.89.216 ports: - "6789:6789" volumes: - $DOCKERDIR/appdata/nzbget:/config - $DATADIR/downloads:/data/downloads environment: <<: *default-tz-puid-pgid # TransmissionBT - Torrent Downloader # For Proxmox LXC Containers - https://pve.proxmox.com/wiki/OpenVPN_in_LXC transmission-vpn: image: haugene/transmission-openvpn:latest container_name: transmission-vpn restart: unless-stopped networks: npm_proxy: ipv4_address: 192.168.89.169 ports: - "9091:9091" cap_add: - NET_ADMIN devices: - /dev/net/tun volumes: - /etc/localtime:/etc/localtime:ro - $DOCKERDIR/appdata/transmission-vpn/data:/data - $DOCKERDIR/appdata/transmission-vpn/config:/config - $DATADIR/downloads:/data/downloads environment: <<: *default-tz-puid-pgid OPENVPN_PROVIDER: FASTESTVPN OPENVPN_USERNAME: $FASTEST_USERNAME OPENVPN_PASSWORD: $FASTEST_PASSWORD LOCAL_NETWORK: "$LOCAL_NETWORK" UMASK_SET: 2 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: 1.00 TRANSMISSION_RATIO_LIMIT_ENABLED: "true" TRANSMISSION_ALT_SPEED_DOWN: 40000 TRANSMISSION_ALT_SPEED_ENABLED: "false" TRANSMISSION_ALT_SPEED_UP: 250 TRANSMISSION_SPEED_LIMIT_DOWN: 80000 TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED: "true" TRANSMISSION_SPEED_LIMIT_UP: 500 TRANSMISSION_SPEED_LIMIT_UP_ENABLED: "true" TRANSMISSION_INCOMPLETE_DIR: /data/downloads/torrents/incomplete TRANSMISSION_INCOMPLETE_DIR_ENABLED: "true" TRANSMISSION_WATCH_DIR: /data/downloads/torrents TRANSMISSION_WATCH_DIR_ENABLED: "true" TRANSMISSION_DOWNLOAD_DIR: /data/downloads/torrents LOG_TO_STDOUT: "true" # qBittorrent - Torrent downloader without VPN qbittorrent: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent #network_mode: container:transmission-vpn # Passing network through Transmission Container if VPN is needed. ports: - "8080:8080" volumes: - $DOCKERDIR/appdata/qbittorrent:/config - $DATADIR/downloads:/data/downloads # Ensure that downloads folder is set to /data/downloads in qBittorrent environment: <<: *default-tz-puid-pgid UMASK_SET: 002 ############################# PVRS # Prowlarr - Indexer Proxy prowlarr: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: ghcr.io/linuxserver/prowlarr:develop container_name: prowlarr networks: npm_proxy: ipv4_address: 192.168.89.162 ports: - "9696:9696" volumes: - $DOCKERDIR/appdata/prowlarr:/config - "/etc/localtime:/etc/localtime:ro" environment: <<: *default-tz-puid-pgid # Lidarr - Music Management lidarr: <<: *common-keys-media # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/lidarr:latest container_name: lidarr networks: npm_proxy: ipv4_address: 192.168.89.163 ports: - "8686:8686" volumes: - $DOCKERDIR/appdata/lidarr:/config - $DATADIR/downloads:/data/downloads - $DATADIR/local/music:/data/media/music - "/etc/localtime:/etc/localtime:ro" environment: <<: *default-tz-puid-pgid # Radarr - Movie management radarr: <<: *common-keys-media # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/radarr:nightly # latest was causing "Error parsing column 45" container_name: radarr networks: npm_proxy: ipv4_address: 192.168.89.164 ports: - "7878:7878" volumes: - $DOCKERDIR/appdata/radarr:/config - $DATADIR:/data - "/etc/localtime:/etc/localtime:ro" environment: <<: *default-tz-puid-pgid # Sonarr - TV Shows management sonarr: <<: *common-keys-media # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/sonarr container_name: sonarr networks: npm_proxy: ipv4_address: 192.168.89.167 ports: - "8989:8989" volumes: - $DOCKERDIR/appdata/sonarr:/config - $DATADIR:/data - "/etc/localtime:/etc/localtime:ro" environment: <<: *default-tz-puid-pgid # Readarr - Books management readarr: <<: *common-keys-media # See EXTENSION FIELDS at the top image: hotio/readarr:nightly container_name: readarr ports: - "8987:8987" volumes: - $DOCKERDIR/appdata/readarr:/config - $DATADIR:/data - "/etc/localtime:/etc/localtime:ro" environment: <<: *default-tz-puid-pgid UMASK: 002 #ARGS: "" ############################# MEDIA # Airsonic Advanced - Music Server airsonic: <<: *common-keys-media # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/airsonic-advanced container_name: airsonic-advanced ports: - "4040:4040" - "4041:4041" #UPnp volumes: - $DOCKERDIR/appdata/airsonic/podcasts:/data/podcasts - $DOCKERDIR/appdata/airsonic/playlists:/data/playlists - $DOCKERDIR/appdata/airsonic/config:/config - $DATADIR/local/music:/data/music environment: <<: *default-tz-puid-pgid JAVA_OPTS: '-Dserver.forward-headers-strategy=native' # Optional - if you use a reverse-proxy # Jellyfin - Media Server jellyfin: <<: *common-keys-media # See EXTENSION FIELDS at the top image: jellyfin/jellyfin:latest container_name: jellyfin #devices: # - /dev/dri:/dev/dri # for harware transcoding ports: - "8096:8096" - "8920:8920" # Emby also uses same port if running both environment: <<: *default-tz-puid-pgid UMASK_SET: 022 volumes: - $DOCKERDIR/appdata/jellyfin:/config - $DATADIR/downloads:/data/downloads - $DATADIR/media:/data/media - /dev/shm:/data/transcode # Offload transcoding to RAM if you have enough RAM # Plex - Media Server plexms: <<: *common-keys-media # See EXTENSION FIELDS at the top image: plexinc/pms-docker:public container_name: plexms ports: - "32400:32400/tcp" - "3005:3005/tcp" - "8324:8324/tcp" - "32469:32469/tcp" # - "1900:1900/udp" # Conflicts with xTeVe and Synology default ports - "32410:32410/udp" - "32412:32412/udp" - "32413:32413/udp" - "32414:32414/udp" # - "33400:33400" # If you use Plex Web Tools #devices: # - /dev/dri:/dev/dri # for harware transcoding volumes: - $DOCKERDIR/appdata/plexms:/config - $DATADIR/media:/media - /dev/shm:/transcode environment: TZ: $TZ HOSTNAME: "dockerPlex" PLEX_CLAIM_FILE: $PLEX_CLAIM PLEX_UID: $PUID PLEX_GID: $PGID ADVERTISE_IP: http://$SERVER_IP:32400/ # Tautulli - Plex Stats and Monitoring tautulli: <<: *common-keys-media # See EXTENSION FIELDS at the top image: linuxserver/tautulli:latest container_name: tautulli ports: - "8181:8181" volumes: - $DOCKERDIR/appdata/tautulli/config:/config - $DOCKERDIR/appdata/plexms/Library/Application Support/Plex Media Server/Logs:/logs:ro # For tautulli Plex log viewer environment: <<: *default-tz-puid-pgid # Ombi - Media Requests ombi: <<: *common-keys-media # See EXTENSION FIELDS at the top image: linuxserver/ombi:latest container_name: ombi ports: - "3579:3579" volumes: - $DOCKERDIR/appdata/ombi:/config environment: <<: *default-tz-puid-pgid ############################# MEDIA FILE MANAGEMENT # Bazarr - Subtitle Management bazarr: <<: *common-keys-media # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/bazarr container_name: bazarr ports: - "6767:6767" volumes: - $DOCKERDIR/appdata/bazarr:/config - $DATADIR/media:/data/media environment: <<: *default-tz-puid-pgid # Picard - Music Library Tagging and Management picard: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: mikenye/picard:latest container_name: picard ports: - "5800:5800" volumes: - $DATADIR:/data:rw - $DOCKERDIR/appdata/picard:/config:rw - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 # Handbrake - Video Conversion (Transcoding and compression) handbrake: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: jlesage/handbrake:latest container_name: handbrake ports: - "5801:5800" volumes: - $DATADIR/downloads:/data/downloads - $DOCKERDIR/appdata/handbrake/config:/config - $DOCKERDIR/appdata/handbrake/watch:/watch environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 AUTOMATED_CONVERSION_KEEP_SOURCE: 1 VNC_PASSWORD: $HANDBRAKE_VNC_PASSWD ############################# UTILITIES # Dozzle - Real-time Docker Log Viewer dozzle: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: amir20/dozzle:latest container_name: dozzle networks: - npm_proxy ports: - "8081:8080" # qBittorrent is using port 8080 environment: DOZZLE_LEVEL: info DOZZLE_TAILSIZE: 300 DOZZLE_FILTER: "status=running" # DOZZLE_FILTER: "label=log_me" # limits logs displayed to containers with this label. # DOCKER_HOST: tcp://socket-proxy:2375 # Use this instead if you have Socket Proxy enabled. volumes: - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy and comment this line for improved security. # File Browser - Explorer filebrowser: <<: *common-keys-core # See EXTENSION FIELDS at the top image: filebrowser/filebrowser:s6 container_name: filebrowser ports: - "82:80" # 80 and 81 are used by Nginx Proxy Manager volumes: - $DOCKERDIR/appdata/filebrowser:/config - $USERDIR:/srv environment: <<: *default-tz-puid-pgid ############################# MAINTENANCE # Docker-GC - Automatic Docker Garbage Collection # Create docker-gc-exclude file dockergc: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: clockworksoul/docker-gc-cron:latest container_name: docker-gc volumes: - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy and comment this line for improved security. - $DOCKERDIR/appdata/docker-gc/docker-gc-exclude:/etc/docker-gc-exclude # Create empty file environment: CRON: 0 0 0 * * ? # Everyday at midnight. Previously 0 0 * * * FORCE_IMAGE_REMOVAL: 1 FORCE_CONTAINER_REMOVAL: 0 GRACE_PERIOD_SECONDS: 604800 DRY_RUN: 0 CLEAN_UP_VOLUMES: 1 TZ: $TZ # DOCKER_HOST: tcp://socket-proxy:2375 # Use this if you have Socket Proxy enabled. # WatchTower - Automatic Docker Container Updates watchtower: <<: *common-keys-core # See EXTENSION FIELDS at the top image: containrrr/watchtower container_name: watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock environment: TZ: $TZ WATCHTOWER_CLEANUP: "true" WATCHTOWER_REMOVE_VOLUMES: "true" WATCHTOWER_INCLUDE_STOPPED: "true" WATCHTOWER_NO_STARTUP_MESSAGE: "false" WATCHTOWER_SCHEDULE: "0 30 12 * * *" # Everyday at 12:30 # DOCKER_HOST: tcp://socket-proxy:2375 # Use this if you have Socket Proxy enabled. DOCKER_API_VERSION: "1.40" ================================================ FILE: archives/traefik_v1/docker-compose-t1-obsolete.yml ================================================ version: "3.7" # DOCKER TRAEFIK 1 IS NO LONGER BEING MAINTAINED. CHECK INSTRUCTIONS FOR DOCKER TRAEFIK V2 SETUP. ################ THESE ARE APPS I USED TO USE BUT NOT ANYMORE ########### ########################### NETWORKS networks: t1_proxy: external: name: t1_proxy default: driver: bridge ########################### SERVICES services: # Monitorr - Webfront to display the status of any webapp or service monitorr: image: monitorr/monitorr container_name: monitorr hostname: monitorr restart: unless-stopped networks: - t1_proxy # ports: # - "${MONITORR_PORT}:80" volumes: - ${USERDIR}/docker/monitorr:/app environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} labels: traefik.enable: "true" traefik.backend: monitorr traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:monitorr.${DOMAINNAME} traefik.frontend.headers.SSLHost: monitorr.${DOMAINNAME} traefik.docker.network: t1_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" # Varken - Monitor Plex, Sonarr, Radarr, and Other Data varken: image: boerderij/varken hostname: varken container_name: varken restart: unless-stopped networks: - t1_proxy - default volumes: - ${USERDIR}/docker/varken:/config environment: PUID: ${PUID} PGID: ${PGID} TZ: ${TZ} VRKN_GLOBAL_SONARR_SERVER_IDS: 1 VRKN_GLOBAL_RADARR_SERVER_IDS: 1 VRKN_GLOBAL_LIDARR_SERVER_IDS: "false" VRKN_GLOBAL_TAUTULLI_SERVER_IDS: 1 VRKN_GLOBAL_OMBI_SERVER_IDS: "false" VRKN_GLOBAL_SICKCHILL_SERVER_IDS: "false" VRKN_GLOBAL_UNIFI_SERVER_IDS: 1 VRKN_INFLUXDB_URL: ${SERVER_IP} VRKN_INFLUXDB_PORT: 8086 VRKN_INFLUXDB_SSL: "false" VRKN_INFLUXDB_VERIFY_SSL: "false" VRKN_INFLUXDB_USERNAME: ${VARKEN_USER} VRKN_INFLUXDB_PASSWORD: ${VARKEN_PASS} VRKN_TAUTULLI_1_URL: ${SERVER_IP}:${TAUTULLI_PORT} VRKN_TAUTULLI_1_FALLBACK_IP: 1.1.1.1 VRKN_TAUTULLI_1_APIKEY: ${TAUTULLI_API_KEY} VRKN_TAUTULLI_1_SSL: "false" VRKN_TAUTULLI_1_VERIFY_SSL: "false" VRKN_TAUTULLI_1_GET_ACTIVITY: "true" VRKN_TAUTULLI_1_GET_ACTIVITY_RUN_SECONDS: 30 VRKN_TAUTULLI_1_GET_STATS: "true" VRKN_TAUTULLI_1_GET_STATS_RUN_SECONDS: 3600 VRKN_SONARR_1_URL: ${SERVER_IP}:${SONARR_PORT} VRKN_SONARR_1_APIKEY: ${SONARR_API_KEY} VRKN_SONARR_1_SSL: "false" VRKN_SONARR_1_VERIFY_SSL: "false" VRKN_SONARR_1_MISSING_DAYS: 7 VRKN_SONARR_1_MISSING_DAYS_RUN_SECONDS: 300 VRKN_SONARR_1_FUTURE_DAYS: 1 VRKN_SONARR_1_FUTURE_DAYS_RUN_SECONDS: 300 VRKN_SONARR_1_QUEUE: "true" VRKN_SONARR_1_QUEUE_RUN_SECONDS: 300 VRKN_RADARR_1_URL: ${SERVER_IP}:${RADARR_PORT} VRKN_RADARR_1_APIKEY: ${RADARR_API_KEY} VRKN_RADARR_1_SSL: "false" VRKN_RADARR_1_VERIFY_SSL: "false" VRKN_RADARR_1_QUEUE: "true" VRKN_RADARR_1_QUEUE_RUN_SECONDS: 300 VRKN_RADARR_1_GET_MISSING: "true" VRKN_RADARR_1_GET_MISSING_RUN_SECONDS: 300 VRKN_UNIFI_1_URL: ${UNIFI_HOST} VRKN_UNIFI_1_USERNAME: ${UNIFI_USER} VRKN_UNIFI_1_PASSWORD: ${UNIFI_PASS} VRKN_UNIFI_1_SITE: default VRKN_UNIFI_1_USG_NAME: USG VRKN_UNIFI_1_SSL: "true" VRKN_UNIFI_1_VERIFY_SSL: "false" VRKN_UNIFI_1_GET_USG_STATS_RUN_SECONDS: 300 # Telly Tv- IPTV proxy for Plex # https://hub.docker.com/r/tellytv/telly # https://github.com/tellytv/telly/wiki/Docker-Walkthrough%3A-Linux-with-config-file # https://github.com/tellytv/telly/wiki/Adding-Telly-to-Plex # Telly uses port 6077 # In plex, the DVR IP will be http://HostIP:6077 # EPG data will be at http://HostIP:6077/epg.xml # xTeve is better than TellyTV - Replaced on Jan 09, 2020 tellytv: image: tellytv/telly:dev-ffmpeg container_name: tellytv hostname: tellytv restart: unless-stopped network_mode: host ports: - "1900:1900/udp" environment: - TZ=${TZ} volumes: - ${USERDIR}/docker/telly/telly.config.toml:/etc/telly/telly.config.toml # Traefik Home - Dashboard home: image: lobre/traefik-home container_name: traefik-home hostname: traefik-home restart: unless-stopped networks: - t1_proxy # ports: # - "${SMOKEPING_PORT}:80" volumes: - /var/run/docker.sock:/tmp/docker.sock:ro labels: #Additional label - add this to all containers to make them appear on dashboard traefik.home: "true" #Regular labels traefik.enable: "true" traefik.backend: home traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:home.${DOMAINNAME} traefik.frontend.headers.SSLHost: home.${DOMAINNAME} traefik.docker.network: t1_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" # MiFlora MQTT Daemon - BT to MQTT Daemon for MiFlora Sensors miflora: image: raymondmm/miflora-mqtt container_name: miflora-mqtt hostname: miflora environment: - TZ=${TZ} network_mode: host # user: "0" volumes: - ${USERDIR}/docker/miflora-mqtt/config:/config restart: unless-stopped # xTeve - IPTV proxy for Plex xteve: image: alturismo/xteve container_name: xteve hostname: xteve restart: unless-stopped # network_mode: host networks: - t1_proxy - default ports: - "34400:34400" - "1901:1900" # user: "0" # logging: # options: # max-size: "10m" # max-files: 3 environment: TZ: ${TZ} volumes: - ${USERDIR}/docker/xteve:/config:rw - /dev/shm:/tmp/xteve labels: traefik.enable: "true" traefik.backend: xteve traefik.protocol: http traefik.port: 34400 traefik.frontend.rule: Host:xteve.${DOMAINNAME} traefik.frontend.headers.SSLHost: xteve.${DOMAINNAME} traefik.docker.network: t1_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" # MQTT Admin - Web Based MQTT Client mqttweb: image: dersimn/mqtt-admin container_name: mqttweb hostname: mqttweb restart: unless-stopped networks: - t1_proxy # ports: # - "80:80" environment: MQTT_HOST: "$SERVER_IP:9001" labels: traefik.enable: "true" traefik.backend: mqttweb traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:mqttweb.${DOMAINNAME} traefik.frontend.headers.SSLHost: mqttweb.${DOMAINNAME} traefik.docker.network: t1_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" # Piwigo - Image Gallery piwigo: image: linuxserver/piwigo container_name: piwigo hostname: piwigo restart: unless-stopped networks: - t1_proxy ports: - "${PIWIGO_PORT}:80" volumes: - ${USERDIR}/docker/piwigo:/config environment: PUID: ${PUID} PGID: ${PGID} TZ: ${TZ} labels: traefik.enable: "true" traefik.backend: piwigo traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:piwigo.${DOMAINNAME} traefik.frontend.headers.SSLHost: piwigo.${DOMAINNAME} traefik.docker.network: t1_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" # Logarr - Log Management logarr: image: monitorr/logarr container_name: logarr hostname: logarr restart: unless-stopped networks: - t1_proxy # ports: # - "${LOGARR_PORT}:80" volumes: - ${USERDIR}/docker/logarr/config:/config - ${USERDIR}/docker/logarr/logs:/var/log/logarrlogs environment: TZ: ${TZ} labels: traefik.enable: "true" traefik.backend: logarr traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:logarr.${DOMAINNAME} traefik.frontend.headers.SSLHost: logarr.${DOMAINNAME} traefik.docker.network: t1_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.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" ================================================ FILE: archives/traefik_v1/docker-compose-t1-swarm.yml ================================================ # CAUTION: THIS COMPOSE FILE FOR DOCKER SWARM MODE IS NOT BEING ACTIVELY WORKED. MOST OF THE SERVICES LISTED HERE WORK BUT NOT GUARANTEED. # DOCKER TRAEFIK 1 IS NO LONGER BEING MAINTAINED. CHECK INSTRUCTIONS FOR DOCKER TRAEFIK V2 SETUP. version: "3.7" services: traefik: hostname: traefik image: traefik:latest command: #- "storeconfig" #This is the push to consul, secondary traefik must be created and interfaced to this traefik. Remove this traefik's open ports, it shuts down once consul is messaged. - "--logLevel=INFO" - "--InsecureSkipVerify=true" #for unifi controller to not throw internal server error message - "--api" - "--api.entrypoint=apiport" - "--defaultentrypoints=http,https" - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https" - "--entrypoints=Name:https Address::443 TLS TLS.SniStrict:true TLS.MinVersion:VersionTLS12 CipherSuites:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" - "--entrypoints=Name:apiport Address::8080" - "--file" - "--file.directory=/etc/traefik/rules/" - "--file.watch=true" - "--acme" - "--acme.storage=/etc/traefik/acme/acme.json" - "--acme.entryPoint=https" # not yet ready? # - "--acme.TLS-ALPN-01=true" - "--acme.dnsChallenge=true" - "--acme.dnsChallenge.provider=cloudflare" - "--acme.dnsChallenge.delayBeforeCheck=60" - "--acme.dnsChallenge.resolvers=1.1.1.1,1.0.0.1" - "--acme.onHostRule=true" - "--acme.email=admin@${DOMAINNAME}" - "--acme.acmeLogging=true" - "--acme.domains=${DOMAINNAME},*.${DOMAINNAME}," - "--acme.KeyType=RSA4096" #Let's Encrypt's staging server, #caServer = "https://acme-staging-v02.api.letsencrypt.org/directory" - "--docker" - "--docker.swarmMode" - "--docker.domain=${DOMAINNAME}" - "--docker.watch" - "--docker.exposedbydefault=false" #- "--consul" #- "--consul.endpoint=consul:8500" #- "--consul.prefix=traefik" - "--retry" - "resolvers=[192,168.1.1:53,1.1.1.1:53,]" environment: TZ: ${TZ} CF_API_EMAIL: ${CLOUDFLARE_EMAIL} CF_API_KEY: ${CLOUDFLARE_API_KEY} ports: - target: 80 published: 80 - target: 443 published: 443 - target: 8080 published: 8145 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ${USERDIR}/docker/traefik1-swarm:/etc/traefik - ${USERDIR}/docker/shared:/shared #- ${USERDIR}/docker/traefik1-swarm/traefik.log:/traefik.log networks: - t1s_proxy deploy: mode: replicated replicas: 1 placement: constraints: [node.role == manager] update_config: delay: 30s restart_policy: condition: on-failure max_attempts: 5 labels: traefik.enable: "true" traefik.docker.network: t1s_proxy traefik.backend: traefik traefik.protocol: http traefik.port: 8080 traefik.frontend.rule: Host:traefik.${DOMAINNAME} traefik.frontend.entryPoint: http traefik.frontend.redirect.entryPoint: https traefik.frontend.priority: 1 traefik.frontend.passHostHeader: "true" traefik.frontend.headers.SSLForceHost: "true" traefik.frontend.headers.SSLHost: traefik.${DOMAINNAME} 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 will override this #customFrameOptionsValue will override 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.basic.users: xxx:xxx unifi: hostname: unifi image: linuxserver/unifi:latest environment: PUID: ${PUID} PGID: ${PGID} TZ: ${TZ} ports: - target: 3478 published: 3478 protocol: udp mode: host - target: 10001 published: 10001 protocol: udp mode: host - target: 8080 published: 8080 protocol: tcp mode: host - target: 8081 published: 8081 protocol: tcp mode: host - target: 8443 published: 8147 protocol: tcp mode: host - target: 8880 published: 8880 protocol: tcp mode: host - target: 6789 published: 6789 protocol: tcp mode: host volumes: - ${USERDIR}/docker/unifi:/config - ${USERDIR}/docker/shared:/shared networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.tags: "frontend" traefik.frontend.passHostHeader: "true" traefik.admin.backend: unifi traefik.admin.frontend.rule: Host:unifi.${DOMAINNAME} traefik.admin.port: 8443 traefik.admin.protocol: https traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex # traefik.frontend.redirect.entryPoint: https traefik.frontend.priority: 1 traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #HEIMDALL 8148 heimdall: image: "linuxserver/heimdall" hostname: heimdall volumes: - ${USERDIR}/docker/heimdall:/config ports: - "8148:80" # - "443:443" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:heim.${DOMAINNAME} traefik.port: 80 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: heimdall traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #GUACAMOLE 8149 guacamole: hostname: guacamole image: guacamole/guacamole ports: - 8149:8080 environment: #using single quotation around env variables did not work - GUACD_HOSTNAME=guacd - MYSQL_HOSTNAME=${DB_HOST} - MYSQL_PORT=${DB_PORT} - MYSQL_DATABASE=guacamole - MYSQL_USER=${GUAC_MYSQL_USER} - MYSQL_PASSWORD=${GUAC_MYSQL_PASSWORD} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:guac.${DOMAINNAME} traefik.port: 8080 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: guacamole traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] ################## DATABASES ############################################## #PHPMYADMIN 8155 # Create a new user with admin priv as in notes. root user did not work. phpmyadmin: hostname: phpmyadmin image: phpmyadmin/phpmyadmin ports: - 8155:80 environment: - PMA_HOST=${DB_HOST} - PMA_PORT=${DB_PORT} # - PMA_ARBITRARY=1 - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # volumes: # - ${USERDIR}/docker/phpmyadmin:/etc/phpmyadmin # - ${USERDIR}/docker/shared:/shared networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:pma.${DOMAINNAME} traefik.port: 80 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: phpmyadmin traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #INFLUXDB 8154 #create influxdb.conf influxdb: hostname: influxdb image: influxdb volumes: # - ${USERDIR}/docker/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro - ${USERDIR}/docker/influxdb/db:/var/lib/influxdb - ${USERDIR}/docker/shared:/shared # command: -config /etc/influxdb/influxdb.conf ports: - "8086:8086" - "8083:8083" networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "false" update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #GRAFANA 8157 grafana: hostname: grafana image: grafana/grafana volumes: - ${USERDIR}/docker/grafana:/var/lib/grafana - ${USERDIR}/docker/shared:/shared ports: - "8158:3000" user: "0" # env_file: # - ${USERDIR}/docker/env/env.grafana networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:graf.${DOMAINNAME} traefik.port: 3000 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: grafana traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] ################## SMART HOME ############################################## #MOSQUITTO MQTT BROKER 8152 # Create mosquitto.conf, passwd, mosquitto.log files and set permissions to 775 user:docker mosquitto: image: "eclipse-mosquitto" hostname: mosquitto volumes: - ${USERDIR}/docker/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf - ${USERDIR}/docker/mosquitto/config/passwd:/mosquitto/config/passwd # - ${USERDIR}/docker/mosquitto/log/mosquitto.log:/mosquitto/log/mosquitto.log # - ${USERDIR}/docker/mosquitto/data:/mosquitto/data - ${USERDIR}/docker/shared:/shared ports: - "1883:1883" #http # - "8158:9001" #websockets - "8152:8883" #https environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "false" update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] zoneminder: hostname: zoneminder # image: adc3c7a0ca0a image: quantumobject/docker-zoneminder # privileged: true ports: - "8154:80" - "8156:443" - "9000:9000" 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=192.168.1.254 - ZM_DB_PORT=${DB_PORT} #needed to create the initial tables etc. In addition need database zm, username zmuser, and password zmpass - cannot change zm, zmuser, or zmpass - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_ROOT=${USER} # shm_size: 4096m networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:zone.${DOMAINNAME} traefik.port: 80 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: zoneminder traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #################### DOWNLOADERS ############################################ #SABNZBD 8166 # Disable SABNnzbd's built-in HTTPS support for traefik proxy to work # Needs trailing / if using PathPrefix sabnzbd: image: "linuxserver/sabnzbd" hostname: sabnzbd volumes: - ${USERDIR}/docker/sabnzbd:/config - ${USERDIR}/Downloads:/downloads - ${USERDIR}/Downloads/incomplete:/incomplete-downloads - ${USERDIR}/docker/shared:/shared ports: - "8166:8080" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:sab.${DOMAINNAME} traefik.port: 8080 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: sabnzbd traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #qBittorrent 8168 # Needs trailing / if using PathPrefixStrip qbittorrent: hostname: qbittorrent image: "linuxserver/qbittorrent" volumes: - ${USERDIR}/docker/qbittorrent:/config - ${USERDIR}/Downloads:/downloads - ${USERDIR}/docker/shared:/shared ports: - "8168:8168" - "6881:6881" - "6881:6881/udp" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - UMASK_SET=002 - WEBUI_PORT=8168 networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:qbit.${DOMAINNAME} traefik.port: 8168 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: qbittorrent traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #################### PVRS ############################################ #RADARR 8164 # Set url_base in radarr settings if using PathPrefix radarr: # image: "aront/radarr" image: "linuxserver/radarr" hostname: radarr volumes: - ${USERDIR}/docker/radarr:/config - ${USERDIR}/Downloads:/downloads - /media/media:/media - /media/ds918:/ds918 # - ${USERDIR}/docker/shared/mp4_automator:/config_mp4_automator - /media/media/movies:/movies - "/etc/localtime:/etc/localtime:ro" ports: - "8164:7878" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:radarr.${DOMAINNAME} traefik.port: 7878 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: radarr traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #SONARR 8167 # Set url_base in sonarr settings if using PathPrefix sonarr: # image: "aront/sonarr" image: "linuxserver/sonarr" hostname: sonarr volumes: - ${USERDIR}/docker/sonarr:/config - ${USERDIR}/Downloads:/downloads - /media/media/tvshows:/tv - /media/media:/media - /media/ds918:/ds918 - "/etc/localtime:/etc/localtime:ro" # - "${USERDIR}/docker/shared/mp4_automator:/config_mp4_automator:rw" ports: - "8167:8989" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:sonarr.${DOMAINNAME} traefik.port: 8989 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: sonarr traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #LIDARR 8163 # Set url_base in lidarr settings if using PathPrefix lidarr: image: "linuxserver/lidarr" hostname: lidarr volumes: - ${USERDIR}/docker/lidarr:/config - ${USERDIR}/Downloads:/downloads - /media/ds918/media/music:/music - "/etc/localtime:/etc/localtime:ro" - ${USERDIR}/docker/shared:/shared ports: - "8163:8686" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:lidarr.${DOMAINNAME} traefik.port: 8686 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: lidarr traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] ####################### INDEXERS ######################################### #JACKETT 8161 # Set url_base in Jackett settings if using PathPrefix jackett: image: "linuxserver/jackett" hostname: jackett volumes: - ${USERDIR}/docker/jackett:/config - ${USERDIR}/Downloads:/downloads - "/etc/localtime:/etc/localtime:ro" - ${USERDIR}/docker/shared:/shared ports: - "8161:9117" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:jackett.${DOMAINNAME} traefik.port: 9117 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: jackett traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #HYDRA 8165 # Set base_url in Hydra settings if using PathPrefix hydra: image: "linuxserver/hydra" hostname: hydra volumes: - ${USERDIR}/docker/hydra:/config - ${USERDIR}/Downloads:/downloads - ${USERDIR}/docker/shared:/shared ports: - "8165:5075" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:hydra.${DOMAINNAME} traefik.port: 5075 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: hydra traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] ##################### MEDIA SERVER ########################################### #EMBY embyms: hostname: embyms image: emby/embyserver:latest volumes: - /etc/localtime:/etc/localtime:ro - ${USERDIR}/docker/embyms:/config - ${USERDIR}/docker/embyms/transcode:/transcode - /media/media:/media - /media/ds918:/ds918 - ${USERDIR}/docker/shared:/shared - ${USERDIR}/Downloads:/downloads ports: - "8096:8096/tcp" - "8920:8920/tcp" environment: - TZ=${TZ} - HOSTNAME="zEmby" - UID=${PUID} - GID=${PGID} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:emby.${DOMAINNAME} traefik.port: 8096 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: embyms traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #TAUTULLI / PLEXPY 8170 # Set HTTP Root in Tautulli settings if using PathPrefix tautulli: hostname: tautulli image: linuxserver/tautulli volumes: - ${USERDIR}/docker/tautulli/config:/config - ${USERDIR}/docker/tautulli/logs:/logs:ro - ${USERDIR}/docker/shared:/shared ports: - "8170:8181" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:tautulli.${DOMAINNAME} traefik.port: 8181 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: tautulli traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] #BAZARR 8162 bazarr: hostname: bazarr image: linuxserver/bazarr volumes: - ${USERDIR}/docker/bazarr:/config - /media/media:/media - /media/ds918:/ds918 - ${USERDIR}/docker/shared:/shared ports: - "8162:6767" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.redirect.entryPoint: https traefik.frontend.rule: Host:bazarr.${DOMAINNAME} traefik.port: 6767 traefik.protocol: http traefik.frontend.priority: 1 traefik.backend: bazarr traefik.docker.network: t1s_proxy traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.SSLHost: ${DOMAINNAME} traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" # traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue will override this traefik.frontend.headers.customFrameOptionsValue: "allow-from https://${DOMAINNAME}" traefik.frontend.passHostHeader: "true" # traefik.frontend.auth.basic.usersFile: /.htpasswd update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] ##################### MAINTENANCE ########################################### # auto update swarm services shepherd: image: mazzolino/shepherd volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - SLEEP_TIME="60m" deploy: placement: constraints: - node.role == manager #GUACAMOLE DAEMON guacd: hostname: guacd image: guacamole/guacd networks: - t1s_proxy deploy: mode: replicated replicas: 1 labels: traefik.enable: "false" update_config: delay: 30s restart_policy: condition: on-failure placement: # constraints: [node.platform.os == linux] constraints: [node.role == manager] ########################### NETWORKS ############################ networks: t1s_proxy: name: t1s_proxy external: true ================================================ FILE: archives/traefik_v1/docker-compose-t1-synology.yml ================================================ version: "3.7" ########################### NETWORKS networks: traefik_proxy: external: name: traefik_proxy default: driver: bridge ########################### SERVICES services: #UNIFI unifi: image: jacobalberty/unifi:stable container_name: unifi hostname: unifi restart: unless-stopped networks: - default ports: - "8080:8080" - "8443:8443" - "3478:3478/udp" - "10001:10001/udp" - "6789:6789" environment: UNIFI_UID: 1026 UNIFI_GID: 100 TZ: America/New_York RUNAS_UID0: "false" BIND_PRIV: "false" volumes: - ${DOCKERDIR}/unifi:/unifi plexms: image: plexinc/pms-docker:public container_name: plexms hostname: plexms restart: unless-stopped volumes: - ${DOCKERDIR}/plex:/config - ${MEDIADIR}:/media:ro - /dev/shm:/transcode network_mode: "host" environment: TZ: ${TZ} HOSTNAME: "synPlex" PLEX_CLAIM: ${PLEX_CLAIM} PLEX_UID: ${PUID} PLEX_GID: ${PGID} ADVERTISE_IP: http://${SERVER_IP}:32400/ devices: - /dev/dri:/dev/dri privileged: true ############################# MAINTENANCE # Ouroboros - Automatic Docker Container Updates ouroboros: image: pyouroboros/ouroboros container_name: ouroboros hostname: ouroboros restart: unless-stopped networks: - default volumes: - /var/run/docker.sock:/var/run/docker.sock environment: TZ: ${TZ} INTERVAL: 86400 LOG_LEVEL: debug SELF_UPDATE: "true" CLEANUP: "true" # IGNORE: traefik influxdb hassio_dns homeassistant hassio_supervisor addon_core_check_config addon_62c7908d_autobackup plexms NOTIFIERS: "tgram://${TGRAM_BOT_TOKEN}/${TGRAM_CHAT_ID}/" # Docker-GC - Automatic Docker Garbage Collection # Create docker-gc-exclude file dockergc: image: clockworksoul/docker-gc-cron:latest container_name: docker-gc hostname: docker-gc restart: unless-stopped network_mode: none volumes: - /var/run/docker.sock:/var/run/docker.sock - ${DOCKERDIR}/docker-gc/docker-gc-exclude:/etc/docker-gc-exclude environment: CRON: 0 0 * * * FORCE_IMAGE_REMOVAL: 1 FORCE_CONTAINER_REMOVAL: 0 GRACE_PERIOD_SECONDS: 604800 DRY_RUN: 0 CLEAN_UP_VOLUMES: 1 TZ: ${TZ} ================================================ FILE: archives/traefik_v1/docker-compose-t1-vpn.yml ================================================ version: "3.7" # DOCKER TRAEFIK 1 IS NO LONGER BEING MAINTAINED. CHECK INSTRUCTIONS FOR DOCKER TRAEFIK V2 SETUP. # GLOBAL NOTES # customFrameOptionsValue overrides traefik.frontend.headers.frameDeny="true" ########################### SERVICES services: ############################# FRONTENDS # qBittorrent - Torrent downloader # Needs trailing / if using PathPrefixStrip qbittorrent: image: linuxserver/qbittorrent container_name: qbittorrent restart: always network_mode: container:transmission-vpn volumes: - ${USERDIR}/docker/qbittorrent:/config - ${USERDIR}/Downloads:/downloads environment: PUID: ${PUID} PGID: ${PGID} TZ: ${TZ} UMASK_SET: 002 WEBUI_PORT: 8168 labels: traefik.enable: "true" traefik.backend: qbittorrent traefik.protocol: http traefik.port: 8168 traefik.frontend.rule: Host:qbit.${DOMAINNAME} # traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /qbittorrent traefik.frontend.headers.SSLHost: qbit.${DOMAINNAME} traefik.docker.network: t1_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" ================================================ FILE: archives/traefik_v1/docker-compose-t1.yml ================================================ version: "3.7" # DOCKER TRAEFIK 1 IS NO LONGER BEING MAINTAINED. CHECK INSTRUCTIONS FOR DOCKER TRAEFIK V2 SETUP. # GLOBAL NOTES # customFrameOptionsValue overrides traefik.frontend.headers.frameDeny="true" ########################### NETWORKS # Create t1_proxy network # docker network create t1_proxy networks: t1_proxy: external: name: t1_proxy default: driver: bridge ########################### SERVICES services: ############################# FRONTENDS # Traefik - Reverse Proxy # Touch (create empty files) traefik.toml and acme/acme.json. Set acme.json permissions to 600. traefik: image: traefik:maroilles container_name: traefik restart: unless-stopped networks: - default - t1_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: t1_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" # Google OAuth - Single Sign On using OAuth 2.0 oauth: image: thomseddon/traefik-forward-auth:latest container_name: oauth restart: always networks: - default - t1_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: t1_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.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:latest container_name: portainer restart: unless-stopped networks: - t1_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: t1_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.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 restart: unless-stopped networks: - t1_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: t1_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.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:latest container_name: heimdall restart: unless-stopped networks: - t1_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: t1_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.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:latest container_name: autoindex restart: unless-stopped networks: - t1_proxy # ports: # - "$AUTOINDEX_PORT: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: t1_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.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:latest container_name: 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:latest container_name: 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 restart: unless-stopped networks: - t1_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: t1_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.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:latest container_name: phpmyadmin restart: unless-stopped networks: - t1_proxy - default ports: - "$PHPMYADMIN_PORT:80" 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: t1_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.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 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 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:latest container_name: grafana restart: unless-stopped networks: - t1_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: t1_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.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 # jDownloader - Download management jdownloader: image: jlesage/jdownloader-2:latest container_name: jdownloader restart: always networks: - t1_proxy ports: - "$JDOWNLOADER_PORT:8168" volumes: - $USERDIR/Downloads/completed:/output - $USERDIR/docker/jdownloader:/config environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $JDOWN_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: jdownloader traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:jdown.$DOMAINNAME traefik.frontend.headers.SSLHost: jdown.$DOMAINNAME traefik.docker.network: t1_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.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" # TransmissionBT - Torrent Downloader # ONLY ACCESSIBLE THROUGH https://domain.com/transmission/web/ if using PathPrefix transmission-vpn: image: haugene/transmission-openvpn:latest container_name: transmission-vpn restart: unless-stopped networks: - t1_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: t1_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.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:latest container_name: sabnzbd restart: unless-stopped networks: - t1_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: t1_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.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:latest container_name: hydra restart: unless-stopped networks: - t1_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: t1_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.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" # Jackett - Torrent proxy # Set url_base in Jackett settings if using PathPrefix jackett: image: linuxserver/jackett:latest container_name: jackett restart: always networks: - t1_proxy ports: - "$JACKETT_PORT:8168" volumes: - $USERDIR/docker/jackett:/config - $USERDIR/Downloads:/downloads - "/etc/localtime:/etc/localtime:ro" environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: traefik.enable: "true" traefik.backend: jackett traefik.protocol: http traefik.port: 9117 traefik.frontend.rule: Host:jackett.$DOMAINNAME # traefik.frontend.rule: Host:$DOMAINNAME; PathPrefix: /jackett traefik.frontend.headers.SSLHost: jackett.$DOMAINNAME traefik.docker.network: t1_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.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:latest container_name: lidarr restart: unless-stopped networks: - t1_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: t1_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.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 restart: unless-stopped networks: - t1_proxy ports: - "$RADARR_PORT:7878" volumes: - $USERDIR/docker/radarr:/config - $USERDIR/Downloads:/downloads - /media:/nas # - $USERDIR/docker/shared/mp4_automator:/config_mp4_automator - "/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: t1_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.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 restart: unless-stopped networks: - t1_proxy ports: - "$SONARR_PORT:8989" volumes: - $USERDIR/docker/sonarr:/config - $USERDIR/Downloads:/downloads - /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: t1_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.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: - t1_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: t1_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.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 restart: unless-stopped networks: - t1_proxy 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: t1_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.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 restart: unless-stopped networks: - t1_proxy 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: t1_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.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 restart: unless-stopped networks: - t1_proxy ports: - "$JELLYFIN_PORT:8096" - "8921:8920" # Changed to 8921 - conflict with Emby 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: t1_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.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" # Ombi - Media Requests ombi: image: linuxserver/ombi:latest container_name: ombi restart: unless-stopped networks: - t1_proxy ports: - "$OMBI_PORT:3579" volumes: - $USERDIR/docker/ombi:/config environment: PUID: $PUID PGID: $PGID TZ: $TZ BASE_URL: /ombi #optional labels: traefik.enable: "true" traefik.backend: ombi traefik.protocol: http traefik.port: 3579 traefik.frontend.rule: Host:ombi.$DOMAINNAME traefik.frontend.headers.SSLHost: ombi.$DOMAINNAME traefik.docker.network: t1_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.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" # Tautulli - Previously PlexPy. Plex statistics and monitoring # Set HTTP Root in Tautulli settings if using PathPrefix tautulli: image: linuxserver/tautulli:latest container_name: tautulli restart: unless-stopped networks: - t1_proxy ports: - "$TAUTULLI_PORT:8181" volumes: - $USERDIR/docker/tautulli/config:/config - $USERDIR/docker/tautulli/logs:/logs:ro environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: traefik.enable: "true" traefik.backend: tautulli traefik.protocol: http traefik.port: 8181 traefik.frontend.rule: Host:tautulli.$DOMAINNAME # traefik.frontend.rule: Host:$DOMAINNAME; PathPrefix: /tautulli traefik.frontend.headers.SSLHost: tautulli.$DOMAINNAME traefik.docker.network: t1_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.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-Sync - For Syncing watched status between plex servers plex-sync: image: patsissons/plex-sync:develop container_name: plex-sync environment: INITIAL_RUN: "true" # DRY_RUN: 0 CRON_SCHEDULE: "*/5 * * * *" SECTION_MAPS: $SYN_PLEX/$SYN_PLEX_HOLLYWOOD $NUC_PLEX/$NUC_PLEX_HOLLYWOOD | $SYN_PLEX/$SYN_PLEX_TVSHOWS $NUC_PLEX/$NUC_PLEX_TVSHOWS | $SYN_PLEX/$SYN_PLEX_INDIAN $NUC_PLEX/$NUC_PLEX_INDIAN | $SYN_PLEX/$SYN_PLEX_KOLLYWOOD $NUC_PLEX/$NUC_PLEX_KOLLYWOOD | $SYN_PLEX/$SYN_PLEX_DOCMOVIES $NUC_PLEX/$NUC_PLEX_DOCMOVIES | $SYN_PLEX/$SYN_PLEX_DOCSHOWS $NUC_PLEX/$NUC_PLEX_DOCSHOWS | $SYN_PLEX/$SYN_PLEX_KIDSMOVIES $NUC_PLEX/$NUC_PLEX_KIDSMOVIES | $SYN_PLEX/$SYN_PLEX_INTERNATIONAL $NUC_PLEX/$NUC_PLEX_INTERNATIONAL restart: unless-stopped # PhotoShow - Image Gallery photoshow: image: linuxserver/photoshow:latest container_name: photoshow restart: unless-stopped networks: - t1_proxy ports: - "$PHOTOSHOW_PORT:80" volumes: - $USERDIR/docker/photoshow/config:/config - $USERDIR/docker/photoshow/thumbs:/Thumbs - /media/ds918/media/photos:/Pictures:ro environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: traefik.enable: "true" traefik.backend: photoshow traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:photoshow.$DOMAINNAME traefik.frontend.headers.SSLHost: photoshow.$DOMAINNAME traefik.docker.network: t1_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.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 FILE MANAGEMENT # Bazarr - Subtitle Management bazarr: image: linuxserver/bazarr:latest container_name: bazarr restart: unless-stopped networks: - t1_proxy ports: - "$BAZARR_PORT:6767" volumes: - $USERDIR/docker/bazarr:/config - /media:/nas environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: traefik.enable: "true" traefik.backend: bazarr traefik.protocol: http traefik.port: 6767 traefik.frontend.rule: Host:bazarr.$DOMAINNAME # traefik.frontend.rule: Host:$DOMAINNAME; PathPrefix: /bazarr traefik.frontend.headers.SSLHost: bazarr.$DOMAINNAME traefik.docker.network: t1_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.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" # Picard - Music Library Tagging and Management picard: image: mikenye/picard:latest container_name: picard restart: unless-stopped networks: - t1_proxy # ports: # - "$PICARD_PORT:5800" volumes: - $USERDIR/Downloads/wip_media:/wip_media:rw - $USERDIR/docker/picard:/config:rw - /media/ds918/media/music:/music:rw - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 labels: traefik.enable: "true" traefik.backend: picard traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:picard.$DOMAINNAME traefik.frontend.headers.SSLHost: picard.$DOMAINNAME traefik.docker.network: t1_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.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" # Handbrake - Video Conversion (Transcoding and compression) handbrake: image: jlesage/handbrake:latest container_name: handbrake restart: unless-stopped networks: - t1_proxy # ports: # - "$HANDBRAKE_PORT:5800" volumes: - $USERDIR/Downloads:/downloads:ro - $USERDIR/docker/handbrake/config:/config:rw - $USERDIR/docker/handbrake/watch:/watch:rw - $USERDIR/Downloads/wip_media:/output:rw environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 AUTOMATED_CONVERSION_KEEP_SOURCE: 1 VNC_PASSWORD: $HANDBRAKE_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: handbrake traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:handbrake.$DOMAINNAME traefik.frontend.headers.SSLHost: handbrake.$DOMAINNAME traefik.docker.network: t1_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.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" # MKVToolNix - Video Editing (Remuxing - changing media container while keeping original source quality) mkvtoolnix: image: jlesage/mkvtoolnix:latest container_name: mkvtoolnix restart: unless-stopped networks: - t1_proxy # ports: # - "$MKVTOOLNIX_PORT:5800" volumes: - $USERDIR/Downloads:/downloads:rw - $USERDIR/docker/mkvtoolnix/config:/config:rw environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $MKVTOOLNIX_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: mkvtoolnix traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:mkvtoolnix.$DOMAINNAME traefik.frontend.headers.SSLHost: mkvtoolnix.$DOMAINNAME traefik.docker.network: t1_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.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" # MakeMKV - Video Editing (Ripping from Disks) makemkv: image: jlesage/makemkv:latest container_name: makemkv restart: unless-stopped networks: - t1_proxy # ports: # - "$MAKEMKV_PORT:5800" volumes: - $USERDIR/Downloads:/Downloads:rw - $USERDIR/docker/makemkv/config:/config:rw - $USERDIR/Downloads/wip_media:/output:rw - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $MAKEMKV_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: makemkv traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:makemkv.$DOMAINNAME traefik.frontend.headers.SSLHost: makemkv.$DOMAINNAME traefik.docker.network: t1_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.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" # FileBot - File renamer filebot: image: jlesage/filebot:latest container_name: filebot restart: unless-stopped networks: - t1_proxy # ports: # - "$FILEBOT_PORT:5800" volumes: # A *.psm license file is required in /config # https://github.com/jlesage/docker-filebot#installing-a-license - $USERDIR/docker/filebot:/config - /media:/nas - $USERDIR/Downloads:/downloads environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWD: $FILEBOT_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: filebot traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:filebot.$DOMAINNAME traefik.frontend.headers.SSLHost: filebot.$DOMAINNAME traefik.docker.network: t1_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.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" ############################# UTILITIES # Firefox - Web Broswer firefox: image: jlesage/firefox:latest container_name: firefox restart: unless-stopped networks: - t1_proxy # ports: # - "$FIREFOX_PORT:5800" volumes: - $USERDIR/docker/firefox:/config - $USERDIR/Downloads/completed:/config/downloads - /dev/shm:/dev/shm - $USERDIR/docker/shared:/shared environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWD: $FIREFOX_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: firefox traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:firefox.$DOMAINNAME traefik.frontend.headers.SSLHost: firefox.$DOMAINNAME traefik.docker.network: t1_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.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" # Glances - System Information glances: image: nicolargo/glances:latest container_name: glances restart: unless-stopped privileged: true # network_mode: host networks: - t1_proxy # ports: # - "$GLANCES_PORT:61208" pid: host volumes: - $USERDIR/docker/glances/glances.conf:/glances/conf/glances.conf # Use this if you want to add a glances.conf file - /var/run/docker.sock:/var/run/docker.sock:ro environment: # GLANCES_OPT: "-C /glances/conf/glances.conf --quiet --export influxdb" GLANCES_OPT: "-w" labels: traefik.enable: "true" traefik.backend: glances traefik.protocol: http traefik.port: 61208 traefik.frontend.rule: Host:glances.$DOMAINNAME traefik.frontend.headers.SSLHost: glances.$DOMAINNAME traefik.docker.network: t1_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.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" # APCUPSD - APC UPS Management # create the apcupsd.conf file apcupsd: image: gersilex/apcupsd:lastest container_name: apcupsd restart: unless-stopped networks: - t1_proxy ports: - "$APCUPSD_PORT:3551" privileged: true tty: true volumes: - /tmp/apcupsd-docker:/tmp/apcupsd-docker - $USERDIR/docker/apcupsd/apcupsd.conf:/etc/apcupsd/apcupsd.conf - $USERDIR/docker/apcupsd/doshutdown:/etc/apcupsd/doshutdown - $USERDIR/docker/apcupsd/apcupsd.events:/var/log/apcupsd.events # qDirStat - Directory Statistics qdirstat: image: jlesage/qdirstat:latest container_name: qdirstat restart: unless-stopped networks: - t1_proxy # ports: # - "$QDIRSTAT_PORT:5800" volumes: - $USERDIR:/storage:ro - $USERDIR/docker/qdirstat/config:/config:rw - /media:/nas environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $QDIRSTAT_VNC_PASSWD labels: traefik.enable: "true" traefik.backend: qdirstat traefik.protocol: http traefik.port: 5800 traefik.frontend.rule: Host:qdirstat.$DOMAINNAME traefik.frontend.headers.SSLHost: qdirstat.$DOMAINNAME traefik.docker.network: t1_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.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" # Guacamole - Remote desktop, SSH, on Telnet on any HTML5 Browser # Create all databases and tables first guacamole: image: guacamole/guacamole:latest container_name: guacamole restart: unless-stopped networks: - t1_proxy ports: - "$GUACAMOLE_PORT:8080" links: - guacd:guacd # - mariadb:mysql # depends_on: # - mariadb environment: GUACD_HOSTNAME: guacd MYSQL_HOSTNAME: $DB_HOST MYSQL_PORT: $DB_PORT MYSQL_DATABASE: guacamole MYSQL_USER: $GUAC_MYSQL_USER MYSQL_PASSWORD: $GUAC_MYSQL_PASSWORD labels: traefik.enable: "true" traefik.backend: guacamole traefik.protocol: http traefik.port: 8080 traefik.frontend.rule: "Host:guac.$DOMAINNAME; AddPrefix: /guacamole" traefik.frontend.headers.SSLHost: guac.$DOMAINNAME traefik.docker.network: t1_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.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" # Guacamole Daemon - Needed for Guacamole guacd: image: guacamole/guacd:latest container_name: guacd restart: unless-stopped # Dozzle - Real-time Docker Log Viewer dozzle: image: amir20/dozzle:latest container_name: dozzle restart: unless-stopped networks: - t1_proxy # ports: # - "$DOZZLE_PORT:8080" environment: DOZZLE_LEVEL: info DOZZLE_TAILSIZE: 300 DOZZLE_FILTER: "status=running" # DOZZLE_FILTER: "label=log_me" # limits logs displayed to containers with this label volumes: - /var/run/docker.sock:/var/run/docker.sock labels: traefik.enable: "true" traefik.backend: dozzle traefik.protocol: http traefik.port: 8080 traefik.frontend.rule: "Host:dozzle.$DOMAINNAME" traefik.frontend.headers.SSLHost: dozzle.$DOMAINNAME traefik.docker.network: t1_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.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" # VSCode - VSCode Editing vscode: image: codercom/code-server:latest container_name: vscode restart: unless-stopped networks: - t1_proxy # ports: # - "$VSCODE_PORT:8080" volumes: - $USERDIR/docker/vscode/project:/home/coder/project - $USERDIR/docker/vscode/local:/home/coder/.local/share/code-server environment: PASSWORD: $VSCODE_PASSWORD # Run as root first, create the directories, then change permissions to user:docker and 775. Disable run as root below. # user: "0" labels: traefik.enable: "true" traefik.backend: vscode traefik.protocol: http traefik.port: 8080 traefik.frontend.rule: "Host:vscode.$DOMAINNAME" traefik.frontend.headers.SSLHost: vscode.$DOMAINNAME traefik.docker.network: t1_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.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" # StatPing - Status Page & Monitoring Server statping: image: hunterlong/statping:latest container_name: statping restart: unless-stopped networks: - t1_proxy ports: - "$STATPING_PORT:8080" volumes: - $USERDIR/docker/statping:/app environment: VIRTUAL_HOST: localhost VIRTUAL_PORT: 8080 DB_CONN: postgres DB_HOST: postgres DB_USER: $STATPING_DB_USER DB_PASS: $STATPING_DB_PASS DB_DATABASE: $STATPING_DB IS_DOCKER: "true" DISABLE_LOGS: "false" NAME: StatPing DESCRIPTION: Monitor web services labels: traefik.enable: "true" traefik.backend: statping traefik.protocol: http traefik.port: 8080 traefik.frontend.rule: "Host:statping.$DOMAINNAME" traefik.frontend.headers.SSLHost: statping.$DOMAINNAME traefik.docker.network: t1_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.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" # SmokePing - Network latency Monitoring smokeping: image: linuxserver/smokeping:latest container_name: smokeping restart: unless-stopped networks: - t1_proxy # ports: # - "$SMOKEPING_PORT:80" volumes: - $USERDIR/docker/smokeping/config:/config - $USERDIR/docker/smokeping/data:/data environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: traefik.enable: "true" traefik.home: "true" traefik.backend: smokeping traefik.protocol: http traefik.port: 80 traefik.frontend.rule: Host:smokeping.$DOMAINNAME traefik.frontend.headers.SSLHost: smokeping.$DOMAINNAME traefik.docker.network: t1_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.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" ############################# MAINTENANCE # Ouroboros - Automatic Docker Container Updates ouroboros: image: pyouroboros/ouroboros:latest container_name: ouroboros restart: unless-stopped networks: - default volumes: - /var/run/docker.sock:/var/run/docker.sock environment: TZ: $TZ INTERVAL: 86400 LOG_LEVEL: debug SELF_UPDATE: "true" CLEANUP: "true" IGNORE: traefik influxdb hassio_dns homeassistant hassio_supervisor addon_core_check_config addon_62c7908d_autobackup plexms NOTIFIERS: "tgram://$TGRAM_BOT_TOKEN/$TGRAM_CHAT_ID/" # Docker-GC - Automatic Docker Garbage Collection # Create docker-gc-exclude file dockergc: image: clockworksoul/docker-gc-cron:latest container_name: docker-gc restart: unless-stopped network_mode: none volumes: - /var/run/docker.sock:/var/run/docker.sock - $USERDIR/docker/docker-gc/docker-gc-exclude:/etc/docker-gc-exclude environment: CRON: 0 0 * * * FORCE_IMAGE_REMOVAL: 1 FORCE_CONTAINER_REMOVAL: 0 GRACE_PERIOD_SECONDS: 604800 DRY_RUN: 0 CLEAN_UP_VOLUMES: 1 TZ: $TZ ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/app.toml.example ================================================ # Replace APPNAME, LAN-IP, PORT, example.com [backends] [backends.backend-APPNAME] [backends.backend-APPNAME.servers] [backends.backend-APPNAME.servers.server-APPNAME-ext] url = "http://LAN-IP:PORT" weight = 0 [frontends] [frontends.frontend-APPNAME] backend = "backend-APPNAME" passHostHeader = true [frontends.frontend-APPNAME.routes] [frontends.frontend-APPNAME.routes.route-APPNAME-ext] rule = "Host:APPNAME.example.com" [frontends.frontend-APPNAME.headers] SSLRedirect = true SSLHost = "APPNAME.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-APPNAME.auth] headerField = "X-WebAuth-User" [frontends.frontend-APPNAME.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/dafang1.toml ================================================ [backends] [backends.backend-dafang1] [backends.backend-dafang1.servers] [backends.backend-dafang1.servers.server-dafang1-ext] url = "https://192.168.5.246" weight = 0 [frontends] [frontends.frontend-dafang1] backend = "backend-dafang1" passHostHeader = true [frontends.frontend-dafang1.routes] [frontends.frontend-dafang1.routes.route-dafang1-ext] rule = "Host:dafang1.example.com" [frontends.frontend-dafang1.headers] SSLRedirect = true SSLHost = "dafang1.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-dafang1.auth] headerField = "X-WebAuth-User" [frontends.frontend-dafang1.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/hassio.toml ================================================ [backends] [backends.backend-hassio] [backends.backend-hassio.servers] [backends.backend-hassio.servers.server-hassio-ext] url = "http://192.168.5.908888" weight = 0 [frontends] [frontends.frontend-hassio] backend = "backend-hassio" passHostHeader = true [frontends.frontend-hassio.routes] [frontends.frontend-hassio.routes.route-hassio-ext] rule = "Host:hassio.example.com" [frontends.frontend-hassio.headers] SSLRedirect = true SSLHost = "hassio.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" # ENABLING AUTH CAUSES ISSUES WITH SERVICES THAT RELY ON REACHING HASSIO.example.COM (EG. TELEGRAM, GOOGLE ASSISTANT, ETC.) # [frontends.frontend-hassio.auth] # headerField = "X-WebAuth-User" # [frontends.frontend-hassio.auth.forward] # address = "http://oauth:4181" # trustForwardHeader = true # authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/pihole.toml ================================================ [backends] [backends.backend-pihole] [backends.backend-pihole.servers] [backends.backend-pihole.servers.server-pihole-ext] url = "http://192.168.1.26" weight = 0 [frontends] [frontends.frontend-pihole] backend = "backend-pihole" passHostHeader = true [frontends.frontend-pihole.routes] [frontends.frontend-pihole.routes.route-pihole-ext] rule = "Host:pi.example.com;AddPrefix:/admin" [frontends.frontend-pihole.headers] SSLRedirect = true SSLHost = "pi.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-pihole.auth] headerField = "X-WebAuth-User" [frontends.frontend-pihole.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/plexwebtools.toml ================================================ [backends] [backends.backend-plexwebtools] [backends.backend-plexwebtools.servers] [backends.backend-plexwebtools.servers.server-plexwebtools-ext] url = "http://192.168.5.90:33400/" weight = 0 [frontends] [frontends.frontend-plexwebtools] backend = "backend-plexwebtools" passHostHeader = true [frontends.frontend-plexwebtools.routes] [frontends.frontend-plexwebtools.routes.route-plexwebtools-ext] rule = "Host:pwt.example.com" [frontends.frontend-plexwebtools.headers] SSLRedirect = true SSLHost = "pwt.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-plexwebtools.auth] headerField = "X-WebAuth-User" [frontends.frontend-plexwebtools.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/shellinabox.toml ================================================ [backends] [backends.backend-shellinabox] [backends.backend-shellinabox.servers] [backends.backend-shellinabox.servers.server-shellinabox-ext] url = "http://192.168.5.904200" weight = 0 [frontends] [frontends.frontend-shellinabox] backend = "backend-shellinabox" passHostHeader = true [frontends.frontend-shellinabox.routes] [frontends.frontend-shellinabox.routes.route-shellinabox-ext] rule = "Host:shell.example.com" [frontends.frontend-shellinabox.headers] SSLRedirect = true SSLHost = "shell.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-shellinabox.auth] headerField = "X-WebAuth-User" [frontends.frontend-shellinabox.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/synology.toml ================================================ [backends] [backends.backend-synology] [backends.backend-synology.servers] [backends.backend-synology.servers.server-synology-ext] url = "http://192.168.5.254:5000" weight = 0 [frontends] [frontends.frontend-synology] backend = "backend-synology" passHostHeader = true [frontends.frontend-synology.routes] [frontends.frontend-synology.routes.route-synology-ext] rule = "Host:syno.example.com" [frontends.frontend-synology.headers] SSLRedirect = true SSLHost = "syno.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-synology.auth] headerField = "X-WebAuth-User" [frontends.frontend-synology.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/synplex.toml ================================================ [backends] [backends.backend-plex] [backends.backend-plex.servers] [backends.backend-plex.servers.server-plex-ext] url = "http://192.168.5.238:32400" weight = 0 [frontends] [frontends.frontend-plex] backend = "backend-plex" passHostHeader = true [frontends.frontend-plex.routes] [frontends.frontend-plex.routes.route-plex-ext] rule = "Host:synplex.example.com" ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/unifi.toml ================================================ [backends] [backends.backend-ufi] [backends.backend-ufi.servers] [backends.backend-ufi.servers.server-ufi-ext] url = "https://192.168.5.254:8443" weight = 0 [frontends] [frontends.frontend-ufi] backend = "backend-ufi" passHostHeader = true [frontends.frontend-ufi.routes] [frontends.frontend-ufi.routes.route-ufi-ext] rule = "Host:ufi.example.com" [frontends.frontend-ufi.headers] SSLRedirect = true SSLHost = "ufi.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-ufi.auth] headerField = "X-WebAuth-User" [frontends.frontend-ufi.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/webmin.toml ================================================ [backends] [backends.backend-webmin] [backends.backend-webmin.servers] [backends.backend-webmin.servers.server-webmin-ext] url = "http://192.168.5.90:8110" weight = 0 [frontends] [frontends.frontend-webmin] backend = "backend-webmin" passHostHeader = true [frontends.frontend-webmin.routes] [frontends.frontend-webmin.routes.route-webmin-ext] rule = "Host:webmin.example.com" [frontends.frontend-webmin.headers] SSLRedirect = true SSLHost = "webmin.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-webmin.auth] headerField = "X-WebAuth-User" [frontends.frontend-webmin.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules/xiaofang1.toml ================================================ [backends] [backends.backend-xiaofang1] [backends.backend-xiaofang1.servers] [backends.backend-xiaofang1.servers.server-xiaofang1-ext] url = "https://192.168.15.4" weight = 0 [frontends] [frontends.frontend-xiaofang1] backend = "backend-xiaofang1" passHostHeader = true [frontends.frontend-xiaofang1.routes] [frontends.frontend-xiaofang1.routes.route-xiaofang1-ext] rule = "Host:xiaofang1.example.com" [frontends.frontend-xiaofang1.headers] SSLRedirect = true SSLHost = "xiaofang1.example.com" SSLForceHost = true STSSeconds = 315360000 STSIncludeSubdomains = true STSPreload = true forceSTSHeader = true frameDeny = true contentTypeNosniff = true browserXSSFilter = true customFrameOptionsValue="allow-from https:example.com" [frontends.frontend-xiaofang1.auth] headerField = "X-WebAuth-User" [frontends.frontend-xiaofang1.auth.forward] address = "http://oauth:4181" trustForwardHeader = true authResponseHeaders = ["X-Forwarded-User"] ================================================ FILE: archives/traefik_v1/traefik1-standalone/rules.toml ================================================ ================================================ FILE: archives/traefik_v1/traefik1-standalone/traefik.toml ================================================ #debug = true logLevel = "INFO" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC InsecureSkipVerify = true defaultEntryPoints = ["https", "http"] # WEB interface of Traefik - it will show web page with overview of frontend and backend configurations [api] entryPoint = "traefik" dashboard = true debug = false address = ":8080" # usersFile = "/shared/.htpasswd" # Force HTTPS [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" # [entryPoints.traefik] # address = ":8080" # [entryPoints.https.auth.basic.users] # usersFile = "/shared/.htpasswd" [entryPoints.https] address = ":443" # [entryPoints.https.auth.basic.users] # usersFile = "/shared/.htpasswd" [entryPoints.https.tls] # [[entryPoints.https.tls.certificates]] # certFile = "/home/example/docker/shared/example_com-unified.crt" # keyFile = "/home/example/docker/shared/pi20151206.key" [file] directory = "/etc/traefik/rules/" watch = true # Let's encrypt configuration [acme] email = "admin@example.com" storage="/etc/traefik/acme/acme.json" entryPoint = "https" acmeLogging=true onDemand = false #create certificate when container is created #onHostRule = true #disable for wildcard domains # Use a HTTP-01 acme challenge rather than TLS-SNI-01 challenge #[acme.httpChallenge] #does not work with wildcard domains, use dns challenge # entryPoint = "http" #does not work with wildcard domains [acme.dnsChallenge] provider = "cloudflare" delayBeforeCheck = 180 [[acme.domains]] main = "example.com" [[acme.domains]] main = "*.example.com" # Connection to docker host system (docker.sock) [docker] endpoint = "unix:///var/run/docker.sock" domain = "example.com" watch = true # This will hide all docker containers that don't have explicitly # set label to "enable" exposedbydefault = false ================================================ FILE: archives/traefik_v1/traefik1-standalone/traefik.toml.crab ================================================ logLevel = "WARN" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC defaultEntryPoints = ["http", "https"] # WEB interface of Traefik - it will show web page with overview of frontend and backend configurations [web] address = ":8080" [web.auth.basic] usersFile = "/shared/.htpasswd" # Force HTTPS [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" [entryPoints.https] address = ":443" # [entryPoints.https.auth.basic] # usersFile = "/certs/.htpasswd" [entryPoints.https.tls] # [[entryPoints.https.tls.certificates]] # certFile = "/home/example/docker/certs/example_com-unified.crt" # keyFile = "/home/example/docker/certs/pi20151206.key" [file] watch = true filename = "/etc/traefik/rules.toml" # Let's encrypt configuration [acme] email = "admin@example.com" storage="/etc/traefik/acme/acme.json" entryPoint = "https" acmeLogging=true onDemand = false #create certificate when container is created onHostRule = true # Use a HTTP-01 acme challenge rather than TLS-SNI-01 challenge [acme.httpChallenge] entryPoint = "http" # Connection to docker host system (docker.sock) [docker] endpoint = "unix:///var/run/docker.sock" domain = "traefik.duckdns.org" watch = true # This will hide all docker containers that don't have explicitly # set label to "enable" exposedbydefault = false ================================================ FILE: archives/traefik_v1/traefik1-standalone/traefik.toml.example ================================================ #debug = true logLevel = "INFO" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC InsecureSkipVerify = true defaultEntryPoints = ["https", "http"] # WEB interface of Traefik - it will show web page with overview of frontend and backend configurations [api] entryPoint = "traefik" dashboard = true debug = false address = ":8080" # Force HTTPS [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" [entryPoints.https] address = ":443" # [entryPoints.https.auth.basic.users] # usersFile = "/shared/.htpasswd" [entryPoints.https.tls] [file] directory = "/etc/traefik/rules/" watch = true # Let's encrypt configuration [acme] email = "admin@example.com" storage="/etc/traefik/acme/acme.json" entryPoint = "https" acmeLogging=true onDemand = false #create certificate when container is created #onHostRule = true #disable for wildcard domains # Use a HTTP-01 acme challenge rather than TLS-SNI-01 challenge #[acme.httpChallenge] #does not work with wildcard domains, use dns challenge # entryPoint = "http" #does not work with wildcard domains [acme.dnsChallenge] provider = "cloudflare" delayBeforeCheck = 180 [[acme.domains]] main = "example.com" [[acme.domains]] main = "*.example.com" # Connection to docker host system (docker.sock) [docker] endpoint = "unix:///var/run/docker.sock" domain = "example.com" watch = true # This will hide all docker containers that don't have explicitly # set label to "enable" exposedbydefault = false ================================================ FILE: archives/traefik_v1/traefik1-standalone/traefik.toml.singledomain ================================================ logLevel = "WARN" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC defaultEntryPoints = ["http", "https"] # WEB interface of Traefik - it will show web page with overview of frontend and backend configurations [web] address = ":8080" [web.auth.basic] usersFile = "/certs/.htpasswd" # Force HTTPS [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" [entryPoints.https] address = ":443" # [entryPoints.https.auth.basic] # usersFile = "/certs/.htpasswd" [entryPoints.https.tls] # [[entryPoints.https.tls.certificates]] # certFile = "/home/example/docker/certs/example_com-unified.crt" # keyFile = "/home/example/docker/certs/pi20151206.key" # Let's encrypt configuration [acme] email = "admin@example.com" storage="/etc/traefik/acme/acme.json" entryPoint = "https" acmeLogging=true onDemand = false #create certificate when container is created onHostRule = true # Use a HTTP-01 acme challenge rather than TLS-SNI-01 challenge [acme.httpChallenge] entryPoint = "http" # Connection to docker host system (docker.sock) [docker] endpoint = "unix:///var/run/docker.sock" domain = "example.com" watch = true # This will hide all docker containers that don't have explicitly # set label to "enable" exposedbydefault = false ================================================ FILE: archives/traefik_v1/traefik1-standalone/traefik.toml.wcddns ================================================ #debug = true logLevel = "ERROR" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC InsecureSkipVerify = true defaultEntryPoints = ["https", "http"] # WEB interface of Traefik - it will show web page with overview of frontend and backend configurations [web] address = ":8080" [web.auth.basic] usersFile = "/shared/.htpasswd" # Force HTTPS [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" [entryPoints.https] address = ":443" # [entryPoints.https.auth.basic] # usersFile = "/shared/.htpasswd" [entryPoints.https.tls] # [[entryPoints.https.tls.certificates]] # certFile = "/home/example/docker/shared/example_com-unified.crt" # keyFile = "/home/example/docker/shared/pi20151206.key" [file] watch = true filename = "/etc/traefik/rules.toml" # Let's encrypt configuration [acme] email = "email@example.com" storage="/etc/traefik/acme/acme.json" entryPoint = "https" acmeLogging=true onDemand = false #create certificate when container is created #onHostRule = true #disable for wildcard domains # Use a HTTP-01 acme challenge rather than TLS-SNI-01 challenge #[acme.httpChallenge] #does not work with wildcard domains, use dns challenge # entryPoint = "http" #does not work with wildcard domains [acme.dnsChallenge] provider = "duckdns" delayBeforeCheck = 0 [[acme.domains]] main = "smarthomebeginner.duckdns.org" #[[acme.domains]] # main = "*.smarthomebeginner.duckdns.org" # Connection to docker host system (docker.sock) [docker] endpoint = "unix:///var/run/docker.sock" domain = "smarthomebeginne.duckdns.org" watch = true # This will hide all docker containers that don't have explicitly # set label to "enable" exposedbydefault = false ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/backcam.toml ================================================ [backends] [backends.backend-backcam.servers] [backends.backend-backcam.servers.server-backcam-ext] url = "http://192.168.1.93" weight = 0 [frontends] [frontends.frontend-backcam] backend = "backend-backcam" passHostHeader = true basicAuth = [ "user:HASHED_PASSWORD", ] [frontends.frontend-backcam.routes] [frontends.frontend-backcam.routes.route-backcam-ext] rule = "Host:backcam.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/dsmfiles.toml ================================================ [backends] [backends.backend-dsmfiles] [backends.backend-dsmfiles.servers] [backends.backend-dsmfiles.servers.server-dsmfiles-ext] url = "http://192.168.1.254:7000" weight = 0 [frontends] [frontends.frontend-dsmfiles] backend = "backend-dsmfiles" passHostHeader = true basicAuth = [ "user:HASHED_PASSWORD", ] [frontends.frontend-dsmfiles.routes] [frontends.frontend-dsmfiles.routes.route-dsmfiles-ext] rule = "Host:dsmfiles.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/frontcam.toml ================================================ [backends] [backends.backend-frontcam.servers] [backends.backend-frontcam.servers.server-frontcam-ext] url = "http://192.168.1.92" weight = 0 [frontends] [frontends.frontend-frontcam] backend = "backend-frontcam" passHostHeader = true basicAuth = [ "user:HASHED_PASSWORD", ] [frontends.frontend-frontcam.routes] [frontends.frontend-frontcam.routes.route-frontcam-ext] rule = "Host:frontcam.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/hassio.toml ================================================ [backends] [backends.backend-hassio] [backends.backend-hassio.servers] [backends.backend-hassio.servers.server-hassio-ext] url = "http://192.168.1.908888" weight = 0 [frontends] [frontends.frontend-hassio] backend = "backend-hassio" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-hassio.routes] [frontends.frontend-hassio.routes.route-hassio-ext] rule = "Host:hassio.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/hassio_nodered.toml ================================================ [backends] [backends.backend-node.servers] [backends.backend-node.servers.server-node-ext] url = "http://192.168.1.90:1880" weight = 0 [frontends] [frontends.frontend-node] backend = "backend-node" passHostHeader = true [frontends.frontend-node.routes] [frontends.frontend-node.routes.route-node-ext] rule = "Host:node.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/hassio_ssh_terminal.toml ================================================ [backends] [backends.backend-hassterm] [backends.backend-hassterm.servers] [backends.backend-hassterm.servers.server-hassterm-ext] url = "http://192.168.1.90:7681" weight = 0 [frontends] [frontends.frontend-hassterm] backend = "backend-hassterm" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-hassterm.routes] [frontends.frontend-hassterm.routes.route-hassterm-ext] rule = "Host:hassterm.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/hassio_vscode.toml ================================================ [backends] [backends.backend-vscode] [backends.backend-vscode.servers] [backends.backend-vscode.servers.server-vscode-ext] url = "http://192.168.1.90:1337" weight = 0 [frontends] [frontends.frontend-vscode] backend = "backend-vscode" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-vscode.routes] [frontends.frontend-vscode.routes.route-vscode-ext] rule = "Host:vscode.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/pihole.toml ================================================ [backends] [backends.backend-pihole] [backends.backend-pihole.servers] [backends.backend-pihole.servers.server-pihole-ext] url = "http://192.168.1.26" weight = 0 [frontends] [frontends.frontend-pihole] backend = "backend-pihole" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-pihole.routes] [frontends.frontend-pihole.routes.route-pihole-ext] rule = "Host:pi.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/plex.toml ================================================ [backends] [backends.backend-plex] [backends.backend-plex.servers] [backends.backend-plex.servers.server-plex-ext] url = "http://192.168.1.254:32400" weight = 0 [frontends] [frontends.frontend-plex] backend = "backend-plex" passHostHeader = true [frontends.frontend-plex.routes] [frontends.frontend-plex.routes.route-plex-ext] rule = "Host:plex.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/plexwebtools.toml ================================================ [backends] [backends.backend-plexwebtools] [backends.backend-plexwebtools.servers] [backends.backend-plexwebtools.servers.server-plexwebtools-ext] url = "http://192.168.1.254:33400/" weight = 0 [frontends] [frontends.frontend-plexwebtools] backend = "backend-plexwebtools" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-plexwebtools.routes] [frontends.frontend-plexwebtools.routes.route-plexwebtools-ext] rule = "Host:pwt.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/portainer.toml ================================================ [backends] [backends.backend-portainer] [backends.backend-portainer.servers] [backends.backend-portainer.servers.server-portainer-ext] url = "http://192.168.1.90:8146" weight = 0 [frontends] [frontends.frontend-portainer] backend = "backend-portainer" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-portainer.routes] [frontends.frontend-portainer.routes.route-portainer-ext] rule = "Host:portainer.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/printer.toml ================================================ [backends] [backends.backend-printer] [backends.backend-printer.servers] [backends.backend-printer.servers.server-printer-ext] url = "http://192.168.1.23" weight = 0 [frontends] [frontends.frontend-printer] backend = "backend-printer" passHostHeader = true basicAuth = [ "user:HASHED_PASSWORD", ] [frontends.frontend-printer.routes] [frontends.frontend-printer.routes.route-printer-ext] rule = "Host:printer.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/shellinabox.toml ================================================ [backends] [backends.backend-shellinabox] [backends.backend-shellinabox.servers] [backends.backend-shellinabox.servers.server-shellinabox-ext] url = "https://192.168.1.904200" weight = 0 [frontends] [frontends.frontend-shellinabox] backend = "backend-shellinabox" passHostHeader = true basicAuth = [ "user:HASHED_PASSWORD", ] [frontends.frontend-shellinabox.routes] [frontends.frontend-shellinabox.routes.route-shellinabox-ext] rule = "Host:shell.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/synology.toml ================================================ [backends] [backends.backend-synology.servers] [backends.backend-synology.servers.server-synology-ext] url = "http://192.168.1.254:5000" weight = 0 [frontends] [frontends.frontend-synology] backend = "backend-synology" passHostHeader = true [frontends.frontend-synology.routes] [frontends.frontend-synology.routes.route-synology-ext] rule = "Host:syno.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/transmission.toml ================================================ [backends] [backends.backend-trans] [backends.backend-trans.servers] [backends.backend-trans.servers.server-trans-ext] url = "http://192.168.1.90:8169" weight = 0 [frontends] [frontends.frontend-trans] backend = "backend-trans" passHostHeader = true # basicAuth = [ # "user:HASHED_PASSWORD", # ] [frontends.frontend-trans.routes] [frontends.frontend-trans.routes.route-trans-ext] rule = "Host:trans.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/webmin.toml ================================================ [backends] [backends.backend-webmin.servers] [backends.backend-webmin.servers.server-webmin-ext] url = "http://192.168.1.90:8110" weight = 0 [frontends] [frontends.frontend-webmin] backend = "backend-webmin" passHostHeader = true basicAuth = [ "user:HASHED_PASSWORD", ] [frontends.frontend-webmin.routes] [frontends.frontend-webmin.routes.route-webmin-ext] rule = "Host:webmin.example.com" ================================================ FILE: archives/traefik_v1/traefik1-swarm/rules/xiaofang1.toml ================================================ [backends] [backends.backend-xiaofang1.servers] [backends.backend-xiaofang1.servers.server-xiaofang1-ext] url = "https://192.168.1.83" weight = 0 [frontends] [frontends.frontend-xiaofang1] backend = "backend-xiaofang1" passHostHeader = true [frontends.frontend-xiaofang1.routes] [frontends.frontend-xiaofang1.routes.route-xiaofang1-ext] rule = "Host:xiaofang1.example.com" ================================================ FILE: archives/traefik_v3-pre-deployrr/CHANGELOG.md ================================================ ###################### THIS CHANGELOG IS NO LONGER MAINTAINED. SEE DETAILED COMMIT LOGS. ########################## # Changelog - Only showing high-level changes. Smaller changes are too many to list. See commits. ## Planned (notes for future): - Scrutiny, Rdiffweb, plex image cleaner, Dockge - apprise, Apprise api, remmina, Webtop, openvscode-server, - Add projectsend, embystat, nextcloud, nut-upsd, HealthChecks, FileRun, fail2ban, ofelia, scrutiny to NUC, Wireguard, traktarr, listrr, Subliminal, netdata, Exportarr, Unpackarr - Check Cloudbox/cloudbox - plex autoscan, cloudplow, plexdupefinder, plextraktsync - implement secrets and remove variables from .env - add prometheus, glances to influxdb, speedtest to influxdb - Web GUI for rclone - Switch to Hotio.dev's cloudflareddns, - Check traefik buffering - to avoid http error 431 - header request size too large - Implement thelounge, privatebin ## January 23, 2022 - To many changes to list. See detailed commit log. ## October 10, 2021 - Discontinuing this overall changelog due to commits now having a detailed log. - Updated to Traefik 2.5.x ## January 6, 2021 - Moved server to Proxmox on a dedicated cloud/seedbox. - Extensive tidying up of the setup. - Moved all container data to the new "appdata" folder. - Added Google Drive using rclone and mergerfs. - Removed Emby. Added Readarr and Tiny Media Manager ## October 15, 2020 - Added Duplicati - Fixed Cloudflare Companion - secrets not working in 6.3.0 ## October 03, 2020 - Upgraded to Traefik 2.3.1. - Obsoleted Traefik Error Pages - Fixed TLS Options ## August 20, 2020 - Replaced Ouroboros with Watchtower - Changed Docker-Socket-Proxy from tecnativa to fluencelabs image - More granularity on permissions ## August 17, 2020 - Moved some of the apps to Synology docker stack (dockerc-compose-t2-synology.yml) - Portainer, MariaDB, InfluxDB, Mosquitto MQTT Broker, Cloudflare DDNS, Redis. Add my NUC stack as a separate endpoint NAS Portainer. - Implemented Tecnativa Socket Proxy - Traefik, Portainer, Glances, Dozzle, Ouroboros, Docker-GC, Cloudflare Companion - Moved from Home Assistant Supervised to Home Assistant Core - Fixed multihost CNAME creation in Cloudflare Companion - Fully rolled out Docker secrets - Traefik, Authelia, Plex, Guacamole, OAuth, MariaDB, etc.. There are still some images that do not support secrets. - Renamed docker-compose-synology-t2.yml to docker-compose-t2-synology.yml - Obsoleted SmokePing - Obsoleted HA-DockerMon - Obsoleted UniFi Controller - Obsoleted Postgres - Updated Authelia configuration.yml.example - Obsoleted ZoneMinder. Moved to MotionEye - Added Traefik Custom Error Pages - Added SMTP to Telegram ## July 22, 2020 - Implemented socket proxy - Traefik, Portainer, Dozzle, Glances, cf-Companion, Docker-GC, WatchTower. Exception: ha-dockermon. ## July 16, 2020 - Removed USER from docker group to enforce use of sudo for docker commands (improve security) - Updated bash_aliases - Partially implemented Docker secrets - passHostHeader is true by default. Removed from rules. - Moved from toml to yml. Included examples for both in repo. - Added \$SECRETSDIR env variable - Expanded bash_aliases ## July 14, 2020 - Added Synology Docker Compose for Traefik 2 - Introduced new environmental variable \$DOCKERDIR for simplicity ## June 25, 2020 - Updated Authelia volumes to reflect the current structure - Cleaned up LazyLibrarian, Calibre, and Caliber-web - Bug fixes and typos - Added /dev/dri volumes to support hardware transcoding in Plex, Emby, and Jellyfin ## June 12, 2020 - Added Home Assistant Core - Added Redis and Redis Commander - Enabled Authelia to use Redis - Added LazyLibrarian, Calibre, and Caliber-web ## May 31, 2020 - Removed tls=true from service since tls.certresolver=dns-cloudflare auto enables TLS - Enabled Cloudflare proxy - Added Cloudflare Companion to auto create CNAMEs for services - Replaces Cloudflare DDNS with Oznu's image ## May 19, 2020 - Removed Jackett from VPN - Removed qBittorrent - Added Home Assistant Core to Obsolete as a backup (due to recent developments with Home Assistant) ## May 18, 2020 - Switched default auth from OAuth to Authelia - Added default certresolver and TLS options and removed these from all services - Added VSCode, Motion Eye - Obsoleted Cloud Commander, CloudlIDE, Linuxserver VSCode - Set exposedByDefault to True so Traefik is enabled by default for all services ## May 11, 2020 - Added Authelia Lite multifactor authentication ## April 25, 2020 - Added Traefik Certificate Dumper, Cloudflare DDNS ## April 19, 2020 - Switched to Traefik 2.2 as default ## March 31, 2020 - Added Ombi, PhotoShow - Moved Traefik-Home, MQTT Admin, xTeVe, Piwigo, MiFlora Daemon, xTeVe, Logarr to Obsolete list ## January 14, 2020 - Added dozzle, smokeping, Traefik-Home, and VSCode Server - Thanks github.com/thefrenchmatt ## January 9, 2020 - Replace TellyTV with xTeve - Re-added Emby for Testing ## January 7, 2020 - Added MiFlora MQTT Daemon to monitor plant status, AirSonic, and MariaDB - Obsoleted Varken ## January 6, 2020 - Switched radarr and sonarr to "preview" tag to use the new low resource UI. - Renamed Traefik 1 folder from "traefik" to "traefik1" ## December 16, 2019 - Significant changes - too many to list - Included first draft of Traefik 2.1 setup - Included a draft of Traefik 1 in Docker Swarm mode - Removed monitorr (use statping instead) ## November 22, 2019 - Replaced Emby with Jellyfin - Added Postgres database for StatPing ## November 21, 2019 - Added Autoindex - Addded TellyTV for IPTV proxy for plex - Added StatPing with Grafana Dashboard - not working yet - Separated VPN apps into different compose file - Removed IPVanish container and put vpn apps behind Transmission-VPN's network ## November 8, 2019 - Harmonized paths and removed unused volumes - Moved Plex and Emby transcoding to /dev/shm (RAM) ## November 7, 2019 - Added IPVanish VPN container. - Added VPN support for Jackett, qBittorrent, and jDownloader. - Initial push to GitHub ## November 6, 2019 - Moved environmental variables to .env file ## November 4, 2019 - Added plex-sync to sync two plex servers. - Added MakeMKV. ## October 28, 2019 - Added Plex, MKVToolNix, QDirStat ## October 24, 2019 - Added Picard, Handbrake, and Filebot ## Oct 14, 2019 - Implemented Google OAuth ## Oct 11, 2019 - Added Firefox, Glances, jDownloader, Logarr, Monitorr, and apcupsd - Replaced watchtower with Ouroboros ## Oct 4, 2019 - Added Heimdall ## Sep 17, 2019 - Fixed traefik v1.7.16 - Added organizr - Fixed traefik labels - Switched to hydra2. - Removed Heimdall. - Cleaned up docker compose. ## Aug 20, 2019 - Removed Unifi (moved to VPS). - Switched back to linuxserver for sonarr and radarr. ## Feb 25, 2019 - Moved to NUC. ## Feb 8, 2019 - Added jlesage/handbrake - Switched from linuxserver/sonarr to aront/sonarr, linuxserver/radarr to aront/radarr for mp4_automator support ## Feb 5, 2019 - Removed Plexms, Nodered, Hole, Syncthing ================================================ FILE: archives/traefik_v3-pre-deployrr/custom/Dockerfile-csdash ================================================ FROM metabase/metabase RUN mkdir /data/ && wget https://crowdsec-statics-assets.s3-eu-west-1.amazonaws.com/metabase_sqlite.zip && unzip metabase_sqlite.zip -d /data/ ================================================ FILE: archives/traefik_v3-pre-deployrr/custom/Dockerfile-php7 ================================================ # https://github.com/mlocati/docker-php-extension-installer # https://www.php.net/ChangeLog-7.php FROM php:7.4-fpm # ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/ ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \ install-php-extensions gd mysqli pdo_mysql opcache imagick exif zip mcrypt pspell redis sockets ssh2 bcmath intl calendar # ADDED AUGUST 18, 2022 BECAUSE ERRORS IN PHP7 DOCKER LOGS TO INCREASE MAX_CHILDREN # https://serverfault.com/questions/884256/how-and-where-to-configure-pm-max-children-for-php-fpm-with-docker # SETUP PHP-FPM CONFIG SETTINGS (max_children / max_requests) RUN echo 'pm.max_children = 15' >> /usr/local/etc/php-fpm.d/zz-docker.conf && \ echo 'pm.max_requests = 500' >> /usr/local/etc/php-fpm.d/zz-docker.conf ================================================ FILE: archives/traefik_v3-pre-deployrr/docker-compose-dns.yml ================================================ ########################### ANAND'S ENVIRONMENT # Here are my 5 Docker Hosts: # - Home Server (hs) - Proxmox LXC with Ubuntu Server 22.04 # - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04 # - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04 # - Synology (ds918) - Synology DS918+ # - DNS / AdBlock Server (dns) - Raspberry Pi 4B with Raspberry Pi OS ########################### THIS COMPOSE FILE # - DNS / AdBlock Server (dns) - Raspberry Pi 4B with Raspberry Pi OS # - Prefix/suffix "dns" refers to the above host # - Docker version 24.0.7, build afdd53b # - Docker Compose version v2.21.0 ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 t2_proxy: name: t2_proxy driver: bridge ipam: config: - subnet: 192.168.90.0/24 ########################### SECRETS secrets: basic_auth_credentials: file: $DOCKERDIR/secrets/basic_auth_credentials cf_dns_api_token: file: $DOCKERDIR/secrets/cf_dns_api_token traefik_forward_auth: file: $DOCKERDIR/secrets/traefik_forward_auth include: ########################### SERVICES # PREFIX dns = DNS / AdBlock Server # CORE - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/traefik.yml # - compose/$HOSTNAME/oauth.yml # AD-BLOCKING #- compose/$HOSTNAME/adguardhome.yml #- compose/$HOSTNAME/adguardhome-sync.yml # DNS RESOLVER #- compose/$HOSTNAME/unbound.yml # VPN # - compose/$HOSTNAME/wg-easy.yml # MONITORING # - compose/$HOSTNAME/glances.yml # MAINTENANCE # - compose/$HOSTNAME/docker-gc.yml # not available for arm - compose/$HOSTNAME/ddns-updater.yml # - compose/$HOSTNAME/certdumper.yml ================================================ FILE: archives/traefik_v3-pre-deployrr/docker-compose-hs-old.yml ================================================ ########################### ANAND'S ENVIRONMENT # Here are my 5 Docker Hosts: # - Home Server (hs) - Proxmox LXC with Ubuntu Server 22.04 # - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04 # - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04 # - Synology (ds918) - Synology DS918+ # - DNS / AdBlock Server (dns) - Raspberry Pi 4B with Raspberry Pi OS ########################### THIS COMPOSE FILE # - Home Server (hs) - Proxmox LXC with Ubuntu Server 22.04 # - Prefix/suffix "hs" refers to the above host # - Docker version 24.0.7, build afdd53b # - Docker Compose version v2.21.0 ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 # t2_proxy: # name: t2_proxy # driver: bridge # ipam: # config: # - subnet: 192.168.90.0/24 t3_proxy: name: t3_proxy driver: bridge ipam: config: - subnet: 192.168.90.0/24 ########################### SECRETS secrets: basic_auth_credentials: file: $DOCKERDIR/secrets/basic_auth_credentials cf_dns_api_token: file: $DOCKERDIR/secrets/cf_dns_api_token traefik_forward_auth: file: $DOCKERDIR/secrets/traefik_forward_auth mysql_root_password: file: $DOCKERDIR/secrets/mysql_root_password authelia_jwt_secret: file: $DOCKERDIR/secrets/authelia_jwt_secret authelia_session_secret: file: $DOCKERDIR/secrets/authelia_session_secret # authelia_storage_mysql_password: # file: $DOCKERDIR/secrets/authelia_storage_mysql_password # authelia_notifier_smtp_password: # file: $DOCKERDIR/secrets/authelia_notifier_smtp_password # authelia_duo_api_secret_key: # file: $DOCKERDIR/secrets/authelia_duo_api_secret_key authelia_storage_encryption_key: file: $DOCKERDIR/secrets/authelia_storage_encryption_key guac_db_name: file: $DOCKERDIR/secrets/guac_db_name guac_mysql_user: file: $DOCKERDIR/secrets/guac_mysql_user guac_mysql_password: file: $DOCKERDIR/secrets/guac_mysql_password include: ########################### SERVICES # PREFIX hs = Home Server # HOSTNAME=hs - defined in .env # CORE - compose/$HOSTNAME/traefik.yml - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/oauth.yml - compose/$HOSTNAME/authelia.yml - compose/$HOSTNAME/portainer.yml - compose/$HOSTNAME/dockge.yml # SECURITY - compose/$HOSTNAME/crowdsec.yml - compose/$HOSTNAME/traefik-bouncer.yml # FRONTEND - compose/$HOSTNAME/autoindex.yml - compose/$HOSTNAME/homepage.yml - compose/$HOSTNAME/phpmyadmin.yml - compose/$HOSTNAME/pgadmin.yml - compose/$HOSTNAME/sitespeed.yml - compose/$HOSTNAME/whoami.yml # DOWNLOADERS # - compose/$HOSTNAME/jdownloader.yml - compose/$HOSTNAME/qbittorrent.yml - compose/$HOSTNAME/sabnzbd.yml # PVRS - compose/$HOSTNAME/sonarr.yml - compose/$HOSTNAME/radarr.yml - compose/$HOSTNAME/lidarr.yml # COMPLEMENTARY APPS - compose/$HOSTNAME/prowlarr.yml - compose/$HOSTNAME/notifiarr.yml - compose/$HOSTNAME/bazarr.yml - compose/$HOSTNAME/picard.yml # MONITORING - compose/$HOSTNAME/grafana.yml - compose/$HOSTNAME/grafana-tm.yml - compose/$HOSTNAME/uptime-kuma.yml - compose/$HOSTNAME/dozzle.yml - compose/$HOSTNAME/scrutiny.yml - compose/$HOSTNAME/teslamate.yml - compose/$HOSTNAME/speedtest-tracker.yml # - compose/$HOSTNAME/radarr-exporter.yml # - compose/$HOSTNAME/sonarr-exporter.yml # - compose/$HOSTNAME/lidarr-exporter.yml # - compose/$HOSTNAME/prowlarr-exporter.yml # - compose/$HOSTNAME/sabnzbd-exporter.yml - compose/$HOSTNAME/node-exporter.yml # ADMIN - compose/$HOSTNAME/guacamole.yml # - compose/$HOSTNAME/kasm.yml - compose/$HOSTNAME/it-tools.yml # UTILITIES - compose/$HOSTNAME/firefox.yml - compose/$HOSTNAME/firefly.yml # FILE MANAGEMENT - compose/$HOSTNAME/vscode.yml - compose/$HOSTNAME/makemkv.yml - compose/$HOSTNAME/mkvtoolnix.yml # NETWORK - compose/$HOSTNAME/gluetun.yml # MAINTENANCE - compose/$HOSTNAME/docker-gc.yml - compose/$HOSTNAME/deunhealth.yml ================================================ FILE: archives/traefik_v3-pre-deployrr/docker-compose-mds.yml ================================================ ########################### ANAND'S ENVIRONMENT # Here are my 5 Docker Hosts: # - Home Server (hs) - Proxmox LXC with Ubuntu Server 22.04 # - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04 # - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04 # - Synology (ds918) - Synology DS918+ # - DNS / AdBlock Server (dns) - Raspberry Pi 4B with Raspberry Pi OS ########################### THIS COMPOSE FILE # - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04 # - Prefix/suffix "dns" refers to the above host # - Docker version 24.0.7, build afdd53b # - Docker Compose version v2.21.0 ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge dockervlan: name: dockervlan driver: macvlan driver_opts: parent: eth0 # using ifconfig ipam: config: - subnet: "192.168.1.0/24" ip_range: "192.168.1.226/32" gateway: "192.168.1.1" ########################### SECRETS secrets: plex_claim: file: $DOCKERDIR/secrets/plex_claim mysql_root_password: file: $DOCKERDIR/secrets/mysql_root_password pgsql_teslamate_passwd: file: $DOCKERDIR/secrets/pgsql_teslamate_passwd include: ########################### SERVICES # PREFIX mds = Media / Database Server # HOSTNAME=mds - defined in .env # MEDIA - compose/$HOSTNAME/airsonic-advanced.yml - compose/$HOSTNAME/jellyfin.yml - compose/$HOSTNAME/plex.yml # - compose/$HOSTNAME/plex-image-cleanup.yml # - compose/$HOSTNAME/plex-meta-manager.yml - compose/$HOSTNAME/tautulli.yml # DATABASES - compose/$HOSTNAME/prometheus.yml - compose/$HOSTNAME/mariadb.yml - compose/$HOSTNAME/influxdb.yml - compose/$HOSTNAME/pgsql-teslamate.yml # MONITORING - compose/$HOSTNAME/node-exporter.yml - compose/$HOSTNAME/mosquitto.yml ================================================ FILE: archives/traefik_v3-pre-deployrr/docker-compose-ws.yml ================================================ ########################### ANAND'S ENVIRONMENT # Here are my 5 Docker Hosts: # - Home Server (hs) - Proxmox LXC with Ubuntu Server 22.04 # - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04 # - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04 # - Synology (ds918) - Synology DS918+ # - DNS / AdBlock Server (dns) - Raspberry Pi 4B with Raspberry Pi OS ########################### THIS COMPOSE FILE # - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04 # - Prefix/suffix "ws" refers to the above host # - Docker version 24.0.7, build afdd53b # - Docker Compose version v2.21.0 ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 t3_proxy: name: t3_proxy driver: bridge ipam: config: - subnet: 192.168.90.0/24 ########################### SECRETS secrets: basic_auth_credentials: file: $DOCKERDIR/secrets/basic_auth_credentials cf_dns_api_token: file: $DOCKERDIR/secrets/cf_dns_api_token traefik_forward_auth: file: $DOCKERDIR/secrets/traefik_forward_auth mysql_root_password: file: $SECRETSDIR/mysql_root_password authelia_jwt_secret: file: $SECRETSDIR/authelia_jwt_secret authelia_session_secret: file: $SECRETSDIR/authelia_session_secret authelia_storage_mysql_password: file: $SECRETSDIR/authelia_storage_mysql_password authelia_notifier_smtp_password: file: $SECRETSDIR/authelia_notifier_smtp_password authelia_duo_api_secret_key: file: $SECRETSDIR/authelia_duo_api_secret_key include: ########################### SERVICES # PREFIX ws = Web Server # HOSTNAME=ws - defined in .env # CORE - compose/$HOSTNAME/traefik.yml - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/oauth.yml - compose/$HOSTNAME/portainer.yml # SECURITY - compose/$HOSTNAME/crowdsec.yml - compose/$HOSTNAME/traefik-bouncer.yml - compose/$HOSTNAME/cloudflare-bouncer.yml # DATABASES - compose/$HOSTNAME/mariadb.yml - compose/$HOSTNAME/redis.yml # FRONTEND # - compose/$HOSTNAME/autoindex.yml - compose/$HOSTNAME/phpmyadmin.yml - compose/$HOSTNAME/adminer.yml - compose/$HOSTNAME/whoami.yml # WEB - compose/$HOSTNAME/nginx.yml - compose/$HOSTNAME/php7.yml - compose/$HOSTNAME/php8.yml # MONITORING - compose/$HOSTNAME/node-exporter.yml - compose/$HOSTNAME/glances.yml # FILE MANAGEMENT - compose/$HOSTNAME/vscode.yml # NETWORK - compose/$HOSTNAME/wg-easy.yml # MAINTENANCE - compose/$HOSTNAME/docker-gc.yml ================================================ FILE: commits/2020/2020_08_17.txt ================================================ Oh boy! where do I even begin. Lots of changes in this commit: 1. Moved some of the apps to Synology docker stack (dockerc-compose-t2-synology.yml) - Portainer, MariaDB, InfluxDB, Mosquitto MQTT Broker, Cloudflare DDNS, Redis. Add my NUC stack as a separate endpoint NAS Portainer. 2. Implemented Tecnativa Socket Proxy - Traefik, Portainer, Glances, Dozzle, Ouroboros, Docker-GC, Cloudflare Companion 3. Moved from Home Assistant Supervised to Home Assistant Core 4. Fixed multihost CNAME creation in Cloudflare Companion 5. Fully rolled out Docker secrets - Traefik, Authelia, Plex, Guacamole, OAuth, MariaDB, etc.. There are still some images that do not support secrets. 6. Renamed docker-compose-synology-t2.yml to docker-compose-t2-synology.yml 7. Obsoleted SmokePing - no use for me 8. Obsoleted HA-DockerMon - could live without it. Tried to simplify my Home Assistant setup. 9. Obsoleted UniFi Controller - moved it to cloud. 10. Obsoleted Postgres - Hoping to use MySQL for StatPing 11. Updated readme with current information 12. Updated Authelia configuration.yml.example 13. Obsoleted ZoneMinder. Moved to MotionEye, which is much simpler to setup and use. And last a big one that I have been working on: 13. Added docker-compose-t2-web.yml - This is contains all the apps that I run on my Digitial Ocean Virtual Private server. This server runs wordpress and couple of other dynamic (PHP) sites. ================================================ FILE: commits/2020/2020_08_21.txt ================================================ Downgraded synology watchtower docker api to 1.39 (max supported). Added some comments. * Upgrade docker-compose to 1.29.2 (1.28.0 or up needed for compose profiles) * Change docker-compsose file version to 3.9 * Upgraded traefik to v2.5.x (brie) * Added support for docker-compose profiles - thanks for the tip tomlawson.io. * Update bash aliases to support docker-compose profiles. * Added compose profiles to all services for testing. * Removed depends_on from dozzle and docker_gc * Replaced featurePolicy with permissionsPolicy in middlewares.yml - for Traefik v2.5.x * Replaced sslRedirect with RedirectScheme in middlewares.yml - for Traefik v2.5.x * Updated traefik middlewares example yml and toml files ================================================ FILE: commits/2020/2020_10_05.txt ================================================ Obsoleted Traefik error pages. Did not spend anymore time on it and don't see the value in doing so. Added TLS options. Changed HostHeader to Host rule. Added Host rule to certain services (auth bypass) Added GZIP compression middleware Upgrading Traefik from cheverotin (2.2.x) to 2.3.x (picodin) ================================================ FILE: commits/2020/2020_10_06.txt ================================================ Connected to Traefik Pilot Added healthchecks, ping, and autoheal ================================================ FILE: commits/2020/2020_10_14.txt ================================================ * Fixed firefox https://github.com/jlesage/docker-firefox/blob/master/README.md#allowing-the-membarrier-system-call * Fixed Oauth - removed secrets and went back to environmental variables * Disabled traefik pilot and ping - did not see a need for it yet * Added duplicati - updated readme.md and change log * Fixed cf-companion. Went back to environmental variables with scoped token instead of secrets (not working) ================================================ FILE: commits/2020/2020_10_20.txt ================================================ * Switched from Authelia to Google OAuth. Authelia seemed to have too much overhead for a single user environment. * updated README ================================================ FILE: commits/2020/2020_10_24.txt ================================================ * Updated README with more details. ================================================ FILE: commits/2020/2020_11_29.txt ================================================ * Modified socket proxy to allow portainer connections to 2375 from local network. ================================================ FILE: commits/2021/2021_01_06.txt ================================================ * Started moving partial stack to seed/cloud box. * Created an appdata folder and moved all app folders into it (to tidy things up a bit). * Moved htpasswd from shared folder to secrets. Edited middlewares-basic-auth. This changes the way htpasswd is called in docker-compose. * Created a folder called "archives". Moved all Traefik v1 stuff into it. * Changed $DOMAINNAME to $DOMAINNAME0 * Moved t2_proxy and socket_proxy subnets in docker compose file instead of outside the compose file (https://github.com/htpcBeginner/docker-traefik/discussions/119). Therefore, it is not necessary to create these networks external before starting the stack. Improved portability. * Removed some environmental variables in paths to simplify things (eg. $SECRETSDIR is now $DOCKERDIR/secrets). * Changed volumes for apps (eg. radarr, sonarr, etc.) to reduce unnecessary rewrites - https://trash-guides.info/Misc/how-to-set-up-hardlinks-and-atomic-moves/. * Switched backed to tecnativa's socket proxy (fluencelabs socket proxy not updated for months). * Updated thomseddon/traefik-forward-auth (OAuth) environmental variables to use PROVIDERS_GOOGLE_CLIENT and PROVIDERS_GOOGLE_CLIENT_SECRET. * Removed exposing ports to docker host. This was not needed on my cloud/seed box all apps could talk to each other using their internal static IPs. * Removed exposing socket-proxy port. All apps connected to socket_proxy network can connect to the proxy using internal hostname. * Changed Organizr image to organizr/organizr. * Added $TZ to linuxserver/mariadb - statping MySQL did not work without it. * Put mariadb, influxdb, and redis on "default" network and added dependent services to the network (eg. authelia, statping, PMA, Guacamole, etc.) * Obsoleted Emby - Between Plex and Jellyfin all my needs are covered. * Added readarr (nightly) - still alpha * Added descriptions at the top for various docker-compose files. * Added secrets_example folder and added some example secrets. * Updated README.md and CHANGELOG.md. * Added Rclone and MergerFS with Google Drive. * Added systemd startup scripts for Rclone (rclone-drive.service and rclone-crypt.service) and MergerFS (merge-media.service) based on https://github.com/animosity22/homescripts. * Added media-services.txt, which list the services to stop using dcup2/dcstop2 $(cat media-services.txt) * Changed restart on some containers dependent on MergerFS media folder to "no". Moved starting those containers to a bash script upon successful GDrive mount. * Added a script to monitor the status of Rclone and MergerFS mount (check-mounts.sh). If one of the mount fails then media folder dependent services are automatically stopped and an email notification is sent. * Added script to automatically/periodically move files from "local" to "remote" (Google Drive) for MergerFS (upload-media.sh). * Added a script to move/convert unencrypted media files on Google Drive to encrypted (drive-to-crypt.sh). The script is set to run at a daily average of 2.75 MB/s, which equates to about 474 GB per day (~237 GB download, encrypt, and ~237 GB reupload). Google Drive Business has a maximum of 750 GB per day. * Removed watchtower to avoid automatic reboot of containers that use Rclone/MergerFS mount. ================================================ FILE: commits/2021/2021_02_14.txt ================================================ * Typos in README.md * Added --max-transfer to Rclone uploads and syncs * Fixed linuxserver/mariadb docker secrets https://github.com/htpcBeginner/docker-traefik/issues/127 * Updated docker-compose-t2-nuc.yml to reflect apps used currently on my NUC home server * Updated rclone logrotate config - fixed permissions, added su directive, modified size, and daily rotation * Updated check-mounts.sh to check rclone logs for GDrive token expired/revoked errors * Updated check-mounts.sh to check for mergerfs and rclone systemd service statuses. * Modified bazarr labels to allow NZB360 app to bypass OAuth * Added PlexTraktSync https://hub.docker.com/r/twolaw/plextraktsync. Did not use it, so obsoleted. Instead setup plex trakt scrobbler plugin. * Obsoleted plex-sync and moved to https://github.com/trakt/Plex-Trakt-Scrobbler * Obsoleted Tiny Media Manager - did not use it * Rclone frequently failed mounting, added --allow-non-empty * Added --no-modtime to rclone-drive.service and rclone-crypt.service to increase performance * Added cloudplow and Plex autoscan for testing * Switched from SABnzbd to Nzbget - no specific reason for the switch. Sab worked great too. Obsoleted SABnzbd. OAuth bypass for NZB360 app not working yet. * Moved metadata folders for sonarr, radarr, lidarr, Plex, and Jellyfin to a new virtual disk. To reduce size of VM image backups on Proxmox. * Moved some log folders to a new virtual disk to reduce VM image size - nzbget. * Added start-media-after-boot.sh to check and start media containers (Plex, radarr, etc.) after Rclone and MergerFS mounts are successful. ================================================ FILE: commits/2021/2021_03_11.txt ================================================ * Several updates. See full commit log. * Moved nzblog back to docker folder, reversing previous commit. * Changed transmission logs to LOG_TO_STDOUT: "true". Log file was huge. * Disabled statping logs until i am not ready to use it. * Modified rclone logrotate to include .log files. * Added comments to clarify why MediaCover and Plex metadata folders were mounted as volumes. ================================================ FILE: commits/2021/2021_04_08.txt ================================================ * Several updates 2021_04_08. See full commit log. * Updated cloudflare IPs removed 104.16.0.0/12 and added 104.16.0.0/13,104.24.0.0/14 * Updated traefik from picodon (v2.3.x) to livarot (v2.4.x) ================================================ FILE: commits/2021/2021_05_14.txt ================================================ * Several updates 2021_05_14. See full commit log. * Added TOML examples for Nextcloud middlewares - https://www.smarthomebeginner.com/traefik-docker-nextcloud/ * Obsoleted cloudplow - not using at this point/haven't set it up yet * Switched to radarr nightly. "latest" tag broke the UI. * Updated README.md ================================================ FILE: commits/2021/2021_08_09.txt ================================================ * Several updates 2021_08_09. See full commit log. * Updated auhelia to 4.30.0. Updated configuration.yml file based on https://www.authelia.com/docs/configuration/migration.html and https://github.com/authelia/authelia/blob/master/config.template.yml. * Updated redis to 6.2.5 * Updated Traefik from 2.3.1 to 2.4.13 ================================================ FILE: commits/2021/2021_10_04.txt ================================================ * Several updates 2021_10_04. See full commit log. * Upgrade docker-compose to 1.29.2 (1.28.0 or up needed for compose profiles) * Change docker-compsose file version to 3.9 * Upgraded traefik to v2.5.x (brie) * Added support for docker-compose profiles - thanks for the tip tomlawson.io. * Update bash aliases to support docker-compose profiles. * Added compose profiles to all services for testing. * Removed depends_on from dozzle and docker_gc * Replaced featurePolicy with permissionsPolicy in middlewares.yml - for Traefik v2.5.x * Replaced sslRedirect with RedirectScheme in middlewares.yml - for Traefik v2.5.x * Updated traefik middlewares example yml and toml files ================================================ FILE: commits/2022/2022_01_23.txt ================================================ * Several updates 2022_01_23. See full commit log. * Big change 1: my web stack is now part of the same Proxmox host that runs my home/media server. Previously it was on Digital Ocean. * Big change 2: moved most of my services from NUC/ASROCK 4x4-4800U to Synology for homelab use. So no more docker-compose-t2-nuc.yml. * Updated docker version to 20.10.12. * Updated docker-compose version to 1.29.2. * Updated compose file version to 3.9. * Updated README with additional information. As mentioned in previous commit CHANGELOG is now discontinued due to detailed commit messages such as this one. Only the "planned" section of CHANGELOG will be updated. * Minor customizations to upload-media.sh.example for uploading media from local drive to google drive (rclone). * Updated upload-excludes.log.example to exclude partial~, torrents, .part, and incomplete downloads from being uploaded to google drive. * Updated start-media-after-boot.sh - the script waits until all drives are mounted (rclone and MergerFS) before starting media containers (media-services.txt). * Updated media-services.txt as the list of services I use have changed - e.g. Plex moved to synology. * Updated check-mounts.sh with minor tweaks - this script checks for all required mounts periodically to either keep-alive or stop the media containers. * Updated middlewares.yml to add missing middlewares-https-redirectscheme - https://github.com/htpcBeginner/docker-traefik/issues/187. * Added middlewares-oauth-external (middlewares.yml) to offload authentication to an external service that was already running OAuth (reduce duplication). * Added few additional middlewares (middlewares.yml) for testing - compression and traefik buffering issues. * Updated middlewares-chains.yml to add compression middleware and chain-oauth-external for external OAuth as explained above. * Removed authelia from home server. Still used on web stack. * Obsoleted Organizr and Heimdall - wasn't using much and my Proxmox host is not too powerful. I might add it back later. * Removed all database services (MariaDB, Redis, phpMyAdmin, InfluxDB, RedisCommander, etc.) from docker-compose.yml. This reduced duplicated services. Since the web stack is now a guest on the same Proxmox host. Services on docker-compose.yml now use database services from the web stack. * Added prowlarr for testing - replacement for Jackett. * Obsoleted LazyLibrarian, Caliber, and Caliber-web - wasn't using them. * Added Readarr for testing. * AirSonic development stopped. Plus, the database corrupted twice. Obsoleted it and added NaviDrome and FunkWhale for testing. * Removed Plex from docker-compose.yml. It is now part of my Synology stack at home. Still running Jellyfin in the cloud as a backup and to share with others. * Due to the above reason, also moved Tautulli to Synology. * Obsoleted FileBot, Photoshow and autoscan - wasn't using them. * Added Synthing - I now use this to sync scripts, compose files, etc. between various systems. * Obsoleted StatPing temporarily - I will probably add it back. * Obsoleted Traefik Error Pages - did not find a way to use for wordpress * Removed cert dumper, dozzle, and glaces from web stack to keep things light. May add it later if resources can handle it. * Obsoleted Unifi Controller - I do not use Unifi at this point (I wish I could). I do not have the time to set it up (lack of cables, etc.) after the move. * Added tdarr and tdarr-node to Synology to transcode videos to H265/HEVC - only small home clips. Synology is too underpowered for transcoding movies. * Added Rclone service (both unencrypted and encrypted) to Synology to mount media from google drive. ================================================ FILE: commits/2022/2022_02_04.txt ================================================ * Several updates 2022_02_04. See full commit log. * Moved bash_aliases to /shared/config/ * Implemented bash_aliases.env to hide sensitive information, which will allow me to share my current bash_aliases which keeps evolving * Customized bash_aliases so i can share it among different hosts and yet tweak them automatically depending on the host (eg. aliases picking the right docker-compose files on various platforms) * Moved platform-specific traefik rules to specific folders so i can share the repo among several of my devices * Changed default domain to DOMAINNAME0 and the rest to $DOMAINNAME1 and 2 align the docker-compose files * Updated README ================================================ FILE: commits/2022/2022_02_06.txt ================================================ * Several updates 2022_02_06. See full commit log. * Moved homeserver rules and scripts (main docker-compose-t2.yml) to its own folders * Fixed oauth secrets. It works now. See https://github.com/htpcBeginner/docker-traefik/pull/229. * Fixed bugs in bash_aliases ================================================ FILE: commits/2022/2022_02_21.txt ================================================ * Several updates 2022_02_21. See full commit log. * Cleaned up shared/config/bash_aliases - consolidated all my bash_aliases into one as I now syncthing this with all my servers. * Added a few more example scripts that are called in my bash_aliases file. * Moved authelia to web stack. * Moved homeserver stack to a unprivileged Proxmox LXC container (previously a Ubuntu VM). * Due to above move to LXC container, enabled /dev/net/tun for Transmission-vpn * Obsoleted Funkwhale, too complex to maintain for what I wanted. * Obsoleted PhotoShow. Added FileBrowser. * Moved some of the logs to a dedicated/central logs folder in docker root folder. * Moved Syncthing to a native app on Ubuntu guest container outside of docker. * Other minor improvements. ================================================ FILE: commits/2022/2022_02_23.txt ================================================ * Several updates 2022_02_23. See full commit log. * Updated traefik to 2.6. * Updated Docker Compose to v2.1.1. Above this version, Cloudflare Companion was not working and I cannot figure out why. * Changed cloudflare secrets (from cloudflare prefix to cf) to make them work with Cloudflare Companion. * Obsoleted Navidrom. Added Airsonic Advanced - I was used to the features in Airsonic. * Added Mariadb support for Airsonic. * Fixed StatPing MariadB connection issue: https://github.com/statping/statping/issues/260#issuecomment-541041752 ================================================ FILE: commits/2022/2022_03_20.txt ================================================ * Several updates 2022_03_20. See full commit log. * Configured Prowlarr, which is amazing. * With prowlarr working, there is no need for Jackett and NZBHydra. Obsoleted both. * Added flaresolverr to circumvent cloudflare challenge for some of the torrent trackers. * Minor changes to bash_aliases. * Added YT-DLP bash_aliases. * Updated example systemd scripts for Rclone (rclone-drive.service.example and rclone-crypt.service.example) and MergerFS (merge-media.service.example). * Added a check to see if rclone media upload is already running prior to starting a new one (upload-media.sh.example). * Updated media-services.txt to add airsonic-advanced. This should have container names and not service names. * Updated README. * Obsoleted Navidrom and added Airsonic-Advanced with MariaDB backend. Couldn't live without the features of Airsonic. * Added dupeguru temporarily - I am organizing my music collection and there a ton of duplicate files. * Replaced StatPing with Uptime-Kuma, which is awesome. * Tried Youtube-DL-Material and MeTube - Couldn't get these to work - Could not resolve host name error. YT-DLP works great. ================================================ FILE: commits/2022/2022_05_19.txt ================================================ * Several updates 2022_05_19. See full commit log. * Added bash_aliases for monitoring stack - not fully implemented yet. * Changed cloudflare_email secret to cf_email * Increased inotify limits for syncthing to work properly on synology. * Updated Rclone media upload scripts. * Added docker-compose.yml (with Nginx Proxy Manager) - https://www.smarthomebeginner.com/docker-media-server-2022/ * Updated README. * Upgraded Traefik to 2.6, Docker Compose to v2.5.0. * Switched from Codercom to LinuxServer.io Visual Studio Code Server image. * Minor changes to Synology stack. * Moved authelia to obsolete. I will add it back at a later time. * Added some apps for log and resources monitoring - in testing. Not fully implemented. ================================================ FILE: commits/2022/2022_06_15.txt ================================================ * Several updates 2022_06_15. See full commit log. * There was lot of push back on the move to extension fields, which reduced readability. Simplified it a bit but not abandoning it at this point. * Moving smarthomebeginner.com to Proxmox VM on a unreliable dedicated server provider was a failure. So moved it back to digital ocean VPS so the website is not affected during my meddling with the homeserver. * Got a separate domain name for home server - previously shared domain name with my cloud proxmox server. This means CF-DDNS on Synology now does not use a subdomain any more. * Obsoleted Cloudflare Companion - resorted to just using a wildcard CNAME pointing to the root domain instead of creating CNAME DNS records on the fly. * Upgraded to the new Docker Compose V2, which is now built into Docker as a plugin. https://docs.docker.com/compose/#compose-v2-and-the-new-docker-compose-command. So from now on it is "docker compose" command instead of "docker-compose". Also there is no need to manually install and ugprade Docker Compose (except on Synology). * Minor changes with bash_aliases to reflect the changes in servers/hosts. ================================================ FILE: commits/2022/2022_06_19.txt ================================================ * Several updates 2022_06_19. See full commit log. * Renamed "homeserver" to "cloudserver" wherever applicable (scripts, logs, traefik rules, etc.). "homeserver" actually referred to my Proxmox server in the cloud and Synology is my Docker-Traefik server at home. * Added domain name variables to Traefik environment, to pass the variable into container. This allows using {{env "DOMAINNAME_CLOUD_SERVER"}} in Traefik dynamic rules to refer to domain names. ================================================ FILE: commits/2022/2022_06_26.txt ================================================ * Several updates 2022_06_26. See full commit log. * Published my real middlewares.yml, middlewares-chains.yml, and tls-opts.yml, thanks to the previous commit that allowed usage of environmental variables in rules. * Added LOCAL_IPS and CLOUDFLARE_IPS variables to simplify Traefik compose. * Added CrowdSec, CrowdSec Dashboard, and Traefik Bouncer. This appears to be working well but will check for a few more days before publishing a separate guide on it. * Updated middlewares and chains to include crowdsec middleware. * Updated Traefik logs and its path to support parsing with Crowdsec. Also separated traefik log and access log. ================================================ FILE: commits/2022/2022_07_14.txt ================================================ * Several updates 2022_07_14. See full commit log. * Updated bash_aliases for Synology DSM 7, which uses SYSTEMD * changed traefik_forward_auth secrets example to align with 2022 Traefik forward Auth guide: https://www.smarthomebeginner.com/traefik-forward-auth-google-oauth-2022/ * After update to DSM 7.1 switch_ports scripts for 80 and 443 did not work (switch_ports.sh.example). Had to add a command to restart nginx. * Modified examples of traefik rules YML for non-docker apps. * Fixed: Wrong port was specified for qbittorrent behind traefik. Changed it to 8080. * Changed lidarr volumes to align with TRaSH guide. * Edited README. docker-compose-t2.yml * Moved my Plex that was running by iteself on a separate docker host on my home network to cloud server. * Typos and comments docker-compose-t2-synology.yml * Installed Adguard Home on Synology to replace my Pi-Hole on Raspberry Pi. This required adding a separate macvlan docker network (dockervlan). * Added Dashy for testing - potential replacement for heimdall. * Added back Traefik cert dumper to use the certs with AdGuard Home for DoH/DoT. * Replaced cf-ddns from oznu by qmcgaw/ddns-updater, which has a few nice features: discord notification (via shoutrrr), webUI for logs, etc. ================================================ FILE: commits/2022/2022_09_20.txt ================================================ * Several updates 2022_09_20. See full commit log. * The biggest change is the addition of CrowdSec intrusion prevention system to my environment. It is mitigating well over 600 intrusion attempts per day. * Added some new middlewares chains in middlewares-chains.yml to support the addition of CrowdSec. * Renamed traefik bouncer middleware in middlewares.yml. * Modified Dockerfile-php7 to supress some errors in php logs. * Fixed minor mistakes in my rclone scripts. * Modified media-services.txt to reflect current setup. * Updated bash_aliases - major change is the addition of commands for CrowdSec. * Edited README. docker-compose-t2.yml * Fixed a typo chain-auth-basic to chain-basic-auth * Added CrowdSec (agent). Although an agent is installed here, my primary agent (the mothership; the decision maker) is the one in docker-compose-t2-web.yml. This instance just parses the logs but makes no decisions. * Obsoleted CrowdSec dashboard - was using too much resources. * Modified traefik bouncer to get decisions from the "mothership" crowdsec remote agent instead of the local agent. * Added Prometheus to harvest some CrowdSec stats. I can now visualize metrics on my Grafana. * Obsoleted YoutubeDL-Material - could never get this to work. It has worked for others. * Obsoleted Flaresolverr - Saw no real use for my situation. * Renamed airsonic service to airsonic-advanced. * Added Plex Meta Manager - will push my configs as example at a later point. * Re-Added Tautulli. docker-compose-t2-synology.yml * Added ZeroTier. Now all my key hosts are connected through ZeroTier and Plex, Arr apps, etc. can be accessed using ZeroTier IPs. * Re-Added Plex-Sync to sync watched status between two Plex servers. * VS Code server has been giving me issues recently and is currently non functional on Synology. * Minor changes to DDNS updater docker-compose-t2-web.yml * Biggest change is the addition of CrowdSec. CrowdSec on my Digital Ocean VPS is the primary agent. * Added wg-easy for easy Wireguard deployment. This will run on my Digital Ocean VPS, which will be always on and the most reliable of all my servers. * Modified logging for serveral apps (eg. Traefik, Nginx, etc.) to simplify CrowdSec implementation. These logs will be parsed by CrowdSec agent for malicious activities and decisions (ban) will be sent to the bouncers. * Added CrowdSec cloudflare bouncer to block malicious IPs using Cloudflare managed rules. Unfortunately CrowdSec limits blocklist to max 10,000 IPs. For the rest, see below. * Added CrowdSec Traefik bouncer to block malicious IPs. * In addition, installed CrowdSec Firewall bouncer on host machine to make Linux firewall block malicious IPs. * Replaced CF trusted IPs list with an environmental variable with same info. Looks cleaner. ================================================ FILE: commits/2023/2023_01_26.txt ================================================ * Several updates 2023_01_26. See full commit log. * bash_aliases updates due to moving my proxmox server from the cloud back into my home - I now have fiber with 10 Gbps :-) * Added --drive-stop-on-upload-limit switch to stop rclone upload when google drive errors out due to quota. * Added crowdsec and traefik-bouncer to basic-services.txt as without them none of the service would be accessible and traefik won't start. * Remove cf-companion. I now just wildcard all CNAMEs to the root domain pointing to my IP. Much simpler this way and its not a big security risk. * Updated README with crowdsec related posts. * Obsoleted cf-companion (see above) and heimdall (replaced with homepage) * Updated traefik to v2.9 * Updated docker and docker-compose versions. * Added crowdsecurity/blocklist-mirror to export all the blocked IPs as a list. * Added whoami container for testing purposes * Exposed some ports to the host now that my server is inside my home network. * Added AdGuard Home sync to sync all my instances of adguard home. ================================================ FILE: commits/2023/2023_03_02.txt ================================================ * Several updates 2023_03_02. See full commit log. * Converted by Synology M2 drives from cache device to a volume for docker. Significantly faster docker performance. Consequently few minor changes to paths (volume1 to volume3) * Updated traefik app yml for Home Assistant OS. * Replaced Transmission (with built in VPN killswitch) with Gluetun and Surfshark Wireguard VPN (https://bit.ly/shb-surfshark). * Replaced Transmission with qBittorrent (which I prefer) via Glueten VPN. * Added a whoami container on home server for testing purposes. * Replaced Dashy with Homepage. * Added deunhealth so qBittorrent heals after VPN disconnects/restarts * Updated docker and docker compose versions ================================================ FILE: commits/2023/2023_05_26.txt ================================================ * Several updates 2023_05_26. See full commit log. * A ton of changes. * Renamed docker-compose.yml to docker-compose-npm.yml to align with the naming convention used for traefik. * I was getting tired of my experiments affecting media servers and databases, which were needed 24/7. So split media apps and databases into their own compose. I run this on a separate Ubuntu LXC (unprivileged) container on Proxmox. * Deleted docker-compose-t2-obsolete.yml. Moved all obsolete apps into their own yml files in the archives folder. * Major changes on docker-compose-t2.yml (my home server). Extension fields were killing the readability and made it difficult to write guides without explaining. Therefore, I removed extension fields. This will be replicated to Synology and Web Server compose files in future. * Updated hardware and docker version details in compose files. * Added docker profiles with the aim of symplifying starting and stopping specific group of services. * Updated some paths to reflect the new setup. * Replaced Nzbget with SABnzbd. Nzbget development stopped. * Archived handbrake, mkvtoolnix, makemkv - rarely used them. * Temporarily removed glances, qdirstat, AdGuard-Home Sync * Add IT-Tools, Sitespeed.io (to monitor my site performance) * Added Lidarr, Radarr, Prowlarr, SABnzbd, and Sonarr exporters to send metrics to Prometheus - I may remove some of this information is also available via Home Assistant InfluxDB. * Added Node-Exporter to scrape Docker host metrics into Prometheus for Grafana dashboarding. * Updated milddlewares.yml removed old settings and cleaned things up a bit. * Update media-services.txt - This might go away in future after I implement docker profiles. * Updated README. * Whats coming: Move traefik CLI commands to traefik.yml to clean up the compose. Add Traefik plugins. ================================================ FILE: commits/2023/2023_09_24.txt ================================================ * Several updates 2023_09_24. See full commit log. * Changed docker-compose-t2-media-db.yml to docker-compose-media-db.yml as this stack was not using Traefik. * Updated docker and docker compose versions in all stacks. * Docker extension fields were partially removed in my previous commit. Not its been removed from all my other stacks - due to readability issues. * Implemented Docker profiles to start and stop cntainers as a group - e.g. those that depend on mounts will be started using a bash script after the mounts become available. * No use for media-services.txt anymore after implementation of docker profiles. * Modified start-media-after-boot.sh to reflect the use of docker profiles. * Added addition PHP extensions to Docekrfile-php7 for my web stack. * Updated bash_aliases to use docker profiles. * Added prometheus and influxdb2 metrics for Traefik. * Exposes socket proxy port 2375 to local network - manage containers from home assistant * Some changes due to Plex now using media stored on Synology instead of Google Drive (Rclone) * Added node-exporter and glances to web stack for Grafana monitoring * Removed crowdsec-blocklists container. Could not find a use. * Testing mergerfs container on Synology * Updated traefik to 2.10 ================================================ FILE: commits/2024/2024_01_19.txt ================================================ * Several updates 2024_01_19. See full commit log. * Biggest structural change in a long time to align with what Auto-Traefik does. - Renamed all Docker compose files (remove t2 suffix) - Now all docker compose files have their hostname as suffix (for my 5 Docker hosts) * Split the big long docker compose files into individual service YMLs using Docker include: /compose folder. * Moved all archived compose files into /compose/archives. * Updated bash aliases - docker commands simplified, and more. ================================================ FILE: commits/2024/2024_01_22.txt ================================================ * Several updates 2024_01_22. See full commit log. * Changed domain name variables to align with hostnames (and their prefixes/suffixes) I implemented in the previous commit - DOMAINNAME_CLOUD_SERVER is now DOMAINNAME_HS - DOMAINNAME_HOME_SYNOLOGY is now DOMAINNAME_DS918 - DOMAINNAME_SHB is now DOMAINNAME_WS * Replace Traefik/Cloudflare ACME validation from using Email and Global API Key to Scoped API Toekn (CF_DNS_API_TOKEN). Deleted unwated secrets. * Split middlewares.yml to individual middleware YML files - to align with Auto-Traefik. * Split middlewares-chains.yml to individual chain YML files - to align with Auto-Traefik. * Moved some of the media apps to Media Server docker stack (docker-compose-mds.yml) * Added more example file providers for various scenarios. ================================================ FILE: commits/2024/2024_01_30.txt ================================================ * Several updates 2024_01_30. See full commit log. * Remove HTTPS redirect scheme middleware. Not used and redirects handled globally with CLI commands. * Changed entrypoint names from http/https to web/websecure to align with several online documentation. * Updated readme. * Changed basic auth secret from htpassd to basic_auth_credentials (just easier to understand) ================================================ FILE: commits/2024/2024_05_01.txt ================================================ * Several updates 2024_05_01. See full commit log. * Updated Traefik to v3 (on home server - hs). The rest will be migrated over slowly. * Syntax updated for Traefik v3 compatibility - Headers to Header, HeadersRegexp to HeaderRegexp, HostSNIRegexp, etc. Check https://www.smarthomebeginner.com/traefik-v3-docker-compose-guide-2024/#Migrating_from_Traefik_v2_to_v3. * "t2_proxy" network is now "t3_proxy" to represent Traefik v3. Subnet 192.168.90.0/24 remains the same. * Continuing to maintain both Traefik v2 and Traefik v3 appdata folders (at least for a few more months). * Removed compress middleware - was causing unnessary log warnings about mime type. I could not find a solution. * Removed Docker Compose version tags. * Added Authelia, Scrutiny, Kasm (WIP), and Firefly + Importer. * Bash Aliases updates. * Nginx verion update to 1.24 in web server (ws). * docker-compose-dns.yml is work-in-progress. ================================================ FILE: commits/2024/2024_05_30.txt ================================================ * Several updates 2024_05_30. See full commit log. * Added MakeMKV, MKVToolNix, to homeserver * Authelia upgraded to 4.38.8 and example configuration.yml and users.yml updated. * Jellyfin does not work on WebOS via Traefik Proxy. Created new security headers (without SAMEORIGIN) to allow Jellyfin to work * Removed obsolete shell scripts. Will reupload them as I update them. * Updated start-media-after-boot.sh.example to start media containers after Rclone mounts load. * Updated bash_aliases ================================================ FILE: commits/2025_10_15.txt ================================================ * Several updates 2025_10_15. See full commit log. * Big update after several months. I was focussed on updating the UDMS guides and developing Deployrr. * Rebuilt Home Server (hs) and Web Server (ws-arm) from scratch using Deployrr and UDMS Series 2025. Synology will be updated at somepoint. * Traefik udpated to v3. * Updated .env.example to match Deployrr/UDMS standards. * Updated README.md with current information and links to latest UDMS guides and videos. * Manually switched Google OAuth (Traefik Forward Auth) from thomseddon/traefik-forward-auth:latest to italypaleale/traefik-forward-auth:4 (maintained regularly at this time + more features). Deployrr will be updated at some point. ================================================ FILE: compose/archives/adguardhome-sync.yml ================================================ # AdGuard Home Sync - Sync Settings between AdGuard Homes adguardhome-sync: <<: *common-keys-core # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/adguardhome-sync:latest container_name: adguardhome-sync environment: <<: *default-tz-puid-pgid CONFIGFILE: /config/adguardhome-sync.yaml #optional volumes: - $DOCKERDIR/appdata/adguard-home/config:/config ================================================ FILE: compose/archives/ampache.yml ================================================ # Ampache - Music Server ampache: container_name: ampache image: ampache/ampache:nosql restart: "no" # profiles: # - media networks: - t2_proxy - default security_opt: - no-new-privileges:true # ports: # - "$AMPACHE_PORT:80" volumes: - $DOCKERDIR/appdata/ampache/config:/var/www/config - $DOCKERDIR/appdata/ampache/log:/var/log/ampache - $DATADIR/media/music:/media labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.ampache-rtr.entrypoints=https" - "traefik.http.routers.ampache-rtr.rule=Host(`amp.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.ampache-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.ampache-rtr.service=ampache-svc" - "traefik.http.services.ampache-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/apcupsd.yml ================================================ # APCUPSD - APC UPS Management # create the apcupsd.conf file apcupsd: image: gersilex/apcupsd:latest container_name: apcupsd restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true ports: - "$APCUPSD_PORT:3551" privileged: true tty: true volumes: - /tmp/apcupsd-docker:/tmp/apcupsd-docker - $DOCKERDIR/apcupsd/apcupsd.conf:/etc/apcupsd/apcupsd.conf - $DOCKERDIR/apcupsd/doshutdown:/etc/apcupsd/doshutdown - $DOCKERDIR/apcupsd/apcupsd.events:/var/log/apcupsd.events ================================================ FILE: compose/archives/autoindex.yml ================================================ services: # Autoindex - Simple Directory Index autoindex: container_name: autoindex image: dceoy/nginx-autoindex:latest security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - t2_proxy # ports: # - "$AUTOINDEX_PORT:80" volumes: - $USERDIR:/var/lib/nginx/html:ro # Location you want to index labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.autoindex-rtr.entrypoints=websecure" - "traefik.http.routers.autoindex-rtr.rule=Host(`index.$DOMAINNAME_WS`)" # Middlewares - "traefik.http.routers.autoindex-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.autoindex-rtr.service=autoindex-svc" - "traefik.http.services.autoindex-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/autoscan.yml ================================================ # Plex AutoScan - On demand/specific folder scanning for Plex autoscan: image: hotio/autoscan container_name: autoscan restart: "no" # profiles: # - media # - testing networks: - t2_proxy security_opt: - no-new-privileges:true #ports: # - "3030:3030" environment: PUID: $PUID PGID: $PGID TZ: $TZ UMASK: 002 #PLEX_LOGIN: "" #PLEX_PASSWORD: "" volumes: - $DOCKERDIR/appdata/autoscan:/config ================================================ FILE: compose/archives/cadvisor.yml ================================================ # cAdvisor - Container Advisor cadvisor: <<: *common-keys-monitoring # See EXTENSION FIELDS at the top container_name: cadvisor image: gcr.io/cadvisor/cadvisor:latest ports: - "$CADVISOR_PORT:8080" #privileged: true # Only needed for CentOS, Fedora, Red Hat, etc. #devices: # - /dev/kmsg volumes: - /:/rootfs:ro - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro - /dev/disk/:/dev/disk:ro labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.cadvisor-rtr.entrypoints=https" - "traefik.http.routers.cadvisor-rtr.rule=HostHeader(`cad.$DOMAINNAME1`)" ## Middlewares - "traefik.http.routers.cadvisor-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.cadvisor-rtr.service=cadvisor-svc" - "traefik.http.services.cadvisor-svc.loadbalancer.server.port=8080" ================================================ FILE: compose/archives/certdumper.yml ================================================ services: # Traefik Certs Dumper - Extract LetsEncrypt Certificates - Traefik2 Compatible certdumper: container_name: traefik_certdumper image: humenius/traefik-certs-dumper:latest security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] network_mode: none # command: --restart-containers container1,container2,container3 volumes: - $DOCKERDIR/appdata/traefik2/acme:/traefik:ro - $DOCKERDIR/shared/certs/$DOMAINNAME_WS:/output:rw # - /var/run/docker.sock:/var/run/docker.sock:ro # Only needed if restarting containers (use Docker Socket Proxy instead) environment: DOMAIN: $DOMAINNAME_WS ================================================ FILE: compose/archives/cf-companion.yml ================================================ # Cloudflare-Companion - Automatic CNAME DNS Creation cf-companion: <<: *common-keys-core # See EXTENSION FIELDS at the top container_name: cf-companion image: tiredofit/traefik-cloudflare-companion:latest networks: - socket_proxy environment: - TIMEZONE=$TZ - TRAEFIK_VERSION=2 - CF_TOKEN__FILE=/run/secrets/cf_token - TARGET_DOMAIN=cdoc.$DOMAINNAME_CLOUD_SERVER # Edit this. Either a subdomain or just $DOMAINNAME_CLOUD_SERVER pointing to the IP will work. See: https://github.com/htpcBeginner/docker-traefik/issues/244. - DOMAIN1=$DOMAINNAME_CLOUD_SERVER - DOMAIN1_ZONE_ID=$CLOUDFLARE_ZONEID # Copy from Cloudflare Overview page - DOMAIN1_PROXIED=TRUE - DOCKER_HOST=tcp://socket-proxy:2375 secrets: - cf_token labels: # Add hosts specified in rules here to force cf-companion to create the CNAMEs # Since cf-companion creates CNAMEs based on host rules, this a workaround for non-docker/external apps - "traefik.http.routers.cf-companion-rtr.rule=Host(Host(`webmin.$DOMAINNAME_CLOUD_SERVER`) || Host(`shell.$DOMAINNAME_CLOUD_SERVER`) || Host(`stcdoc.$DOMAINNAME_CLOUD_SERVER`) || Host(`ag.$DOMAINNAME_CLOUD_SERVER`)" ================================================ FILE: compose/archives/cloud-commander.yml ================================================ # Cloud Commander - web file manager cloudcmd: image: coderaiser/cloudcmd container_name: cloudcmd restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true volumes: - $USERDIR/docker/cloudcmd:/root - $USERDIR:/mnt/fs environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.cloudcmd-rtr.entrypoints=https" - "traefik.http.routers.cloudcmd-rtr.rule=Host(`cloudcmd.$DOMAINNAME`)" - "traefik.http.routers.cloudcmd-rtr.tls=true" ## Middlewares - "traefik.http.routers.cloudcmd-rtr.middlewares=chain-authelia@file" ## HTTP Services - "traefik.http.routers.cloudcmd-rtr.service=cloudcmd-svc" - "traefik.http.services.cloudcmd-svc.loadbalancer.server.port=8000" ================================================ FILE: compose/archives/cloud9.yml ================================================ # Cloud IDE - Editing cloud9: image: linuxserver/cloud9 container_name: cloud9 restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true ports: - "$CLOUD9_PORT:8000" volumes: - $USERDIR/server/scripts:/code - /var/run/docker.sock:/var/run/docker.sock environment: PUID: $PUID PGID: $PGID TZ: $TZ # PASSWORD: $CLOUD9_PASSWORD # USERNAME: $CLOUD9_USERNAME labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.cloud9-rtr.entrypoints=https" - "traefik.http.routers.cloud9-rtr.rule=Host(`cloud9.$DOMAINNAME`)" - "traefik.http.routers.cloud9-rtr.tls=true" ## Middlewares - "traefik.http.routers.cloud9-rtr.middlewares=chain-authelia@file" ## HTTP Services - "traefik.http.routers.cloud9-rtr.service=cloud9-svc" - "traefik.http.services.cloud9-svc.loadbalancer.server.port=8000" ================================================ FILE: compose/archives/cloudflare-ddns.yml ================================================ # Cloudflare DDNS - Dynamic DNS Updater cloudddns: container_name: cloudddns restart: always image: joshava/cloudflare-ddns volumes: - $USERDIR/docker/cloudflare-ddns/config.yaml:/app/config.yaml environment: - PUID=$PUID - PGID=$PGID - TZ=$TZ ================================================ FILE: compose/archives/cloudplow.yml ================================================ # CloudPlow - Rclone remote uploader/syncer cloudplow: image: sabrsorensen/alpine-cloudplow container_name: cloudplow restart: "no" security_opt: - no-new-privileges:true volumes: - $DOCKERDIR/appdata/cloudplow:/config/:rw - $DOCKERDIR/appdata/rclone:/rclone_config/:rw #- /home//google_drive_service_accounts:/service_accounts/:rw - $DATADIR/media:/data/media:rw - /etc/localtime:/etc/localtime:ro environment: - PUID=$PUID - PGID=$PGID - CLOUDPLOW_CONFIG=/config/config.json - CLOUDPLOW_LOGFILE=/config/cloudplow.log - CLOUDPLOW_LOGLEVEL=DEBUG - CLOUDPLOW_CACHEFILE=/config/cache.db ================================================ FILE: compose/archives/crowdsec-blocklist.yml ================================================ # CrowdSec Blocklist Mirror - For PiHole/AdGuard Use # sudo docker exec crowdsec cscli bouncer add cloudflare-bouncer crowdsec-blocklist: image: crowdsecurity/blocklist-mirror container_name: crowdsec-blocklist security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - t2_proxy volumes: - $DOCKERDIR/appdata/crowdsec-blocklist/cfg.yaml:/etc/crowdsec/bouncers/crowdsec-blocklist-mirror.yaml labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.crowdsec-blocklist-rtr.entrypoints=https" - "traefik.http.routers.crowdsec-blocklist-rtr.rule=Host(`blocklist.$DOMAINNAME_SHB`)" # https://domain.com/security/blocklist ## Middlewares - "traefik.http.routers.crowdsec-blocklist-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.crowdsec-blocklist-rtr.service=crowdsec-blocklist-svc" - "traefik.http.services.crowdsec-blocklist-svc.loadbalancer.server.port=41412" ================================================ FILE: compose/archives/crowdsec-metabase.yml ================================================ # CrowdSec Dashboard # Uses a lot of resources. May be crowdsec's cloud dashboard or Prometheus Grafana may be a better option. csdash: <<: *common-keys-apps # See EXTENSION FIELDS at the top container_name: crowdsec-dashboard build: context: $DOCKERDIR/custom/ dockerfile: Dockerfile-csdash depends_on: - crowdsec environment: - MB_DB_FILE=/data/metabase.db - MGID=1000 volumes: - $DOCKERDIR/appdata/crowdsec/data:/metabase-data/ labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.csdash-rtr.entrypoints=https" - "traefik.http.routers.csdash-rtr.rule=Host(`csdash.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.csdash-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.csdash-rtr.service=csdash-svc" - "traefik.http.services.csdash-svc.loadbalancer.server.port=3000" ================================================ FILE: compose/archives/dashy.yml ================================================ # Dashy - Application Dashboard dashy: <<: *common-keys-apps # See EXTENSION FIELDS at the top container_name: dashy image: lissy93/dashy healthcheck: test: ['CMD', 'node', '/app/services/healthcheck'] interval: 1m30s timeout: 10s retries: 3 start_period: 40s ports: - 4000:80 volumes: - $DOCKERDIR/appdata/dashy/conf.yml:/app/public/conf.yml - $DOCKERDIR/appdata/dashy:/app/public/item-icons environment: - NODE_ENV=production - UID=$PUID - GID=$PGID labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.dashy-rtr.entrypoints=https" - "traefik.http.routers.dashy-rtr.rule=Host(`$DOMAINNAME_HOME_SYNOLOGY`,`www.$DOMAINNAME_HOME_SYNOLOGY`)" ## Middlewares - "traefik.http.routers.dashy-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.dashy-rtr.service=dashy-svc" - "traefik.http.services.dashy-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/digikam.yml ================================================ # digikam - Photo Management digikam: image: ghcr.io/linuxserver/digikam container_name: digikam restart: unless-stopped networks: - t2_proxy volumes: - $DOCKERDIR/appdata/digikam:/config - $DATADIR/photos:/data/photos #ports: # - 3000:3000 environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.digikam-rtr.entrypoints=https" - "traefik.http.routers.digikam-rtr.rule=Host(`digikam.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.digikam-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.digikam-rtr.service=digikam-svc" - "traefik.http.services.digikam-svc.loadbalancer.server.port=3000" ================================================ FILE: compose/archives/dns/adguardhome-sync.yml ================================================ services: # AdGuard Home Sync - Sync Settings between AdGuard Homes adguardhome-sync: image: lscr.io/linuxserver/adguardhome-sync:latest container_name: adguardhome-sync restart: unless-stopped profiles: ["core", "all", "dns"] environment: TZ: $TZ PUID: $PUID PGID: $PGID CONFIGFILE: /config/adguardhome-sync.yaml #optional volumes: - $DOCKERDIR/appdata/adguardhome-sync:/config ================================================ FILE: compose/archives/dns/adguardhome.yml ================================================ services: # AdGuard Home - DNS AdBlocking adguardhome: container_name: adguardhome image: adguard/adguardhome restart: unless-stopped profiles: ["core", "all", "dns"] network_mode: host # networks: # - default # ports: # - 53:53/udp # - 67:67/udp # - 68:68/tcp # - 1068:68/udp # port conflict with Raspbery PI OS DHCPD https://github.com/AdguardTeam/AdGuardHome/issues/1049 # - 81:80/tcp # - 444:443/tcp # - 853:853/tcp # # - 3000:3000/tcp volumes: - $DOCKERDIR/appdata/adguardhome/conf:/opt/adguardhome/conf - $DOCKERDIR/appdata/adguardhome/work:/opt/adguardhome/work # - $DOCKERDIR/shared/certs/$DOMAINNAME_SHB:/certs # optional: if you have your own SSL certs ================================================ FILE: compose/archives/dns/ddns-updater.yml ================================================ services: # Cloudflare DDNS - Dynamic DNS Updater ddns-updater: image: qmcgaw/ddns-updater container_name: ddns-updater restart: unless-stopped profiles: ["core", "all", "dns"] networks: - t2_proxy ports: - 8000:8000/tcp volumes: - $DOCKERDIR/appdata/ddns-updater:/updater/data # Owned by UID 1000 environment: TZ: $TZ PERIOD: 4h UPDATE_COOLDOWN_PERIOD: 5m PUBLICIP_DNS_TIMEOUT: 3s HTTP_TIMEOUT: 10s DATADIR: /updater/data # Web UI LISTENING_PORT: 8000 # Backup BACKUP_PERIOD: 96h # 0 to disable BACKUP_DIRECTORY: /updater/data/backups # Other LOG_LEVEL: warning SHOUTRRR_ADDRESSES: $DISCORD_SHOUTRRR_ADDRESS ================================================ FILE: compose/archives/dns/socket-proxy.yml ================================================ services: # Docker Socket Proxy - Security Enchanced Proxy for Docker Socket socket-proxy: container_name: socket-proxy image: tecnativa/docker-socket-proxy security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: socket_proxy: ipv4_address: 192.168.91.254 # You can specify a static IP # privileged: true # true for VM. False for unprivileged LXC container. ports: # - "$ZEROTIER_IP_SYNOLOGY:2375:2375" # Port 2375 should only ever get exposed to the internal network. When possible use this line. # I use the next line instead, as I want portainer to manage multiple docker endpoints within my home network. - "2375:2375" volumes: - "/var/run/docker.sock:/var/run/docker.sock" environment: - LOG_LEVEL=info # debug,info,notice,warning,err,crit,alert,emerg ## Variables match the URL prefix (i.e. AUTH blocks access to /auth/* parts of the API, etc.). # 0 to revoke access. # 1 to grant access. ## Granted by Default - EVENTS=1 - PING=1 - VERSION=1 ## Revoked by Default # Security critical - AUTH=0 - SECRETS=0 - POST=1 # Watchtower # Not always needed - BUILD=0 - COMMIT=0 - CONFIGS=0 - CONTAINERS=1 # Traefik, portainer, etc. - DISTRIBUTION=0 - EXEC=0 - IMAGES=1 # Portainer - INFO=1 # Portainer - NETWORKS=1 # Portainer - NODES=0 - PLUGINS=0 - SERVICES=1 # Portainer - SESSION=0 - SWARM=0 - SYSTEM=0 - TASKS=1 # Portainer - VOLUMES=1 # Portainer ================================================ FILE: compose/archives/dns/traefik.yml ================================================ services: # Traefik 2 - Reverse Proxy traefik: container_name: traefik image: traefik:2.10 security_opt: - no-new-privileges:true restart: unless-stopped #profiles: ["core", "all"] networks: t2_proxy: ipv4_address: 192.168.90.254 # You can specify a static IP socket_proxy: command: # CLI arguments - --global.checkNewVersion=true - --global.sendAnonymousUsage=true - --entrypoints.http.address=:80 - --entrypoints.https.address=:443 - --entrypoints.traefik.address=:8080 # - --entrypoints.ping.address=:8081 - --entrypoints.http.http.redirections.entrypoint.to=https - --entrypoints.http.http.redirections.entrypoint.scheme=https - --entrypoints.http.http.redirections.entrypoint.permanent=true - --api=true - --api.dashboard=true - --api.insecure=true #- --ping=true # - --serversTransport.insecureSkipVerify=true # Allow these IPs to set the X-Forwarded-* headers - Cloudflare IPs: https://www.cloudflare.com/ips/ - --entrypoints.https.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS - --log=true - --log.filePath=/logs/traefik.log - --log.level=INFO # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC - --accessLog=true - --accessLog.filePath=/logs/access.log - --accessLog.bufferingSize=100 # Configuring a buffer of 100 lines - --accessLog.filters.statusCodes=204-299,400-499,500-599 - --providers.docker=true # - --providers.docker.endpoint=unix:///var/run/docker.sock # Disable for Socket Proxy. Enable otherwise. - --providers.docker.endpoint=tcp://socket-proxy:2375 # Enable for Socket Proxy. Disable otherwise. - --providers.docker.exposedByDefault=false - --providers.docker.network=t2_proxy # Previously t2_proxy - --providers.docker.swarmMode=false - --entrypoints.https.http.tls=true - --entrypoints.https.http.tls.options=tls-opts@file # Add dns-cloudflare as default certresolver for all services. Also enables TLS and no need to specify on individual services - --entrypoints.https.http.tls.certresolver=dns-cloudflare - --entrypoints.https.http.tls.domains[0].main=$DOMAINNAME_DNS - --entrypoints.https.http.tls.domains[0].sans=*.$DOMAINNAME_DNS - --providers.file.directory=/rules # Load dynamic configuration from one or more .toml or .yml files in a directory - --providers.file.watch=true # Only works on top level files in the rules folder - --certificatesResolvers.dns-cloudflare.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory # LetsEncrypt Staging Server - uncomment when testing - --certificatesResolvers.dns-cloudflare.acme.storage=/acme.json - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.provider=cloudflare - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.resolvers=1.1.1.1:53,1.0.0.1:53 - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.delayBeforeCheck=90 # To delay DNS check and reduce LE hitrate # - --metrics.prometheus=true # - --metrics.prometheus.buckets=0.1,0.3,1.2,5.0 #healthcheck: # test: ["CMD", "traefik", "healthcheck", "--ping"] # interval: 5s # retries: 3 ports: - target: 80 published: 80 protocol: tcp mode: host - target: 443 published: 443 protocol: tcp mode: host # - target: 8080 # need to enable --api.insecure=true # published: 8080 # protocol: tcp # mode: host volumes: - $DOCKERDIR/appdata/traefik2/rules/$HOSTNAME:/rules # Dynamic File Provider directory # - /var/run/docker.sock:/var/run/docker.sock:ro # Enable if not using Socket Proxy - $DOCKERDIR/appdata/traefik2/acme/acme.json:/acme.json # Certs File - $DOCKERDIR/logs/$HOSTNAME/traefik:/logs # Traefik logs environment: - TZ=$TZ - CF_DNS_API_TOKEN_FILE=/run/secrets/cf_dns_api_token - HTPASSWD_FILE=/run/secrets/basic_auth_credentials # HTTP Basic Auth Credentials - DOMAINNAME_DNS - DOMAINNAME_HS secrets: - cf_dns_api_token - basic_auth_credentials labels: #- "autoheal=true" - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.traefik-rtr.entrypoints=https" - "traefik.http.routers.traefik-rtr.rule=Host(`traefik.$DOMAINNAME_DNS` )" # Services - API - "traefik.http.routers.traefik-rtr.service=api@internal" # Healthcheck/ping #- "traefik.http.routers.ping.rule=Host(`traefik.$DOMAINNAME_DNS`) && Path(`/ping`)" #- "traefik.http.routers.ping.tls=true" #- "traefik.http.routers.ping.service=ping@internal" # Middlewares - "traefik.http.routers.traefik-rtr.middlewares=chain-basic-auth@file" #- "traefik.http.routers.traefik-rtr.middlewares=chain-oauth@file" ================================================ FILE: compose/archives/dns/unbound.yml ================================================ services: unbound: container_name: unbound image: mvance/unbound-rpi:latest network_mode: host volumes: - $DOCKERDIR/appdata/unbound:/opt/unbound/etc/unbound healthcheck: disable: true restart: unless-stopped profiles: ["core", "all", "dns"] ================================================ FILE: compose/archives/dns/wg-easy.yml ================================================ # services: # # WG-EASY - WireGuard Easy # wg-easy: # image: weejewel/wg-easy # container_name: wg-easy # restart: unless-stopped # profiles: ["core", "all"] # network_mode: host # # networks: # # - rpi4b # cap_add: # - NET_ADMIN # - SYS_MODULE # # sysctls: # # - net.ipv4.ip_forward=1 # # - net.ipv4.conf.all.src_valid_mark=1 # # ports: # # - "51822:51822/udp" # # - "51821:51821/tcp" # WebUI # volumes: # - $DOCKERDIR/appdata/wireguard:/etc/wireguard # environment: # - WG_HOST=$DOMAINNAME_CLOUD_SERVER # - PASSWORD=$WGEASY_PASSWORD # # Optional: # # - WG_PORT=18205 # does not work in host mode # - WG_DEFAULT_ADDRESS=192.168.20.x # - WG_DEFAULT_DNS=192.168.1.101,192.168.1.102 # # - WG_MTU=1420 # - WG_ALLOWED_IPS=0.0.0.0/0, ::/0 # # - WG_PRE_UP=echo "Pre Up" > /etc/wireguard/pre-up.txt # # - WG_POST_UP=echo "Post Up" > /etc/wireguard/post-up.txt # # - WG_PRE_DOWN=echo "Pre Down" > /etc/wireguard/pre-down.txt # # - WG_POST_DOWN=echo "Post Down" > /etc/wireguard/post-down.txt ================================================ FILE: compose/archives/dupeguru.yml ================================================ # DupeGuru - Duplicate File/Folder Remover dupeguru: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: jlesage/dupeguru:latest container_name: dupeguru # ports: # - "$dupeguru_PORT:5800" volumes: - $USERDIR:/data/home:ro - $DOCKERDIR/appdata/dupeguru/config:/config:rw - /media/data:/data/data:rw environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $DUPEGURU_VNC_PASSWD labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.dupeguru-rtr.entrypoints=https" - "traefik.http.routers.dupeguru-rtr.rule=Host(`dupe.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.dupeguru-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.dupeguru-rtr.service=dupeguru-svc" - "traefik.http.services.dupeguru-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/emby.yml ================================================ # Emby - Media Server embyms: image: emby/embyserver:latest container_name: embyms restart: unless-stopped networks: - t2_proxy devices: - /dev/dri:/dev/dri # for harware transcoding security_opt: - no-new-privileges:true ports: - "$EMBY_PORT:8096/tcp" - "8920:8920/tcp" volumes: - /etc/localtime:/etc/localtime:ro - $DOCKERDIR/appdata/embyms:/config - /dev/shm:/data/transcode - $DATADIR/media:/data/media - $DATADIR/Downloads:/data/downloads environment: TZ: $TZ HOSTNAME: "nucEmby" UID: $PUID GID: $PGID labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.embyms-rtr.entrypoints=https" - "traefik.http.routers.embyms-rtr.rule=Host(`nucemby.$DOMAINNAME`)" ## Middlewares - "traefik.http.routers.embyms-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.embyms-rtr.service=embyms-svc" - "traefik.http.services.embyms-svc.loadbalancer.server.port=8096" ================================================ FILE: compose/archives/filebrowser.yml ================================================ # File Browser - Explorer filebrowser: image: filebrowser/filebrowser:s6 container_name: filebrowser security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - t2_proxy ports: - "81:80" volumes: - $DOCKERDIR/appdata/filebrowser:/config - $EXTDRIVE:/data/media - $USERDIR:/data/home environment: TZ: $TZ PUID: $PUID PGID: $PGID labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.filebrowser-rtr.entrypoints=https" - "traefik.http.routers.filebrowser-rtr.rule=Host(`fb.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.filebrowser-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.filebrowser-rtr.service=filebrowser-svc" - "traefik.http.services.filebrowser-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/firefox.yml ================================================ # Firefox - Web Broswer # VNC password not working - check firefox: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: jlesage/firefox:latest container_name: firefox security_opt: - no-new-privileges:true - seccomp:unconfined # October 15, 2020 https://github.com/jlesage/docker-firefox/blob/master/README.md#allowing-the-membarrier-system-call # ports: # - "$FIREFOX_PORT:5800" volumes: - $DOCKERDIR/appdata/firefox:/config - $DOWNLOADSDIR:/config/Downloads - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 # VNC_PASSWD: $FIREFOX_VNC_PASSWD # Since OAuth is enabled labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.firefox-rtr.entrypoints=https" - "traefik.http.routers.firefox-rtr.rule=Host(`firefoxh.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.firefox-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.firefox-rtr.service=firefox-svc" - "traefik.http.services.firefox-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/flaresolverr.yml ================================================ # FlareSolverr - Proxy server to bypass Cloudflare protection # Not sure if I need this or not. Just testing. flaresolverr: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: ghcr.io/flaresolverr/flaresolverr:latest container_name: flaresolverr networks: t2_proxy: ipv4_address: 192.168.90.160 environment: LOG_LEVEL: info LOG_HTML: false CAPTCHA_SOLVER: none TZ: $TZ #ports: # - "8191:8191" restart: unless-stopped ================================================ FILE: compose/archives/funkwhale.yml ================================================ # FunkWhale - Music Server funkwhale: <<: *common-keys-media # See EXTENSION FIELDS at the top container_name: funkwhale image: thetarkus/funkwhale # ports: # - "$FUNKWHALE_PORT:80" volumes: - $DOCKERDIR/appdata/funkwhale:/data - $DATADIR/media/music:/music:ro environment: - PUID=$PUID - PGID=$PGID - FUNKWHALE_HOSTNAME=proxfw.$DOMAINNAME0 - NESTED_PROXY=1 labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.funkwhale-rtr.entrypoints=https" - "traefik.http.routers.funkwhale-rtr.rule=Host(`proxfw.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.funkwhale-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.funkwhale-rtr.service=funkwhale-svc" - "traefik.http.services.funkwhale-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/glances.yml ================================================ # Glances - System Information glances: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: nicolargo/glances:latest container_name: glances # privileged: true # Only for VM # network_mode: host networks: - t2_proxy - socket_proxy - default # ports: # - "$GLANCES_PORT:61208" pid: host volumes: - $DOCKERDIR/appdata/glances/glances.conf:/glances/conf/glances.conf # Use this if you want to add a glances.conf file - $USERDIR:/data/home:ro - /media/data:/data/data:ro # - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security environment: # GLANCES_OPT: "-C /glances/conf/glances.conf --quiet --export influxdb" # GLANCES_OPT: "--export influxdb" GLANCES_OPT: "-w" DOCKER_HOST: tcp://socket-proxy:2375 labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.glances-rtr.entrypoints=https" - "traefik.http.routers.glances-rtr.rule=Host(`glances.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.glances-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.glances-rtr.service=glances-svc" - "traefik.http.services.glances-svc.loadbalancer.server.port=61208" ================================================ FILE: compose/archives/gonic.yml ================================================ # Gonic - Music Server gonic: container_name: gonic image: sentriz/gonic:latest restart: "no" # profiles: # - media networks: - t2_proxy security_opt: - no-new-privileges:true # ports: # - "$GONIC_PORT:80" volumes: - $DOCKERDIR/appdata/gonic/data:/data - $DOCKERDIR/appdata/gonic/podcasts:/podcasts - $DATADIR/transcode/gonic:/cache - $DATADIR/media/music:/music:ro environment: - PUID=$PUID - PGID=$PGID - TZ=$TZ labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.gonic-rtr.entrypoints=https" - "traefik.http.routers.gonic-rtr.rule=Host(`gonic.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.gonic-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.gonic-rtr.service=gonic-svc" - "traefik.http.services.gonic-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/ha-dockermon.yml ================================================ # HA-Dockermon - Manage Docker containers in Home Assistant ha-dockermon: image: philhawthorne/ha-dockermon:latest container_name: ha-dockermon restart: unless-stopped networks: - socket_proxy security_opt: - no-new-privileges:true ports: - "$HA_DOCKERMON_PORT:8126" volumes: - $DOCKERDIR/ha-dockermon:/config # - /var/run/docker.sock:/var/run/docker.sock environment: PUID: $PUID PGID: $PGID TZ: $TZ DOCKER_HOST: tcp://socket-proxy:2375 ================================================ FILE: compose/archives/handbrake.yml ================================================ # Handbrake - Video Conversion (Transcoding and compression) handbrake: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: jlesage/handbrake:latest container_name: handbrake # ports: # - "$HANDBRAKE_PORT:5800" volumes: - $DATADIR/downloads:/data/downloads - $DOCKERDIR/appdata/handbrake/config:/config - $DOCKERDIR/appdata/handbrake/watch:/watch environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 AUTOMATED_CONVERSION_KEEP_SOURCE: 1 VNC_PASSWORD: $HANDBRAKE_VNC_PASSWD labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.handbrake-rtr.entrypoints=https" - "traefik.http.routers.handbrake-rtr.rule=Host(`handbrake.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.handbrake-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.handbrake-rtr.service=handbrake-svc" - "traefik.http.services.handbrake-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/headscale.yml ================================================ # HeadScale - SDN headscale: <<: *common-keys-core # See EXTENSION FIELDS at the top image: headscale/headscale:latest container_name: headscale volumes: - $DOCKERDIR/appdata/headscale/config:/etc/headscale - $DOCKERDIR/appdata/headscale/data:/var/lib/headscale #ports: # - 27896:8080 command: headscale serve labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.headscale-rtr.entrypoints=https" - "traefik.http.routers.headscale-rtr.rule=Host(`headscale.$DOMAINNAME_SHB`)" ## Middlewares #- "traefik.http.routers.headscale-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.headscale-rtr.service=headscale-svc" - "traefik.http.services.headscale-svc.loadbalancer.server.port=8080" ================================================ FILE: compose/archives/heimdall.yml ================================================ # Heimdall - Application Dashboard heimdall: <<: *common-keys-core # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/heimdall container_name: heimdall # ports: # - "$HEIMDALL_PORT:80" # 80 to 82 already taken by other services # - "444:443" # 443 used by Traefik/Nginx Proxy Manager. Disabled because we will put Heimdall behind proxy. volumes: - $DOCKERDIR/appdata/heimdall:/config environment: <<: *default-tz-puid-pgid labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.heimdall-rtr.entrypoints=https" - "traefik.http.routers.heimdall-rtr.rule=Host(`$DOMAINNAME_CLOUD_SERVER`,`www.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.heimdall-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.heimdall-rtr.service=heimdall-svc" - "traefik.http.services.heimdall-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/homeassistant.yml ================================================ # Home Assistant Core - Home Automation # Added temporarily since HASS.io (Home Assistant Supervised) on Docker has been deprecated. homeassistant: container_name: hass-core restart: unless-stopped image: homeassistant/home-assistant:2021.1.5 network_mode: host # networks: # - t2_proxy devices: - /dev/ttyUSB0:/dev/ttyUSB0 - /dev/ttyUSB1:/dev/ttyUSB1 - /dev/ttyACM0:/dev/ttyACM0 privileged: true volumes: - $USERDIR/docker/homeassistant:/config - /etc/localtime:/etc/localtime:ro #- /media/ssd/motioneye:/media/motioneye environment: - PUID=$PUID - PGID=$PGID - TZ=$TZ labels: ## Exclude From Watchtower - "com.centurylinklabs.watchtower.enable=false" # Home Assistant Core - Home Automation # If you want Home Assistant, use the one above. This is was old setup. I am still migrating things from this one to Home Assistant Core Above. # Added temporarily since HASS.io (Home Assistant Supervised) on Docker has been deprecated. hassio: container_name: hassio restart: unless-stopped image: homeassistant/home-assistant:0.111.0 networks: - t2_proxy devices: - /dev/ttyUSB0:/dev/ttyUSB0 - /dev/ttyUSB1:/dev/ttyUSB1 - /dev/ttyACM0:/dev/ttyACM0 ports: - target: 8123 published: $HOMEASSISTANT_PORT protocol: tcp mode: host privileged: true volumes: - $USERDIR/docker/hassio/homeassistant:/config - /etc/localtime:/etc/localtime:ro - $USERDIR/docker/shared:/shared - $USERDIR/docker/open-zwave:/open-zwave environment: - PUID=$PUID - PGID=$PGID - TZ=$TZ labels: ## Exclude From Watchtower - "com.centurylinklabs.watchtower.enable=false" ================================================ FILE: compose/archives/homepage.yml ================================================ services: # Homepage - Application Dashboard homepage: image: ghcr.io/gethomepage/homepage:latest container_name: homepage security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - t2_proxy - socket_proxy # ports: # - "3000:3000" volumes: - $DOCKERDIR/appdata/homepage:/app/config environment: TZ: $TZ PUID: $PUID PGID: $PGID labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.homepage-rtr.entrypoints=websecure" - "traefik.http.routers.homepage-rtr.rule=Host(`$DOMAINNAME_1`,`www.$DOMAINNAME_1`)" # Both domain.com and www.domain.com ## Middlewares - "traefik.http.routers.homepage-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.homepage-rtr.service=homepage-svc" - "traefik.http.services.homepage-svc.loadbalancer.server.port=3000" ================================================ FILE: compose/archives/jackett.yml ================================================ # Jackett - Torrent proxy # Set url_base in Jackett settings if using PathPrefix jackett: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/jackett:latest container_name: jackett # network_mode: container:transmission-vpn networks: t2_proxy: ipv4_address: 192.168.90.161 # ports: # - "$JACKETT_PORT:9117" volumes: - $DOCKERDIR/appdata/jackett:/config - $DATADIR/downloads:/data/downloads - "/etc/localtime:/etc/localtime:ro" environment: <<: *default-tz-puid-pgid labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.jackett-rtr.entrypoints=https" - "traefik.http.routers.jackett-rtr.rule=Host(`jackett.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.jackett-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.jackett-rtr.service=jackett-svc" - "traefik.http.services.jackett-svc.loadbalancer.server.port=9117" ================================================ FILE: compose/archives/loki.yml ================================================ # Loki - Log Aggregation loki: <<: *common-keys-monitoring # See EXTENSION FIELDS at the top container_name: loki image: grafana/loki:latest volumes: - $DOCKERDIR/appdata/loki:/etc/loki ports: - "$LOKI_PORT:3100" command: -config.file=/etc/loki/config.yml ================================================ FILE: compose/archives/makemkv.yml ================================================ # MakeMKV - Video Editing (Ripping from Disks) makemkv: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: jlesage/makemkv:latest container_name: makemkv # ports: # - "$MAKEMKV_PORT:5800" volumes: - $DATADIR/downloads:/data/downloads - $DOCKERDIR/appdata/makemkv/config:/config - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $MAKEMKV_VNC_PASSWD labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.makemkv-rtr.entrypoints=https" - "traefik.http.routers.makemkv-rtr.rule=Host(`makemkv.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.makemkv-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.makemkv-rtr.service=makemkv-svc" - "traefik.http.services.makemkv-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/mergerfs.yml ================================================ # MergerFS - A featureful union filesystem mergerfs: container_name: mergerfs hostname: mergerfs image: hotio/mergerfs:latest restart: always depends_on: - rclone-drive - rclone-crypt user: $PUID:$PGID command: "/data/media-local:/data/media-crypt:/data/media-drive=RO \ /data/media \ -o rw,\ use_ino,\ allow_other,\ func.getattr=newest,\ category.action=all,\ category.create=ff,\ statfs_ignore=nc,\ cache.files=auto-full,\ func.getattr=newest,\ dropcacheonclose=true,\ nonempty" cap_add: - SYS_ADMIN security_opt: - apparmor:unconfined devices: - /dev/fuse environment: - TZ=$TZ volumes: - /etc/passwd:/etc/passwd:ro - /etc/group:/etc/group:ro - /etc/fuse.conf:/etc/fuse.conf:shared #- $DATADIR:/data:slave # creates local-media and shb-media on host - $DATADIR/local/media:/data/media-local:rshared - /media/shb-drive/media:/data/media-drive:rshared - /media/shb-crypt/media:/data/media-crypt:rshared - $DATADIR/media:/data/media:rshared ================================================ FILE: compose/archives/metube.yml ================================================ # MeTube - Youtube downloader # Could not get this to work - "Could not resolve name" error metube: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: alexta69/metube container_name: metube user: $PUID:$PGID volumes: - $DATADIR/downloads/youtube:/downloads - $DOCKERDIR/appdata/metube/config:/config - $DOCKERDIR/appdata/metube/cookies:/cookies environment: - STATE_DIR=/config - YTDL_OPTIONS={"cookiefile":"/cookies/cookies.txt"} labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.metube-rtr.entrypoints=https" - "traefik.http.routers.metube-rtr.rule=Host(`metube.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.metube-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.metube-rtr.service=metube-svc" - "traefik.http.services.metube-svc.loadbalancer.server.port=8081" ================================================ FILE: compose/archives/miflora.yml ================================================ # MiFlora MQTT Daemon - BT to MQTT Daemon for MiFlora Sensors miflora: image: raymondmm/miflora-mqtt container_name: miflora-mqtt environment: - TZ=$TZ network_mode: host # user: "0" volumes: - $USERDIR/docker/miflora-mqtt/config:/config restart: unless-stopped ================================================ FILE: compose/archives/mkvtoolnix.yml ================================================ # MKVToolNix - Video Editing (Remuxing - changing media container while keeping original source quality) mkvtoolnix: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: jlesage/mkvtoolnix:latest container_name: mkvtoolnix # ports: # - "$MKVTOOLNIX_PORT:5800" volumes: - $DATADIR/downloads:/data/downloads - $DOCKERDIR/appdata/mkvtoolnix/config:/config:rw environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $MKVTOOLNIX_VNC_PASSWD labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.mkvtoolnix-rtr.entrypoints=https" - "traefik.http.routers.mkvtoolnix-rtr.rule=Host(`mkvtoolnix.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.mkvtoolnix-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.mkvtoolnix-rtr.service=mkvtoolnix-svc" - "traefik.http.services.mkvtoolnix-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/mosquitto.yml ================================================ # 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: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: eclipse-mosquitto:latest container_name: mosquitto ports: - "$MOSQUITTO_HTTP_PORT:1883" #http - "9001:9001" #websockets # - "$MOSQUITTO_HTTPS_PORT:8883" #https volumes: - $DOCKERDIR/appdata/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf - $DOCKERDIR/appdata/mosquitto/config/passwd:/mosquitto/config/passwd - $DOCKERDIR/shared:/shared environment: PUID: $PUID PGID: $PGID TZ: $TZ ================================================ FILE: compose/archives/motioneye.yml ================================================ # MotionEye - Video Surveillance motioneye: image: ccrisan/motioneye:master-amd64 container_name: motioneye restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true ports: - "$MOTIONEYE_CAM1:8081" - "$MOTIONEYE_CAM2:8082" - "$MOTIONEYE_CAM3:8083" - "$MOTIONEYE_PORT:8765" volumes: - /etc/localtime:/etc/localtime:ro - $DOCKERDIR/shared:/shared - $DOCKERDIR/motioneye/etc:/etc/motioneye - $DOCKERDIR/motioneye/merged:/var/lib/motioneye # merged = local + google drive, using rclone and mergerfs environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: - "traefik.enable=true" ## HTTP Routers Auth Bypass # - "traefik.http.routers.motioneye-rtr-bypass.entrypoints=https" # - "traefik.http.routers.motioneye-rtr-bypass.rule=Headers(`$MOTIONEYE_BYPASS_KEY`, `$MOTIONEYE_BYPASS_VALUE`)" # - "traefik.http.routers.motioneye-rtr-bypass.priority=100" ## HTTP Routers Auth - "traefik.http.routers.motioneye-rtr.entrypoints=https" - "traefik.http.routers.motioneye-rtr.rule=Host(`meye.$DOMAINNAME`)" - "traefik.http.routers.motioneye-rtr.priority=99" ## Middlewares # - "traefik.http.routers.motioneye-rtr-bypass.middlewares=chain-no-auth@file" - "traefik.http.routers.motioneye-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.motioneye-rtr.service=motioneye-svc" # - "traefik.http.routers.motioneye-rtr-bypass.service=motioneye-svc" - "traefik.http.services.motioneye-svc.loadbalancer.server.port=8765" ================================================ FILE: compose/archives/musicbrainz.yml ================================================ # MusicBrainz - Music Library Tagging and Management musicbrainz: image: ghcr.io/linuxserver/musicbrainz container_name: musicbrainz restart: "no" # profiles: # - media networks: - t2_proxy security_opt: - no-new-privileges:true # ports: # - "$MUSICBRAINZ_PORT:5000" volumes: - $DOCKERDIR/appdata/musicbrainz/config:/config - $DATADIR/temp/docker/appdata/musicbrainz/data:/data environment: PUID: $PUID PGID: $PGID TZ: $TZ FILE__BRAINZCODE: /run/secrets/brainzcode WEBADDRESS: $SERVER_IP #NPROC: #optional secrets: - brainzcode labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.musicbrainz-rtr.entrypoints=https" - "traefik.http.routers.musicbrainz-rtr.rule=Host(`brainz.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.musicbrainz-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.musicbrainz-rtr.service=musicbrainz-svc" - "traefik.http.services.musicbrainz-svc.loadbalancer.server.port=5000" ================================================ FILE: compose/archives/navidrome.yml ================================================ # Navidrome - Music Server navidrome: <<: *common-keys-media # See EXTENSION FIELDS at the top container_name: navidrome image: deluan/navidrome:latest # ports: # - "$FUNKWHALE_PORT:4533" user: $PUID:$PGID volumes: - $DOCKERDIR/appdata/navidrome:/data - $DATADIR/media/music/English:/music/English:ro - $DATADIR/media/music/Kids:/music/Kids:ro environment: - TZ=$TZ - ND_SCANSCHEDULE=1h - ND_LOGLEVEL=info #- ND_BASEURL="" - ND_SESSIONTIMEOUT=24h labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.navidrome-rtr.entrypoints=https" - "traefik.http.routers.navidrome-rtr.rule=Host(`proxnd.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.navidrome-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.navidrome-rtr.service=navidrome-svc" - "traefik.http.services.navidrome-svc.loadbalancer.server.port=4533" ================================================ FILE: compose/archives/node-exporter.yml ================================================ # Node Exporter - Metrics to Prometheus node-exporter: <<: *common-keys-monitoring # See EXTENSION FIELDS at the top container_name: node-exporter image: prom/node-exporter:latest ports: - "$NODE_EXPORTER_PORT:9100" volumes: - /proc:/host/proc:ro - /sys:/host/sys:ro - /:/rootfs:ro command: - '--path.procfs=/host/proc' - '--path.sysfs=/host/sys' - --collector.filesystem.ignored-mount-points - "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)" ================================================ FILE: compose/archives/nzbget.yml ================================================ # nzbget - Binary newsgrabber (NZB downloader) nzbget: image: lscr.io/linuxserver/nzbget container_name: nzbget security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - t2_proxy ports: - "6789:6789" volumes: - $DOCKERDIR/appdata/nzbget:/config - $DATADIR/downloads:/data/downloads environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: - "traefik.enable=true" ## HTTP Routers Auth Bypass - "traefik.http.routers.nzbget-rtr-bypass.entrypoints=https" - "traefik.http.routers.nzbget-rtr-bypass.rule=Headers(`traefik-bypass-key`, `$TRAEFIK_BYPASS_KEY`)" # Bypass Auth for LunaSea on iOS - "traefik.http.routers.nzbget-rtr-bypass.priority=100" ## HTTP Routers Auth - "traefik.http.routers.nzbget-rtr.entrypoints=https" - "traefik.http.routers.nzbget-rtr.rule=Host(`nzbget.$DOMAINNAME_CLOUD_SERVER`)" - "traefik.http.routers.nzbget-rtr.priority=99" ## Middlewares - "traefik.http.routers.nzbget-rtr-bypass.middlewares=chain-no-auth@file" - "traefik.http.routers.nzbget-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.nzbget-rtr.service=nzbget-svc" - "traefik.http.routers.nzbget-rtr-bypass.service=nzbget-svc" - "traefik.http.services.nzbget-svc.loadbalancer.server.port=6789" ================================================ FILE: compose/archives/nzbhydra.yml ================================================ # NZBHydra2 - NZB meta search hydra: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: linuxserver/nzbhydra2:latest container_name: hydra ports: - "$NZBHYDRA_PORT:5076" volumes: - $DOCKERDIR/appdata/hydra2:/config - $DATADIR/downloads:/data/downloads environment: <<: *default-tz-puid-pgid labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.hydra-rtr.entrypoints=https" - "traefik.http.routers.hydra-rtr.rule=Host(`hydra.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.hydra-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.hydra-rtr.service=hydra-svc" - "traefik.http.services.hydra-svc.loadbalancer.server.port=5076" ================================================ FILE: compose/archives/ombi.yml ================================================ # Ombi - Media Requests ombi: image: linuxserver/ombi:latest container_name: ombi restart: unless-stopped networks: - t2_proxy # ports: # - "$OMBI_PORT:3579" security_opt: - no-new-privileges:true volumes: - $DOCKERDIR/appdata/ombi:/config environment: PUID: $PUID PGID: $PGID TZ: $TZ BASE_URL: /ombi #optional labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.ombi-rtr.entrypoints=https" - "traefik.http.routers.ombi-rtr.rule=Host(`ombi.$DOMAINNAME`)" ## Middlewares - "traefik.http.routers.ombi-rtr.middlewares=chain-no-auth@file" ## HTTP Services - "traefik.http.routers.ombi-rtr.service=ombi-svc" - "traefik.http.services.ombi-svc.loadbalancer.server.port=3579" ================================================ FILE: compose/archives/ouroboros.yml ================================================ # Ouroboros - Automatic Docker Container Updates ouroboros: image: pyouroboros/ouroboros:latest container_name: ouroboros restart: unless-stopped networks: - default - socket_proxy # depends_on: # - socket-proxy volumes: # - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/ouroboros/config.json:/root/.docker/config.json:ro environment: TZ: $TZ INTERVAL: 86400 LOG_LEVEL: info SELF_UPDATE: "true" CLEANUP: "true" IGNORE: traefik influxdb hassio_dns homeassistant hassio_supervisor addon_core_check_config addon_62c7908d_autobackup plexms NOTIFIERS: "tgram://$TGRAM_BOT_TOKEN/$TGRAM_CHAT_ID/" DOCKER_SOCKETS: tcp://socket-proxy:2375 # POST to be enabled on Socket Proxy ================================================ FILE: compose/archives/photoprism.yml ================================================ # PhotoPrism - Photos Management photoprism: <<: *common-keys-media # See EXTENSION FIELDS at the top image: photoprism/photoprism:latest container_name: photoprism security_opt: - seccomp:unconfined - apparmor:unconfined environment: PHOTOPRISM_ADMIN_PASSWORD: "$PHOTOPRISM_PASSWORD" # !!! PLEASE CHANGE YOUR INITIAL "admin" PASSWORD !!! PHOTOPRISM_SITE_URL: "https://prism.$DOMAINNAME0" # public server URL incl http:// or https:// and /path, :port is optional PHOTOPRISM_ORIGINALS_LIMIT: 5000 # file size limit for originals in MB (increase for high-res video) PHOTOPRISM_HTTP_COMPRESSION: "gzip" # improves transfer speed and bandwidth utilization (none or gzip) PHOTOPRISM_DEBUG: "false" # run in debug mode (shows additional log messages) PHOTOPRISM_PUBLIC: "false" # no authentication required (disables password protection) PHOTOPRISM_READONLY: "false" # don't modify originals directory (reduced functionality) PHOTOPRISM_EXPERIMENTAL: "false" # enables experimental features PHOTOPRISM_DISABLE_CHOWN: "false" # disables storage permission updates on startup PHOTOPRISM_DISABLE_WEBDAV: "false" # disables built-in WebDAV server PHOTOPRISM_DISABLE_SETTINGS: "false" # disables Settings in Web UI PHOTOPRISM_DISABLE_TENSORFLOW: "false" # disables all features depending on TensorFlow PHOTOPRISM_DISABLE_FACES: "false" # disables facial recognition PHOTOPRISM_DISABLE_CLASSIFICATION: "false" # disables image classification PHOTOPRISM_DARKTABLE_PRESETS: "false" # enables Darktable presets and disables concurrent RAW conversion PHOTOPRISM_DETECT_NSFW: "false" # flag photos as private that MAY be offensive (requires TensorFlow) PHOTOPRISM_UPLOAD_NSFW: "true" # allows uploads that MAY be offensive PHOTOPRISM_DATABASE_DRIVER: "mysql" # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance PHOTOPRISM_DATABASE_SERVER: "$MARIADB_HOST:$MARIADB_PORT" # MariaDB or MySQL database server (hostname:port) PHOTOPRISM_DATABASE_NAME: "$PHOTOPRISM_DB" # MariaDB or MySQL database schema name PHOTOPRISM_DATABASE_USER: "$PHOTOPRISM_DB_USER" # MariaDB or MySQL database user name PHOTOPRISM_DATABASE_PASSWORD: "$PHOTOPRISM_DB_PASSWORD" # MariaDB or MySQL database user password PHOTOPRISM_SITE_TITLE: "PhotoPrism" PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App" PHOTOPRISM_SITE_DESCRIPTION: "" PHOTOPRISM_SITE_AUTHOR: "" ## Run/install on first startup (options: update, gpu, tensorflow, davfs, nano, clean): PHOTOPRISM_INIT: "tensorflow" ## Hardware video transcoding config (optional) # PHOTOPRISM_FFMPEG_BUFFERS: "64" # FFmpeg capture buffers (default: 32) # PHOTOPRISM_FFMPEG_BITRATE: "32" # FFmpeg encoding bitrate limit in Mbit/s (default: 50) # PHOTOPRISM_FFMPEG_ENCODER: "h264_v4l2m2m" # use Video4Linux for AVC transcoding (default: libx264) # PHOTOPRISM_FFMPEG_ENCODER: "h264_qsv" # use Intel Quick Sync Video for AVC transcoding (default: libx264) PHOTOPRISM_UMASK: 002 user: $PUID:$PGID volumes: - $DATADIR/downloads:/photoprism/originals - $DOCKERDIR/appdata/photoprism:/photoprism/storage labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.photoprism-rtr.entrypoints=https" - "traefik.http.routers.photoprism-rtr.rule=Host(`prism.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.photoprism-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.photoprism-rtr.service=photoprism-svc" - "traefik.http.services.photoprism-svc.loadbalancer.server.port=2342" ================================================ FILE: compose/archives/photoshow.yml ================================================ # Photoshow - Simple Photo Viewer photoshow: <<: *common-keys-media # See EXTENSION FIELDS at the top image: lscr.io/linuxserver/photoshow container_name: photoshow volumes: - $DATADIR/media/misc:/Pictures - $DOCKERDIR/appdata/photoshow:/config - $DATADIR/temp/appdata/photoshow:/Thumbs environment: <<: *default-tz-puid-pgid labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.photoshow-rtr.entrypoints=https" - "traefik.http.routers.photoshow-rtr.rule=Host(`photoshow.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.photoshow-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.photoshow-rtr.service=photoshow-svc" - "traefik.http.services.photoshow-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/plex-sync.yml ================================================ # Plex-Sync - For Syncing watched status between plex servers plex-sync: image: patsissons/plex-sync:develop container_name: plex-sync security_opt: - no-new-privileges:true environment: INITIAL_RUN: "true" # DRY_RUN: 0 CRON_SCHEDULE: "*/5 * * * *" SECTION_MAPS: $SYN_PLEX/$SYN_PLEX_HOLLYWOOD $NUC_PLEX/$NUC_PLEX_HOLLYWOOD | $SYN_PLEX/$SYN_PLEX_TVSHOWS $NUC_PLEX/$NUC_PLEX_TVSHOWS | $SYN_PLEX/$SYN_PLEX_INDIAN $NUC_PLEX/$NUC_PLEX_INDIAN | $SYN_PLEX/$SYN_PLEX_KOLLYWOOD $NUC_PLEX/$NUC_PLEX_KOLLYWOOD | $SYN_PLEX/$SYN_PLEX_DOCMOVIES $NUC_PLEX/$NUC_PLEX_DOCMOVIES | $SYN_PLEX/$SYN_PLEX_DOCSHOWS $NUC_PLEX/$NUC_PLEX_DOCSHOWS | $SYN_PLEX/$SYN_PLEX_KIDSMOVIES $NUC_PLEX/$NUC_PLEX_KIDSMOVIES | $SYN_PLEX/$SYN_PLEX_INTERNATIONAL $NUC_PLEX/$NUC_PLEX_INTERNATIONAL restart: unless-stopped ================================================ FILE: compose/archives/plex-trakt-sync.yml ================================================ # PlexTraktSync # Create Trakt Application https://github.com/Taxel/PlexTraktSync # Had to run this first before starting compose # git clone -b plexmovieagent-fixed https://github.com/Taxel/PlexTraktSync.git /home/USER/docker/apps/ # sudo docker run -it --name ptsync -v /home/USER/docker/apps/PlexTraktSync:/usr/src/app -e TZ="America/New_York" --restart on-failure:2 twolaw/plextraktsync:latest # change permissions of .env and .pytrakt.json to 600 and root:root ptsync: image: twolaw/plextraktsync:latest container_name: ptsync restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true environment: TZ: $TZ volumes: - $DOCKERDIR/apps/pts-mafixed:/usr/src/app # plexmovieagent-fixed branch ================================================ FILE: compose/archives/postgres.yml ================================================ # Postgres - Database postgres: image: postgres container_name: postgres restart: always security_opt: - no-new-privileges:true volumes: - $DOCKERDIR/postgres:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: $STATPING_DB_PASS POSTGRES_USER: $STATPING_DB_USER POSTGRES_DB: $STATPING_DB ================================================ FILE: compose/archives/promtail.yml ================================================ # Promtail - Log Scraping/Shipping Agent promtail: <<: *common-keys-monitoring # See EXTENSION FIELDS at the top container_name: promtail image: grafana/promtail:latest volumes: - /var/log:/var/log - /media/cbox/log:/data/logs/cbox - $DOCKERDIR/logs/homeserver:/data/logs/scripts - $DOCKERDIR/appdata/promtail:/etc/promtail # ports: # - "1514:1514" # this is only needed if you are going to send syslogs command: -config.file=/etc/promtail/config.yml ================================================ FILE: compose/archives/pyrenamer.yml ================================================ #PyRenamer - Easily Rename Your Files pyrenamer: image: mikenye/pyrenamer:latest container_name: pyrenamer restart: "no" networks: - t2_proxy security_opt: - no-new-privileges:true # ports: # - "$PYRENAMER_PORT:5800" volumes: - $USERDIR/Downloads:/data/downloads:rw - $DOCKERDIR/appdata/pyrenamer:/config:rw - /media/shb-drive/data/media:/data/shb:rw - /media/ds918/data/media:/data/ds918:rw - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.pyrenamer-rtr.entrypoints=https" - "traefik.http.routers.pyrenamer-rtr.rule=Host(`pyrenamer.$DOMAINNAME`)" ## Middlewares - "traefik.http.routers.pyrenamer-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.pyrenamer-rtr.service=pyrenamer-svc" - "traefik.http.services.pyrenamer-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/readarr.yml ================================================ # Readarr - Books management # Set url_base in readarr settings if using PathPrefix readarr: image: hotio/readarr:nightly container_name: readarr security_opt: - no-new-privileges:true restart: "no" profiles: ["media","arrs", "all"] networks: - t2_proxy ports: - "8787:8787" volumes: - $DOCKERDIR/appdata/readarr:/config - $DATADIR:/data - "/etc/localtime:/etc/localtime:ro" environment: TZ: $TZ PUID: $PUID PGID: $PGID UMASK: 002 #ARGS: "" labels: - "traefik.enable=true" ## HTTP Routers Auth - "traefik.http.routers.readarr-rtr.entrypoints=https" - "traefik.http.routers.readarr-rtr.rule=Host(`readarr.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.readarr-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.readarr-rtr.service=readarr-svc" - "traefik.http.services.readarr-svc.loadbalancer.server.port=8787" ================================================ FILE: compose/archives/redis-commander.yml ================================================ # Redis Commander - Redis Management Tool rediscommander: container_name: rediscommander image: rediscommander/redis-commander:latest restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true environment: - REDIS_HOST=redis - REDIS_PASSWORD=$REDIS_PASSWORD labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.rediscommander-rtr.entrypoints=https" - "traefik.http.routers.rediscommander-rtr.rule=HostHeader(`rediscom.$DOMAINNAME`)" ## Middlewares - "traefik.http.routers.rediscommander-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.rediscommander-rtr.service=rediscommander-svc" - "traefik.http.services.rediscommander-svc.loadbalancer.server.port=8081" ================================================ FILE: compose/archives/smokeping.yml ================================================ # SmokePing - Network latency Monitoring smokeping: image: linuxserver/smokeping:latest container_name: smokeping restart: unless-stopped networks: - t2_proxy security_opt: - no-new-privileges:true # ports: # - "$SMOKEPING_PORT:80" volumes: - $DOCKERDIR/smokeping/config:/config - $DOCKERDIR/smokeping/data:/data environment: PUID: $PUID PGID: $PGID TZ: $TZ labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.smokeping-rtr.entrypoints=https" - "traefik.http.routers.smokeping-rtr.rule=HostHeader(`smokeping.$DOMAINNAME`)" ## Middlewares - "traefik.http.routers.smokeping-rtr.middlewares=chain-authelia@file" ## HTTP Services - "traefik.http.routers.smokeping-rtr.service=smokeping-svc" - "traefik.http.services.smokeping-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/smtp-to-telegram.yml ================================================ # SMTP to Telegram - Send SMTP Notifications as Telegram Message # Use case: https://github.com/htpcBeginner/docker-traefik/issues/78 smtp_to_telegram: image: kostyaesmukov/smtp_to_telegram container_name: smtp_to_telegram restart: always networks: - default environment: TZ: $TZ ST_TELEGRAM_CHAT_IDS: $TGRAM_CHAT_ID ST_TELEGRAM_BOT_TOKEN: $TGRAM_BOT_TOKEN ST_TELEGRAM_MESSAGE_TEMPLATE: "{subject}\\n{body}" ================================================ FILE: compose/archives/statping.yml ================================================ # StatPing - Status Page & Monitoring Server # Not adding $TZ to linuxserver/mariadb resulted in a blank page # Had to change default username admin in MariaDB # dexec into mariadb and run mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -p statping: <<: *common-keys-core # See EXTENSION FIELDS at the top image: statping/statping:latest container_name: statping networks: - t2_proxy - default volumes: - $DOCKERDIR/appdata/statping:/app environment: <<: *default-tz-puid-pgid DB_CONN: mysql DB_HOST: $MARIADB_HOST DB_PORT: $MARIADB_PORT DB_USER: $STATPING_DB_USER DB_PASS: $STATPING_DB_PASS DB_DATABASE: $STATPING_DB IS_DOCKER: "true" DISABLE_LOGS: "false" NAME: StatPing DESCRIPTION: Monitor web services labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.statping-rtr.entrypoints=https" - "traefik.http.routers.statping-rtr.rule=Host(`sp.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.statping-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.statping-rtr.service=statping-svc" - "traefik.http.services.statping-svc.loadbalancer.server.port=8080" ================================================ FILE: compose/archives/tdarr-node.yml ================================================ # Tdarr Node - Transcoder Node tdarr-node1: image: haveagitgat/tdarr_node:latest container_name: tdarr-node1 security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["media", "all"] networks: - t2_proxy environment: TZ: $TZ PUID: $PUID PGID: $PGID UMASK_SET: 002 nodeID: Node1 nodeIP: tdarr-node1 # or hostname nodePort: 8267 serverIP: tdarr # or hostname serverPort: 8266 volumes: - $DOCKERDIR/appdata/tdarr/configs:/app/configs - $DOCKERDIR/appdata/tdarr/logs:/app/logs - $DOWNLOADSDIR/transcode/tdarr:/data/temp - $ZDATADIR/Photos/zVideos:/data/media:ro - $DATADIR2/media/zvideos:/data/output ================================================ FILE: compose/archives/tiny-media-manager.yml ================================================ # Tiny Media Manager - Media and Metadata Management Tool tinymm: image: romancin/tinymediamanager:latest container_name: tinymm restart: "no" networks: - t2_proxy security_opt: - no-new-privileges:true # ports: # - "$TINYMM_PORT:5800" volumes: - $DOCKERDIR/appdata/tinymm:/config - $DATADIR/media:/data/media - $DATADIR/downloads:/data/downloads environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWD: $TINYMM_VNC_PASSWD labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.tinymm-rtr.entrypoints=https" - "traefik.http.routers.tinymm-rtr.rule=Host(`tmm.$DOMAINNAME0`)" ## Middlewares - "traefik.http.routers.tinymm-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.tinymm-rtr.service=tinymm-svc" - "traefik.http.services.tinymm-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/archives/traefik-certs-dumper.yml ================================================ # Traefik Certs Dumper - Extract LetsEncrypt Certificates - Traefik2 Compatible certdumper: container_name: traefik_certdumper image: humenius/traefik-certs-dumper:latest network_mode: none # profiles: # - core security_opt: - no-new-privileges:true # command: --restart-containers container1,container2,container3 volumes: - $DOCKERDIR/appdata/traefik2/acme:/traefik:ro - $DOCKERDIR/shared/certs/home:/output:rw # - /var/run/docker.sock:/var/run/docker.sock:ro # Only needed if restarting containers (use Docker Socket Proxy instead) environment: DOMAIN: $DOMAINNAME0 ================================================ FILE: compose/archives/traefik-error-pages.yml ================================================ # Traefik - Custom Error Pages # Obsoleted because I did not spend any more time on it to customize and don't see the value traefik-error-pages: container_name: traefik-error-pages image: guillaumebriday/traefik-custom-error-pages restart: unless-stopped networks: - t2_proxy labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.traefik-error-pages-rtr.entrypoints=https" - "traefik.http.routers.traefik-error-pages-rtr.rule=HostRegexp(`{host:.+}`)" - "traefik.http.routers.traefik-error-pages-rtr.priority=1" # Middlewares - "traefik.http.routers.traefik-error-pages-rtr.middlewares=traefik-error-pages" - "traefik.http.middlewares.traefik-error-pages.errors.service=traefik-error-pages-svc" - "traefik.http.middlewares.traefik-error-pages.errors.status=401,403,404,429,500,502,503" - "traefik.http.middlewares.traefik-error-pages.errors.query=/{status}.html" # HTTP Services - "traefik.http.routers.traefik-error-pages-rtr.service=traefik-error-pages-svc" - "traefik.http.services.traefik-error-pages-svc.loadbalancer.server.port=80" ================================================ FILE: compose/archives/transmission-vpn.yml ================================================ # TransmissionBT - Torrent Downloader # ONLY ACCESSIBLE THROUGH https://domain.com/transmission/web/ if using PathPrefix # For Proxmox LXC Containers - https://pve.proxmox.com/wiki/OpenVPN_in_LXC transmission-vpn: image: haugene/transmission-openvpn:latest container_name: transmission-vpn restart: unless-stopped networks: t2_proxy: ipv4_address: 192.168.90.169 # ports: # - "$TRANSMISSION_PORT:9091" if vpn is enabled you cannot access transmission using host ip cap_add: - NET_ADMIN devices: - /dev/net/tun # dns: # - 1.1.1.1 # - 1.0.0.1 volumes: - /etc/localtime:/etc/localtime:ro - $DOCKERDIR/appdata/transmission-vpn/data:/data - $DOCKERDIR/appdata/transmission-vpn/config:/config - $EXTDRIVE/downloads:/data/downloads environment: <<: *default-tz-puid-pgid OPENVPN_PROVIDER: FASTESTVPN OPENVPN_USERNAME: $FASTESTVPN_USERNAME OPENVPN_PASSWORD: $FASTESTVPN_PASSWORD #OPENVPN_CONFIG: "Switzerland-UDP" #OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60 LOCAL_NETWORK: "$LOCAL_NETWORK" UMASK_SET: 2 # These transmission settings are not needed as /data/transmission-home/settings.json is persistent 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: 1.0 TRANSMISSION_RATIO_LIMIT_ENABLED: "true" TRANSMISSION_ALT_SPEED_DOWN: 2000 TRANSMISSION_ALT_SPEED_ENABLED: "false" TRANSMISSION_ALT_SPEED_UP: 100 TRANSMISSION_SPEED_LIMIT_DOWN: 10000 TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED: "true" TRANSMISSION_SPEED_LIMIT_UP: 500 TRANSMISSION_SPEED_LIMIT_UP_ENABLED: "true" TRANSMISSION_INCOMPLETE_DIR: /data/downloads/torrents/incomplete TRANSMISSION_INCOMPLETE_DIR_ENABLED: "true" TRANSMISSION_WATCH_DIR: /data/downloads/torrents TRANSMISSION_WATCH_DIR_ENABLED: "true" TRANSMISSION_DOWNLOAD_DIR: /data/downloads/torrents LOG_TO_STDOUT: "true" labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.transmission-vpn-rtr.entrypoints=https" - "traefik.http.routers.transmission-vpn-rtr.rule=Host(`trans.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.transmission-vpn-rtr.middlewares=middlewares-rate-limit@file" ## HTTP Services - "traefik.http.routers.transmission-vpn-rtr.service=transmission-vpn-svc" - "traefik.http.services.transmission-vpn-svc.loadbalancer.server.port=9091" ================================================ FILE: compose/archives/unifi-controller.yml ================================================ # UniFi Controller - Managing UniFi Network # UDP 3478 Port used for STUN. #REQUIRED # TCP 5514 Port used for remote syslog capture. # TCP 8080 Port used for device and controller communication. #REQUIRED # TCP 8443 Port used for controller GUI/API as seen in a web browser #REQUIRED # TCP 8880 Port used for HTTP portal redirection. # TCP 8843 Port used for HTTPS portal redirection. # TCP 6789 Port used for UniFi mobile speed test. #REQUIRED # TCP 27117 Port used for local-bound database communication. # UDP 5656-5699 Ports used by AP-EDU broadcasting. # UDP 10001 Port used for device discovery #REQUIRED # UDP 1900 Port used for "Make controller discoverable on L2 network" in controller settings. unifi: container_name: unifi image: jacobalberty/unifi:stable restart: unless-stopped networks: t2_proxy: ipv4_address: 192.168.90.100 security_opt: - no-new-privileges:true ports: - "8080:8080" - "8443:8443" - "3478:3478/udp" - "10001:10001/udp" - "6789:6789" #- "8081:8081" #- "8843:8843" #- "8880:8880" volumes: - ${DOCKERDIR}/unifi:/unifi - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: UNIFI_UID: $PUID UNIFI_GID: $PGID TZ: America/New_York RUNAS_UID0: "false" BIND_PRIV: "false" labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.unifi-rtr.entrypoints=https" - "traefik.http.routers.unifi-rtr.rule=HostHeader(`ufi.$DOMAINNAME`)" ## Middlewares - "traefik.http.routers.unifi-rtr.middlewares=chain-authelia@file" ## HTTP Services - "traefik.http.routers.unifi-rtr.service=unifi-svc" - "traefik.http.services.unifi-svc.loadbalancer.server.port=8443" ================================================ FILE: compose/archives/unmanic.yml ================================================ # Unmanic - Library Optimizer unmanic: container_name: unmanic image: josh5/unmanic:latest privileged: true ports: - 8888:8888 environment: - PUID=$PUID - PGID=$PGID - LIBVA_DRIVER_NAME=i965 - LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - TZ=$TZ # devices: # - /dev/dri:/dev/dri # for hardware transcoding volumes: - $DOCKERDIR/appdata/unmanic:/config - $DATADIR2/media/zvideos:/data/x265 - $ZDATADIR/Photos/zVideos/Test:/data/source - $DATADIR2/media/zvideos:/data/transcode - /dev/shm:/dev/shm labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.unmanic-rtr.entrypoints=https" - "traefik.http.routers.unmanic-rtr.rule=Host(`unmaic.$DOMAINNAME_HOME_SYNOLOGY`)" ## Middlewares - "traefik.http.routers.unmanic-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.unmanic-rtr.service=vscode-svc" - "traefik.http.services.unmanic-svc.loadbalancer.server.port=8888" ================================================ FILE: compose/archives/varken.yml ================================================ # Varken - Monitor Plex, Sonarr, Radarr, and Other Data varken: image: boerderij/varken container_name: varken restart: unless-stopped networks: - t2_proxy volumes: - $USERDIR/docker/varken:/config environment: PUID: $PUID PGID: $PGID TZ: $TZ VRKN_GLOBAL_SONARR_SERVER_IDS: 1 VRKN_GLOBAL_RADARR_SERVER_IDS: 1 VRKN_GLOBAL_LIDARR_SERVER_IDS: "false" VRKN_GLOBAL_TAUTULLI_SERVER_IDS: 1 VRKN_GLOBAL_OMBI_SERVER_IDS: "false" VRKN_GLOBAL_SICKCHILL_SERVER_IDS: "false" VRKN_GLOBAL_UNIFI_SERVER_IDS: 1 VRKN_INFLUXDB_URL: $SERVER_IP VRKN_INFLUXDB_PORT: 8086 VRKN_INFLUXDB_SSL: "false" VRKN_INFLUXDB_VERIFY_SSL: "false" VRKN_INFLUXDB_USERNAME: $VARKEN_USER VRKN_INFLUXDB_PASSWORD: $VARKEN_PASS VRKN_TAUTULLI_1_URL: $SERVER_IP:$TAUTULLI_PORT VRKN_TAUTULLI_1_FALLBACK_IP: 1.1.1.1 VRKN_TAUTULLI_1_APIKEY: $TAUTULLI_API_KEY VRKN_TAUTULLI_1_SSL: "false" VRKN_TAUTULLI_1_VERIFY_SSL: "false" VRKN_TAUTULLI_1_GET_ACTIVITY: "true" VRKN_TAUTULLI_1_GET_ACTIVITY_RUN_SECONDS: 30 VRKN_TAUTULLI_1_GET_STATS: "true" VRKN_TAUTULLI_1_GET_STATS_RUN_SECONDS: 3600 VRKN_SONARR_1_URL: $SERVER_IP:$SONARR_PORT VRKN_SONARR_1_APIKEY: $SONARR_API_KEY VRKN_SONARR_1_SSL: "false" VRKN_SONARR_1_VERIFY_SSL: "false" VRKN_SONARR_1_MISSING_DAYS: 7 VRKN_SONARR_1_MISSING_DAYS_RUN_SECONDS: 300 VRKN_SONARR_1_FUTURE_DAYS: 1 VRKN_SONARR_1_FUTURE_DAYS_RUN_SECONDS: 300 VRKN_SONARR_1_QUEUE: "true" VRKN_SONARR_1_QUEUE_RUN_SECONDS: 300 VRKN_RADARR_1_URL: $SERVER_IP:$RADARR_PORT VRKN_RADARR_1_APIKEY: $RADARR_API_KEY VRKN_RADARR_1_SSL: "false" VRKN_RADARR_1_VERIFY_SSL: "false" VRKN_RADARR_1_QUEUE: "true" VRKN_RADARR_1_QUEUE_RUN_SECONDS: 300 VRKN_RADARR_1_GET_MISSING: "true" VRKN_RADARR_1_GET_MISSING_RUN_SECONDS: 300 VRKN_UNIFI_1_URL: $UNIFI_HOST VRKN_UNIFI_1_USERNAME: $UNIFI_USER VRKN_UNIFI_1_PASSWORD: $UNIFI_PASS VRKN_UNIFI_1_SITE: default VRKN_UNIFI_1_USG_NAME: USG VRKN_UNIFI_1_SSL: "true" VRKN_UNIFI_1_VERIFY_SSL: "false" VRKN_UNIFI_1_GET_USG_STATS_RUN_SECONDS: 300 ================================================ FILE: compose/archives/watchtower.yml ================================================ # WatchTower - Automatic Docker Container Updates watchtower: image: containrrr/watchtower container_name: watchtower restart: unless-stopped networks: - socket_proxy depends_on: - socket-proxy environment: TZ: $TZ WATCHTOWER_CLEANUP: "true" WATCHTOWER_REMOVE_VOLUMES: "true" WATCHTOWER_INCLUDE_STOPPED: "true" WATCHTOWER_NO_STARTUP_MESSAGE: "false" WATCHTOWER_SCHEDULE: "0 30 12 * * *" # Everyday at 12:30 WATCHTOWER_NOTIFICATIONS: shoutrrr WATCHTOWER_NOTIFICATION_URL: "telegram://$TGRAM_BOT_TOKEN@telegram?channels=$TGRAM_CHAT_ID" WATCHTOWER_NOTIFICATIONS_LEVEL: info DOCKER_HOST: tcp://socket-proxy:2375 DOCKER_API_VERSION: "1.40" ================================================ FILE: compose/archives/xteve.yml ================================================ # xTeve - IPTV proxy for Plex xteve: image: alturismo/xteve container_name: xteve restart: unless-stopped # network_mode: host networks: - t2_proxy ports: - "34400:34400" - "1901:1900" # user: "0" # logging: # options: # max-size: "10m" # max-files: 3 environment: TZ: $TZ volumes: - $USERDIR/docker/xteve:/config:rw - /dev/shm:/tmp/xteve labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.xteve-rtr.entrypoints=https" - "traefik.http.routers.xteve-rtr.rule=Host(`xteve.$DOMAINNAME`)" - "traefik.http.routers.xteve-rtr.tls=true" ## Middlewares - "traefik.http.routers.xteve-rtr.middlewares=chain-authelia@file" ## HTTP Services - "traefik.http.routers.xteve-rtr.service=xteve-svc" - "traefik.http.services.xteve-svc.loadbalancer.server.port=34400" ================================================ FILE: compose/archives/youtubedl-material.yml ================================================ youtubedl-material: <<: *common-keys-apps # See EXTENSION FIELDS at the top image: tzahi12345/youtubedl-material:latest container_name: youtubedl-material # ports: # - "$YOUTUBEDLMATERIAL_PORT:17442" volumes: - $DOCKERDIR/appdata/youtubedl-material/config:/app/appdata - $DATADIR/downloads/youtubedl-material/audio:/app/audio - $DATADIR/downloads/youtubedl-material/video:/app/video - $DATADIR/downloads/youtubedl-material/subscriptions:/app/subscriptions - $DOCKERDIR/appdata/youtubedl-material/users:/app/users environment: UID: $PUID GID: $PGID labels: - "traefik.enable=true" ## HTTP Routers - "traefik.http.routers.youtubedl-material-rtr.entrypoints=https" - "traefik.http.routers.youtubedl-material-rtr.rule=Host(`ytdl.$DOMAINNAME_CLOUD_SERVER`)" ## Middlewares - "traefik.http.routers.youtubedl-material-rtr.middlewares=chain-oauth@file" ## HTTP Services - "traefik.http.routers.youtubedl-material-rtr.service=youtubedl-material-svc" - "traefik.http.services.youtubedl-material-svc.loadbalancer.server.port=17442" ================================================ FILE: compose/ds918/adguardhome.yml ================================================ services: # AdGuard Home - DNS AdBlocking adguardhome: container_name: adguardhome image: adguard/adguardhome security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["core", "all"] networks: dockervlan: ipv4_address: 192.168.1.25 # IP address inside defined range ports: - 53/udp - 67/udp - 68/tcp - 68/udp - 80/tcp - 443/tcp - 853/tcp - 3000/tcp volumes: - $DOCKERDIR/appdata/adguard/conf:/opt/adguardhome/conf - $DOCKERDIR/appdata/adguard/work:/opt/adguardhome/work - $DOCKERDIR/shared/certs/$DOMAINNAME_DS918:/certs ================================================ FILE: compose/ds918/certdumper.yml ================================================ services: # Traefik Certs Dumper - Extract LetsEncrypt Certificates - Traefik2 Compatible certdumper: container_name: traefik_certdumper image: humenius/traefik-certs-dumper:latest security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["apps", "all"] networks: - default # command: --restart-containers container1,container2,container3 volumes: - $DOCKERDIR/appdata/traefik2/acme:/traefik:ro - $DOCKERDIR/shared/certs/$DOMAINNAME_DS918:/output:rw # - /var/run/docker.sock:/var/run/docker.sock:ro # Only needed if restarting containers (use Docker Socket Proxy instead) environment: DOMAIN: $DOMAINNAME_DS918 ================================================ FILE: compose/ds918/ddns-updater.yml ================================================ services: # Cloudflare DDNS - Dynamic DNS Updater ddns-updater: image: qmcgaw/ddns-updater container_name: ddns-updater restart: unless-stopped network_mode: bridge ports: - 8000:8000/tcp volumes: - $DOCKERDIR/appdata/ddns-updater:/updater/data # Owned by UID 1000 environment: TZ: $TZ PUID: $PUID PGID: $PGID PERIOD: 12h UPDATE_COOLDOWN_PERIOD: 5m PUBLICIP_DNS_TIMEOUT: 3s HTTP_TIMEOUT: 10s # Web UI LISTENING_PORT: 8000 # Backup BACKUP_PERIOD: 96h # 0 to disable BACKUP_DIRECTORY: /updater/data/backups # Other LOG_LEVEL: info SHOUTRRR_ADDRESSES: $DISCORD_SHOUTRRR_ADDRESS ================================================ FILE: compose/ds918/docker-gc.yml ================================================ services: # Docker-GC - Automatic Docker Garbage Collection # Create docker-gc-exclude file docker-gc: image: clockworksoul/docker-gc-cron:latest container_name: docker-gc security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["apps", "all"] networks: - socket_proxy volumes: # - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/appdata/docker-gc/docker-gc-exclude:/etc/docker-gc-exclude environment: CRON: 0 0 0 * * ? # Everyday at midnight. Previously 0 0 * * * FORCE_IMAGE_REMOVAL: 1 FORCE_CONTAINER_REMOVAL: 0 GRACE_PERIOD_SECONDS: 604800 DRY_RUN: 0 CLEAN_UP_VOLUMES: 1 TZ: $TZ DOCKER_HOST: tcp://socket-proxy:2375 ================================================ FILE: compose/ds918/glances.yml ================================================ services: # Glances - System Information glances: image: nicolargo/glances:latest-full container_name: glances security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["apps", "all"] # privileged: true # Only for VM # network_mode: host networks: - traefik_proxy - socket_proxy - default ports: - "61208:61208" pid: host volumes: - $DOCKERDIR/appdata/glances/glances.conf:/glances/conf/glances.conf # Use this if you want to add a glances.conf file - $DATADIR1:/data/data:ro - $DOCKERDIR:/data/docker:ro # - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security environment: # GLANCES_OPT: "-C /glances/conf/glances.conf --quiet --export influxdb" # GLANCES_OPT: "--export influxdb" GLANCES_OPT: "-w" DOCKER_HOST: tcp://socket-proxy:2375 labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.glances-rtr.entrypoints=https" - "traefik.http.routers.glances-rtr.rule=Host(`glances.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.glances-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.glances-rtr.service=glances-svc" - "traefik.http.services.glances-svc.loadbalancer.server.port=61208" ================================================ FILE: compose/ds918/mergerfs.yml ================================================ services: # MergerFS - A featureful union filesystem mergerfs: container_name: mergerfs hostname: mergerfs image: hotio/mergerfs:latest restart: always # depends_on: # - gdrive # if using rclone # - gcrypt # if using rclone user: $PUID:$PGID command: "/data/media1:/data/media2 \ /data/media \ -o rw,\ use_ino,\ allow_other,\ func.getattr=newest,\ category.action=all,\ category.create=ff,\ statfs_ignore=nc,\ cache.files=auto-full,\ func.getattr=newest,\ dropcacheonclose=true,\ nonempty" cap_add: - SYS_ADMIN security_opt: - apparmor:unconfined devices: - /dev/fuse environment: - TZ=$TZ volumes: - /etc/passwd:/etc/passwd:ro - /etc/group:/etc/group:ro - /etc/fuse.conf:/etc/fuse.conf:shared #- $DATADIR:/data:slave # creates local-media and shb-media on host - $DATADIR1/test:/data/media1:rshared - $DATADIR2/test:/data/media2:rshared - $DATADIR1/mnt/media:/data/media:rshared ================================================ FILE: compose/ds918/oauth.yml ================================================ services: # Google OAuth - Single Sign On using OAuth 2.0 # https://www.smarthomebeginner.com/google-oauth-with-traefik-docker/ # Also possible to forward all authentication requests to external service. See middlewares-oauth-external and chain-oauth-external. oauth: container_name: oauth image: thomseddon/traefik-forward-auth:latest # image: thomseddon/traefik-forward-auth:2.1-arm # Use this image with Raspberry Pi security_opt: - no-new-privileges:true restart: unless-stopped #profiles: ["core", "all"] networks: - traefik_proxy # Allow apps to bypass OAuth. Radarr example below will bypass OAuth if API key is present in the request (eg. from NZB360 mobile app). # While this is one way, the recommended way is to bypass authentication using Traefik labels shown in some of the apps later. # command: --rule.radarr.action=allow --rule.radarr.rule="Headers(`X-Api-Key`, `$RADARR_API_KEY`)" # command: --rule.sabnzbd.action=allow --rule.sabnzbd.rule="HeadersRegexp(`X-Forwarded-Uri`, `$SABNZBD_API_KEY`)" environment: - CONFIG=/config - COOKIE_DOMAIN=$DOMAINNAME_DS918 - INSECURE_COOKIE=false - AUTH_HOST=oauth.$DOMAINNAME_DS918 - URL_PATH=/_oauth - LOG_LEVEL=warn - LOG_FORMAT=text - LIFETIME=86400 # 1 day - DEFAULT_ACTION=auth - DEFAULT_PROVIDER=google secrets: - source: traefik_forward_auth target: /config labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.oauth-rtr.tls=true" - "traefik.http.routers.oauth-rtr.entrypoints=https" - "traefik.http.routers.oauth-rtr.rule=Host(`oauth.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.oauth-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.oauth-rtr.service=oauth-svc" - "traefik.http.services.oauth-svc.loadbalancer.server.port=4181" ================================================ FILE: compose/ds918/plex-sync.yml ================================================ services: # Plex-Sync - For Syncing watched status between plex servers plex-sync: image: patsissons/plex-sync:develop container_name: plex-sync security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["media", "all"] networks: - default environment: INITIAL_RUN: "true" #DRY_RUN: 0 CRON_SCHEDULE: "*/30 * * * *" SECTION_MAPS: > $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_MOVHOL $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_MOVHOL | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_SHOTV $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_SHOTV | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_SHOKID $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_SHOKID | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_MOVKID $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_MOVKID | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_MOVIND $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_MOVIND | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_MOVKOL $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_MOVKOL | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_MOVDOC $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_MOVDOC | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_SHODOC $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_SHODOC | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_MOVFOR $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_MOVFOR | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_SHOFOR $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_SHOFOR | $HOME_SERVER_PLEX/$HOME_SERVER_PLEX_SHOIND $SYNOLOGY_PLEX/$SYNOLOGY_PLEX_SHOIND ================================================ FILE: compose/ds918/plex.yml ================================================ services: # Plex - Media Server plex: image: plexinc/pms-docker:plexpass container_name: plex security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["media", "all"] networks: - traefik_proxy ports: - "32400:32400/tcp" - "3005:3005/tcp" - "8324:8324/tcp" - "32469:32469/tcp" # - "1900:1900/udp" # conflicts with xTeVe and Synology default ports - "32410:32410/udp" - "32412:32412/udp" - "32413:32413/udp" - "32414:32414/udp" - "33400:33400" devices: - /dev/dri:/dev/dri # for hardware transcoding volumes: - $DOCKERDIR/appdata/plex:/config - $DOWNLOADSDIR:/data/downloads - $DATADIR1/media:/data/media - $DATADIR2/media:/data/media2 - /dev/shm:/transcode environment: TZ: $TZ HOSTNAME: "sPlex" PLEX_CLAIM_FILE: /run/secrets/plex_claim PLEX_UID: $PUID PLEX_GID: $PGID ADVERTISE_IP: "http://$SERVER_IP1:32400/,http://$SERVER_IP2:32400,https://splex.$DOMAINNAME_HS,https://splex.$DOMAINNAME_DS918,http://$ZEROTIER_IP_SYNOLOGY:32400/" secrets: - plex_claim labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.plex-rtr.entrypoints=https" - "traefik.http.routers.plex-rtr.rule=Host(`splex.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.plex-rtr.middlewares=chain-no-auth@file" # HTTP Services - "traefik.http.routers.plex-rtr.service=plex-svc" - "traefik.http.services.plex-svc.loadbalancer.server.port=32400" ================================================ FILE: compose/ds918/portainer.yml ================================================ services: # Portainer - WebUI for Containers portainer: container_name: portainer image: portainer/portainer-ee:latest # Use portainer-ce if you do no have a Business Edition license key security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["core", "all"] networks: - traefik_proxy - socket_proxy # command: -H unix:///var/run/docker.sock # # Use Docker Socket Proxy instead for improved security command: -H tcp://socket-proxy:2375 ports: - "9000:9000" volumes: # - /var/run/docker.sock:/var/run/docker.sock:ro # # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/appdata/portainer/data:/data # Change to local directory if you want to save/transfer config locally environment: - TZ=$TZ labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.portainer-rtr.entrypoints=https" - "traefik.http.routers.portainer-rtr.rule=Host(`portainer.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.portainer-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.portainer-rtr.service=portainer-svc" - "traefik.http.services.portainer-svc.loadbalancer.server.port=9000" ================================================ FILE: compose/ds918/qdirstat.yml ================================================ services: # qDirStat - Directory Statistics qdirstat: image: jlesage/qdirstat:latest container_name: qdirstat security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["apps", "all"] networks: - traefik_proxy ports: - "5800:5800" volumes: - /volume1:/storage:ro - $DOCKERDIR/appdata/qdirstat/config:/config:rw environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 VNC_PASSWORD: $QDIRSTAT_VNC_PASSWD labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.qdirstat-rtr.entrypoints=https" - "traefik.http.routers.qdirstat-rtr.rule=Host(`qdir.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.qdirstat-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.qdirstat-rtr.service=qdirstat-svc" - "traefik.http.services.qdirstat-svc.loadbalancer.server.port=5800" ================================================ FILE: compose/ds918/rclone-gcrypt.yml ================================================ services: # Rclone - Google Drive Mount gcrypt: container_name: gcrypt image: rclone/rclone:latest security_opt: - no-new-privileges:true - apparmor:unconfined restart: unless-stopped # profiles: ["core", "all"] networks: - traefik_proxy cap_add: - SYS_ADMIN command: "mount gcrypt: /data/gcrypt \ --use-mmap \ --allow-other \ --no-modtime \ --allow-non-empty \ --dir-cache-time=1000h \ --buffer-size=128M \ --uid=1026 \ --gid=100 \ --umask=002 \ --user-agent=ds918 \ --cache-dir=/data/cache/gcrypt \ --vfs-cache-mode=full \ --vfs-cache-max-age=336h \ --vfs-cache-max-size=512G \ --vfs-read-chunk-size-limit=2G \ --log-file /config/rclone/logs/gcrypt.log \ --log-level=NOTICE" #--bwlimit 3M \ # 3M approxmimately equals 253 GB limit per day devices: - /dev/fuse volumes: - $DOCKERDIR/appdata/rclone:/config/rclone - $DATADIR1/mnt/rclone/gcrypt:/data/gcrypt:shared - $DATADIR1/mnt/rclone/cache/gcrypt:/data/cache/gcrypt - /etc/passwd:/etc/passwd:ro - /etc/group:/etc/group:ro - /etc/fuse.conf:/etc/fuse.conf:ro environment: TZ: $TZ PUID: $PUID PGID: $PGID ================================================ FILE: compose/ds918/rclone-gdrive.yml ================================================ services: # Rclone - Google Drive Mount # https://github.com/openbridge/ob_bulkstash/issues/19 # https://github.com/romancin/rclonebrowser-docker # https://hub.docker.com/r/d2dyno/rclone-gui gdrive: container_name: gdrive image: rclone/rclone:latest security_opt: - no-new-privileges:true - apparmor:unconfined restart: unless-stopped # profiles: ["core", "all"] networks: - traefik_proxy cap_add: - SYS_ADMIN command: "mount gdrive: /data/gdrive \ --use-mmap \ --allow-other \ --no-modtime \ --allow-non-empty \ --dir-cache-time=1000h \ --buffer-size=128M \ --umask=002 \ --uid=1026 \ --gid=100 \ --user-agent=ds918 \ --cache-dir=/data/cache/gdrive \ --vfs-cache-mode=full \ --vfs-cache-max-age=336h \ --vfs-cache-max-size=512G \ --vfs-read-chunk-size-limit=2G \ --log-file /config/rclone/logs/gdrive.log \ --rc \ --rc-web-gui \ --rc-addr :5572 \ --rc-user=$RCLONE_WEBUI_USER \ --rc-pass=$RCLONE_WEBUI_PASS \ --log-level=NOTICE" #--bwlimit 150M \ #--bwlimit-file 40M \ devices: - /dev/fuse volumes: - $DOCKERDIR/appdata/rclone:/config/rclone - $DATADIR1/mnt/rclone/gdrive:/data/gdrive:shared - $DATADIR1/mnt/rclone/cache/gdrive:/data/cache/gdrive - /etc/passwd:/etc/passwd:ro - /etc/group:/etc/group:ro - /etc/fuse.conf:/etc/fuse.conf:ro environment: TZ: $TZ PUID: $PUID PGID: $PGID labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.rclone-drive-rtr.entrypoints=https" - "traefik.http.routers.rclone-drive-rtr.rule=Host(`rclone.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.rclone-drive-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.rclone-drive-rtr.service=rclone-drive-svc" - "traefik.http.services.rclone-drive-svc.loadbalancer.server.port=5572" ================================================ FILE: compose/ds918/socket-proxy.yml ================================================ services: # Docker Socket Proxy - Security Enchanced Proxy for Docker Socket socket-proxy: container_name: socket-proxy image: tecnativa/docker-socket-proxy security_opt: - no-new-privileges:true restart: unless-stopped #profiles: ["core", "all"] networks: socket_proxy: ipv4_address: 192.168.91.254 # You can specify a static IP # privileged: true # true for VM. False for unprivileged LXC container. ports: # - "$ZEROTIER_IP_SYNOLOGY:2375:2375" # Port 2375 should only ever get exposed to the internal network. When possible use this line. # I use the next line instead, as I want portainer to manage multiple docker endpoints within my home network. - "2375:2375" volumes: - "/var/run/docker.sock:/var/run/docker.sock" environment: - LOG_LEVEL=info # debug,info,notice,warning,err,crit,alert,emerg ## Variables match the URL prefix (i.e. AUTH blocks access to /auth/* parts of the API, etc.). # 0 to revoke access. # 1 to grant access. ## Granted by Default - EVENTS=1 - PING=1 - VERSION=1 ## Revoked by Default # Security critical - AUTH=0 - SECRETS=0 - POST=1 # Watchtower # Not always needed - BUILD=0 - COMMIT=0 - CONFIGS=0 - CONTAINERS=1 # Traefik, portainer, etc. - DISTRIBUTION=0 - EXEC=0 - IMAGES=1 # Portainer - INFO=1 # Portainer - NETWORKS=1 # Portainer - NODES=0 - PLUGINS=0 - SERVICES=1 # Portainer - SESSION=0 - SWARM=0 - SYSTEM=0 - TASKS=1 # Portainer - VOLUMES=1 # Portainer ================================================ FILE: compose/ds918/syncthing.yml ================================================ services: # SyncThing - Keep folders in Sync syncthing: image: lscr.io/linuxserver/syncthing container_name: syncthing security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["core", "all"] networks: - traefik_proxy ports: - "8384:8384" - "22000:22000/tcp" - "22000:22000/udp" - "21027:21027/udp" volumes: - /volume1:/data/volume1 - $DOCKERDIR/appdata/syncthing:/config environment: TZ: $TZ PUID: $PUID PGID: $PGID labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.syncthing-rtr.entrypoints=https" - "traefik.http.routers.syncthing-rtr.rule=Host(`stnas.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.syncthing-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.syncthing-rtr.service=syncthing-svc" - "traefik.http.services.syncthing-svc.loadbalancer.server.port=8384" ================================================ FILE: compose/ds918/tdarr.yml ================================================ services: # Tdarr Server - Library Optimizer tdarr: image: ghcr.io/haveagitgat/tdarr:latest logging: options: max-size: "10m" max-file: "3" container_name: tdarr security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["media", "all"] networks: - traefik_proxy devices: - /dev/dri:/dev/dri # for hardware transcoding ports: - 8265:8265 # webUI port - 8266:8266 # server port volumes: - $DOCKERDIR/appdata/tdarr/server:/app/server - $DOCKERDIR/appdata/tdarr/configs:/app/configs - $DOCKERDIR/appdata/tdarr/logs:/app/logs - $DOWNLOADSDIR/transcode/tdarr:/data/temp - $ZDATADIR/Photos/zVideos:/data/zVideos-source:ro - $DATADIR1/media/zvideos:/data/zVideos-destination environment: TZ: $TZ PUID: $PUID PGID: $PGID UMASK_SET: 002 serverIP: 0.0.0.0 # or hostname serverPort: 8266 webUIPort: 8265 internalNode: true inContainer: true ffmpegVersion: 6 nodeName: tdarr-node-ds918 labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.tdarr-rtr.entrypoints=https" - "traefik.http.routers.tdarr-rtr.rule=Host(`tdarr.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.tdarr-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.tdarr-rtr.service=tdarr-svc" - "traefik.http.services.tdarr-svc.loadbalancer.server.port=8265" ================================================ FILE: compose/ds918/traefik.yml ================================================ services: # Traefik 2 - Reverse Proxy traefik: container_name: traefik image: traefik:2.11 security_opt: - no-new-privileges:true restart: unless-stopped #profiles: ["core", "all"] networks: t2_proxy: ipv4_address: 192.168.90.254 # You can specify a static IP socket_proxy: command: # CLI arguments - --global.checkNewVersion=true - --global.sendAnonymousUsage=true - --entrypoints.http.address=:80 - --entrypoints.https.address=:443 - --entrypoints.traefik.address=:8080 # - --entrypoints.ping.address=:8081 - --entrypoints.http.http.redirections.entrypoint.to=https - --entrypoints.http.http.redirections.entrypoint.scheme=https - --entrypoints.http.http.redirections.entrypoint.permanent=true - --api=true - --api.dashboard=true - --api.insecure=true #- --ping=true # - --serversTransport.insecureSkipVerify=true # Allow these IPs to set the X-Forwarded-* headers - Cloudflare IPs: https://www.cloudflare.com/ips/ - --entrypoints.https.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS - --log=true - --log.filePath=/logs/traefik.log - --log.level=INFO # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC - --accessLog=true - --accessLog.filePath=/logs/access.log - --accessLog.bufferingSize=100 # Configuring a buffer of 100 lines - --accessLog.filters.statusCodes=204-299,400-499,500-599 - --providers.docker=true # - --providers.docker.endpoint=unix:///var/run/docker.sock # Disable for Socket Proxy. Enable otherwise. - --providers.docker.endpoint=tcp://socket-proxy:2375 # Enable for Socket Proxy. Disable otherwise. - --providers.docker.exposedByDefault=false - --providers.docker.network=t2_proxy # - --providers.docker.swarmMode=false # Traefik v2 Swarm # - --providers.swarm.endpoint=tcp://127.0.0.1:2377 # Traefik v3 Swarm - --entrypoints.https.http.tls=true - --entrypoints.https.http.tls.options=tls-opts@file # Add dns-cloudflare as default certresolver for all services. Also enables TLS and no need to specify on individual services - --entrypoints.https.http.tls.certresolver=dns-cloudflare - --entrypoints.https.http.tls.domains[0].main=$DOMAINNAME_DNS - --entrypoints.https.http.tls.domains[0].sans=*.$DOMAINNAME_DNS - --providers.file.directory=/rules # Load dynamic configuration from one or more .toml or .yml files in a directory - --providers.file.watch=true # Only works on top level files in the rules folder - --certificatesResolvers.dns-cloudflare.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory # LetsEncrypt Staging Server - uncomment when testing - --certificatesResolvers.dns-cloudflare.acme.storage=/acme.json - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.provider=cloudflare - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.resolvers=1.1.1.1:53,1.0.0.1:53 - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.delayBeforeCheck=90 # To delay DNS check and reduce LE hitrate # - --metrics.prometheus=true # - --metrics.prometheus.buckets=0.1,0.3,1.2,5.0 #healthcheck: # test: ["CMD", "traefik", "healthcheck", "--ping"] # interval: 5s # retries: 3 ports: - target: 80 published: 80 protocol: tcp mode: host - target: 443 published: 443 protocol: tcp mode: host # - target: 8080 # need to enable --api.insecure=true # published: 8080 # protocol: tcp # mode: host volumes: - $DOCKERDIR/appdata/traefik2/rules/$HOSTNAME:/rules # Dynamic File Provider directory # - /var/run/docker.sock:/var/run/docker.sock:ro # Enable if not using Socket Proxy - $DOCKERDIR/appdata/traefik2/acme/acme.json:/acme.json # Certs File - $DOCKERDIR/logs/$HOSTNAME/traefik:/logs # Traefik logs environment: - TZ=$TZ - CF_DNS_API_TOKEN_FILE=/run/secrets/cf_dns_api_token - HTPASSWD_FILE=/run/secrets/basic_auth_credentials # HTTP Basic Auth Credentials - DOMAINNAME_DNS - DOMAINNAME_HS secrets: - cf_dns_api_token - basic_auth_credentials labels: #- "autoheal=true" - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.traefik-rtr.entrypoints=https" - "traefik.http.routers.traefik-rtr.rule=Host(`traefik.$DOMAINNAME_DNS` )" # Services - API - "traefik.http.routers.traefik-rtr.service=api@internal" # Healthcheck/ping #- "traefik.http.routers.ping.rule=Host(`traefik.$DOMAINNAME_DNS`) && Path(`/ping`)" #- "traefik.http.routers.ping.tls=true" #- "traefik.http.routers.ping.service=ping@internal" # Middlewares - "traefik.http.routers.traefik-rtr.middlewares=chain-basic-auth@file" #- "traefik.http.routers.traefik-rtr.middlewares=chain-oauth@file" ================================================ FILE: compose/ds918/vscode.yml ================================================ services: # VSCode - VSCode Editing vscode: image: lscr.io/linuxserver/code-server:latest container_name: vscode security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["core", "all"] networks: - traefik_proxy ports: - "8443:8443" volumes: - $DOCKERDIR:/data/docker - $DOCKERDIR/appdata/vscode:/config - $DATADIR1:/data/data environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER_HOST: tcp://socket-proxy:2375 # PASSWORD: $VSCODE_PASSWORD # HASHED_PASSWORD: #optional # SUDO_PASSWORD: password #optional # SUDO_PASSWORD_HASH: #optional # PROXY_DOMAIN: code-server.my.domain #optional # DEFAULT_WORKSPACE: /config/data/User/Workspaces/AZ.code-workspace #optional labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.vscode-rtr.entrypoints=https" - "traefik.http.routers.vscode-rtr.rule=Host(`code.$DOMAINNAME_DS918`)" # Middlewares - "traefik.http.routers.vscode-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.vscode-rtr.service=vscode-svc" - "traefik.http.services.vscode-svc.loadbalancer.server.port=8443" ================================================ FILE: compose/ds918/zerotier.yml ================================================ services: # ZeroTier-One - Private Network over Internet zerotier: image: zerotier/zerotier-synology:latest container_name: zerotier security_opt: - no-new-privileges:true restart: unless-stopped # profiles: ["core", "all"] network_mode: host cap_add: - NET_ADMIN - SYS_ADMIN devices: - /dev/net/tun volumes: - $DOCKERDIR/appdata/zerotier:/var/lib/zerotier-one ================================================ FILE: compose/hs/adminer.yml ================================================ services: # Adminer - Frontend for Various Databases (MariaDB, PostgreSQL, etc.) adminer: image: adminer:latest container_name: adminer security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$ADMINER_PORT:8080" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/bazarr.yml ================================================ services: # Bazarr - Subtitle Management bazarr: image: lscr.io/linuxserver/bazarr container_name: bazarr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "starr", "all"] networks: - default ports: - "$BAZARR_PORT:6767" volumes: - $DOCKERDIR/appdata/bazarr:/config - $MEDIADIR1:/data/media1 - $MEDIADIR2:/data/media2 # - $MEDIADIR3:/data/media3 environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/cleanuparr.yml ================================================ services: # Cleanuparr - Arr Stack Cleanup Tool cleanuparr: image: ghcr.io/cleanuparr/cleanuparr:latest container_name: cleanuparr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["all", "apps"] networks: - default ports: - "$CLEANUPARR_PORT:11011" volumes: - $DOCKERDIR/appdata/cleanuparr:/config environment: TZ: $TZ PORT: 11011 PUID: $PUID PGID: $PGID UMASK: "022" stop_signal: SIGTERM stop_grace_period: 30s healthcheck: test: ["CMD", "curl", "-f", "http://localhost:11011/health"] interval: 30s timeout: 10s start_period: 30s retries: 3 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/cloud-commander.yml ================================================ services: # Cloud Commander - web file manager cloud-commander: image: coderaiser/cloudcmd container_name: cloud-commander restart: unless-stopped security_opt: - no-new-privileges:true profiles: ["apps", "all"] networks: - default ports: - "$CLOUDCOMMANDER_PORT:8000" volumes: - $DOCKERDIR/appdata/cloud-commander:/root - $USERDIR:/data/$PRIMARY_USERNAME - $MEDIADIR1:/data/media1 - $MEDIADIR2:/data/media2 # - $MEDIADIR3:/data/media3 environment: PUID: $PUID PGID: $PGID TZ: $TZ # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/custom.yml ================================================ # Add all your custom docker compose snippets here. Auto-Traefik will not modify this. # Uncomment services and the compose below it, following yaml syntax. # services: ================================================ FILE: compose/hs/deployrr-dashboard.yml ================================================ services: # Deployrr Dashboard - Homepage based Dashboard for Deployrr deployrr-dashboard: image: ghcr.io/gethomepage/homepage:v1.3.2 container_name: deployrr-dashboard security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default - socket_proxy ports: - "$DEPLOYRRDASHBOARD_PORT:3000" volumes: - $DOCKERDIR/appdata/deployrr-dashboard/config:/app/config - $DOCKERDIR/appdata/deployrr-dashboard/images:/app/public/images environment: TZ: $TZ PUID: $PUID PGID: $PGID HOMEPAGE_ALLOWED_HOSTS: "*" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/deunhealth.yml ================================================ services: # DeUnhealth - Restart your unhealthy containers safely (e.g. containers depending on VPN and VPN reconnects) deunhealth: image: qmcgaw/deunhealth container_name: deunhealth security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - socket_proxy environment: - LOG_LEVEL=info - HEALTH_SERVER_ADDRESS=127.0.0.1:9999 - TZ=$TZ - DOCKER_HOST # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/docker-gc.yml ================================================ services: # Docker-GC - Automatic Docker Garbage Collection # Create docker-gc-exclude file docker-gc: image: clockworksoul/docker-gc-cron:latest container_name: docker-gc security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - socket_proxy volumes: # - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/appdata/docker-gc/docker-gc-exclude:/etc/docker-gc-exclude environment: - CRON=0 0 0 * * ? # Everyday at midnight. Previously 0 0 * * * - FORCE_IMAGE_REMOVAL=1 - FORCE_CONTAINER_REMOVAL=0 - GRACE_PERIOD_SECONDS=604800 - DRY_RUN=0 - CLEAN_UP_VOLUMES=1 - TZ=$TZ - DOCKER_HOST # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/dozzle.yml ================================================ services: # Dozzle - Real-time Docker Log Viewer dozzle: image: amir20/dozzle:latest container_name: dozzle security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default - socket_proxy ports: - "$DOZZLE_PORT:8080" environment: - DOZZLE_LEVEL=info - DOZZLE_TAILSIZE=300 - DOZZLE_FILTER="status=running" # - DOZZLE_FILTER="label=log_me" # limits logs displayed to containers with this label - DOCKER_HOST # volumes: # - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/firefly-importer.yml ================================================ services: # Firefly Importer - Data Importer for Firefly III firefly-importer: image: fireflyiii/data-importer:latest container_name: firefly_importer security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$FIREFLYIMPORTER_PORT:8080" volumes: - $DOCKERDIR/appdata/firefly:/var/www/html/storage/upload depends_on: - firefly env_file: $DOCKERDIR/appdata/firefly/importer.env # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/firefly.yml ================================================ services: # Firefly III - Personal Finance Manager firefly: image: fireflyiii/core:latest container_name: firefly security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$FIREFLY_PORT:8080" volumes: - $DOCKERDIR/appdata/firefly:/var/www/html/storage/upload env_file: $DOCKERDIR/appdata/firefly/firefly.env # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/glances.yml ================================================ services: # Glances - System Information glances: image: nicolargo/glances:latest-full container_name: glances security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["monitoring", "all"] # privileged: true # Only for VM networks: - default - socket_proxy ports: - "$GLANCES_PORT:61208" pid: host volumes: - $DOCKERDIR/appdata/glances/glances.conf:/glances/conf/glances.conf # Use this if you want to add a glances.conf file - $DOCKERDIR:/data/docker:ro # - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security environment: # - GLANCES_OPT="-C /glances/conf/glances.conf --quiet --export influxdb" # - GLANCES_OPT="--export influxdb" - "GLANCES_OPT=-w" - DOCKER_HOST # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/gluetun.yml ================================================ services: # Gluetun - VPN Client for Docker Containers and More # Gluetun only for use by torrent clients + on demand lan devices. # Arr apps do not need VPN (not recommended), unless you have ISP/country restrictions. gluetun: image: qmcgaw/gluetun container_name: gluetun security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default cap_add: - NET_ADMIN devices: - /dev/net/tun ports: - $QBITTORRENTVPN_PORT:8080 # qBittorrent available at http://DOCKER-HOST-IP:$QBITTORRENTVPN_PORT # - 8888:8888/tcp # HTTP proxy # - 8388:8388/tcp # Shadowsocks # - 8388:8388/udp # Shadowsocks volumes: - $DOCKERDIR/appdata/gluetun:/gluetun environment: TZ: $TZ VPN_SERVICE_PROVIDER: $GLUETUN_VPN_SERVICE_PROVIDER VPN_TYPE: $GLUETUN_VPN_TYPE # wireguard / openvpn WIREGUARD_PRIVATE_KEY: $GLUETUN_WIREGUARD_PRIVATE_KEY WIREGUARD_ADDRESSES: $GLUETUN_WIREGUARD_ADDRESSES # OPENVPN_USER: $GLUETUN_OPENVPN_USERNAME # OPENVPN_PASSWORD: $GLUETUN_OPENVPN_PASSWORD # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/it-tools.yml ================================================ services: # IT-Tools - Status Page & Monitoring Server it-tools: image: corentinth/it-tools container_name: it-tools security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$ITTOOLS_PORT:80" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/kometa.yml ================================================ services: # Kometa - Automatic Metadata Manager for Plex (formerly Plex Meta Mananger) kometa: image: lscr.io/linuxserver/kometa:latest container_name: kometa security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default volumes: - $DOCKERDIR/appdata/kometa:/config environment: TZ: $TZ PUID: $PUID PGID: $PGID KOMETA_CONFIG: /config/config.yml #optional KOMETA_TIME: 03:00 #optional KOMETA_RUN: True #optional KOMETA_TEST: False #optional KOMETA_NO_MISSING: False #optional # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/lidarr.yml ================================================ services: # Lidarr - Music Management lidarr: image: lscr.io/linuxserver/lidarr:latest container_name: lidarr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "starr", "all"] networks: - default ports: - "$LIDARR_PORT:8686" volumes: - $DOCKERDIR/appdata/lidarr:/config - $DATADIR1:/data # - $MEDIADIR2:/data/media2 # - $MEDIADIR3:/data/media3 - $DOWNLOADSDIR:/data/downloads - "/etc/localtime:/etc/localtime:ro" environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/maintainerr.yml ================================================ services: # Maintainerr - Manage Plex Media maintainerr: image: ghcr.io/jorenn92/maintainerr:latest container_name: maintainerr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$MAINTAINERR_PORT:6246" user: $PUID:$PGID volumes: - $DOCKERDIR/appdata/maintainerr:/opt/data environment: TZ: $TZ DEBUG: true # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/makemkv.yml ================================================ services: # MakeMKV - Video Editing (Ripping from Disks) makemkv: image: jlesage/makemkv:latest container_name: makemkv security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media","all"] networks: - default ports: - "$MAKEMKV_PORT:5800" volumes: - $DOWNLOADSDIR:/data/downloads - $DOCKERDIR/appdata/makemkv/config:/config - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 # VNC_PASSWORD: $MAKEMKV_VNC_PASSWD # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/mkvtoolnix.yml ================================================ services: # MKVToolNix - Video Editing (Remuxing - changing media container while keeping original source quality) mkvtoolnix: image: jlesage/mkvtoolnix:latest container_name: mkvtoolnix security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media","all"] networks: - default ports: - "$MKVTOOLNIX_PORT:5800" volumes: - $DOWNLOADSDIR:/data/downloads - $DOCKERDIR/appdata/mkvtoolnix/config:/config:rw environment: USER_ID: $PUID GROUP_ID: $PGID UMASK: 002 TZ: $TZ KEEP_APP_RUNNING: 1 CLEAN_TMP_DIR: 1 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 # VNC_PASSWORD: $MKVTOOLNIX_VNC_PASSWD # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/notifiarr.yml ================================================ services: # Notifiarr - Client for Notifiarr.com notifiarr: image: golift/notifiarr container_name: notifiarr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default ports: - "$NOTIFIARR_PORT:5454" volumes: - $DOCKERDIR/appdata/notifiarr:/config - /var/run/utmp:/var/run/utmp - /etc/machine-id:/etc/machine-id environment: DN_API_KEY: $NOTIFIARR_API_KEY #DN_AUTO_UPDATE: off TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/oauth.yml ================================================ services: # Traefik Forward Auth - Single Sign On using OAuth 2.0 oauth: container_name: oauth image: ghcr.io/italypaleale/traefik-forward-auth:4 security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - t3_proxy # ports: # - "4181:4181" volumes: - $DOCKERDIR/appdata/oauth/tfa_config.yaml:/etc/traefik-forward-auth/config.yaml:ro labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.oauth-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.oauth-rtr.rule=Host(`auth.$DOMAINNAME_1`)" # Middlewares - "traefik.http.routers.oauth-rtr.middlewares=chain-no-auth@file" # HTTP Services - "traefik.http.routers.oauth-rtr.service=oauth-svc" - "traefik.http.services.oauth-svc.loadbalancer.server.port=4181" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/picard.yml ================================================ services: # Picard - Music Library Tagging and Management picard: image: mikenye/picard:latest container_name: picard security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default ports: - "$PICARD_PORT:5800" volumes: - $DOCKERDIR/appdata/picard:/config:rw - $DOWNLOADSDIR:/downloads - /dev/shm:/dev/shm environment: USER_ID: $PUID GROUP_ID: $PGID TZ: $TZ UMASK: 002 DISPLAY_WIDTH: 1600 DISPLAY_HEIGHT: 960 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/prowlarr.yml ================================================ services: # Prowlarr - Index Manager prowlarr: image: ghcr.io/linuxserver/prowlarr:develop container_name: prowlarr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "starr", "all"] networks: - default ports: - "$PROWLARR_PORT:9696" volumes: - $DOCKERDIR/appdata/prowlarr:/config - $DOWNLOADSDIR:/data/downloads - "/etc/localtime:/etc/localtime:ro" environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/qbittorrent-vpn.yml ================================================ services: # qBittorrent - Torrent downloader qbittorrent-vpn: image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent-vpn security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "downloads", "all"] network_mode: "service:gluetun" volumes: - $DOCKERDIR/appdata/qbittorrent-vpn:/config - $DOWNLOADSDIR:/data/downloads # Ensure that downloads folder is set to /data/downloads in qBittorrent environment: TZ: $TZ PUID: $PUID PGID: $PGID UMASK_SET: 002 healthcheck: # https://github.com/qdm12/gluetun/issues/641#issuecomment-933856220 test: "curl -sf https://example.com || exit 1" interval: 1m timeout: 10s retries: 1 labels: # Traefik labels added via file provider app-qbittorrent.yml in rules folder - "deunhealth.restart.on.unhealthy=true" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/radarr.yml ================================================ services: # Radarr - Movies Management radarr: image: lscr.io/linuxserver/radarr:latest container_name: radarr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "starr", "all"] networks: - default ports: - "$RADARR_PORT:7878" volumes: - $DOCKERDIR/appdata/radarr:/config - $MEDIADIR1/movies:/data/movies1 - $MEDIADIR2/movies:/data/movies2 # - $MEDIADIR3:/data/media3 - $DOWNLOADSDIR:/data/downloads - "/etc/localtime:/etc/localtime:ro" environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/sabnzbd.yml ================================================ services: # SABnzbd - Binary newsgrabber (NZB downloader) # Disable SABNnzbd's built-in HTTPS support for traefik proxy to work sabnzbd: image: lscr.io/linuxserver/sabnzbd:latest container_name: sabnzbd security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "downloads", "all"] networks: - default ports: - "$SABNZBD_PORT:8080" volumes: - $DOCKERDIR/appdata/sabnzbd:/config - $DOWNLOADSDIR:/data/downloads environment: PUID: $PUID PGID: $PGID TZ: $TZ UMASK_SET: 002 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/socket-proxy.yml ================================================ services: # Docker Socket Proxy - Security Enchanced Proxy for Docker Socket socket-proxy: image: lscr.io/linuxserver/socket-proxy:latest container_name: socket-proxy security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: socket_proxy: ipv4_address: 192.168.91.254 # You can specify a static IP # privileged: true # true for VM. False (default) for unprivileged LXC container. # ports: #- "2375:2375" volumes: - "/var/run/docker.sock:/var/run/docker.sock" read_only: true tmpfs: - /run environment: - LOG_LEVEL=warning # debug,info,notice,warning,err,crit,alert,emerg - ALLOW_START=1 # Portainer - ALLOW_STOP=1 # Portainer - ALLOW_RESTARTS=1 # Portainer ## Granted by Default - EVENTS=1 - PING=1 - VERSION=1 ## Revoked by Default # Security critical - AUTH=0 - SECRETS=0 - POST=1 # Watchtower # Not always needed - BUILD=0 - COMMIT=0 - CONFIGS=0 - CONTAINERS=1 # Traefik, portainer, etc. - DISTRIBUTION=0 - EXEC=0 - IMAGES=1 # Portainer - INFO=1 # Portainer - NETWORKS=1 # Portainer - NODES=0 - PLUGINS=0 - SERVICES=1 # Portainer - SESSION=0 - SWARM=0 - SYSTEM=0 - TASKS=1 # Portainer - VOLUMES=1 # Portainer - DISABLE_IPV6=0 #optional # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/sonarr.yml ================================================ services: # Sonarr - TV Shows Management sonarr: image: lscr.io/linuxserver/sonarr:develop container_name: sonarr security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "starr", "all"] networks: - default ports: - "$SONARR_PORT:8989" volumes: - $DOCKERDIR/appdata/sonarr:/config - $MEDIADIR1/shows:/data/shows1 - $MEDIADIR2/shows:/data/shows2 # - $MEDIADIR3:/data/media3 - $DOWNLOADSDIR:/data/downloads - "/etc/localtime:/etc/localtime:ro" environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/stirling-pdf.yml ================================================ services: # Stirling PDF - Self-hosted PDF Manipulation stirling-pdf: image: stirlingtools/stirling-pdf:latest container_name: stirling-pdf security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$STIRLINGPDF_PORT:8080" volumes: - $DOCKERDIR/appdata/stirling-pdf/trainingData:/usr/share/tessdata # Required for extra OCR languages - $DOCKERDIR/appdata/stirling-pdf/extraConfigs:/configs # - $DOCKERDIR/appdata/stirling-pdf/customFiles:/customFiles/ # - $DOCKERDIR/appdata/stirling-pdf/logs:/logs/ environment: DOCKER_ENABLE_SECURITY: false INSTALL_BOOK_AND_ADVANCED_HTML_OPS: false LANGS: en_US # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/traefik.yml ================================================ services: # Traefik 3 - Reverse Proxy traefik: container_name: traefik image: traefik:3.3 security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] depends_on: - socket-proxy networks: t3_proxy: ipv4_address: 192.168.90.254 # You can specify a static IP socket_proxy: command: # CLI arguments - --global.checkNewVersion=true - --global.sendAnonymousUsage=false - --entrypoints.web-external.address=:81 - --entrypoints.web-internal.address=:80 - --entrypoints.websecure-external.address=:444 - --entrypoints.websecure-internal.address=:443 - --entrypoints.traefik.address=:8080 - --entrypoints.websecure-external.http3=true - --entrypoints.websecure-internal.http3=true - --entrypoints.web-external.http.redirections.entrypoint.to=websecure-external - --entrypoints.web-external.http.redirections.entrypoint.scheme=https - --entrypoints.web-external.http.redirections.entrypoint.permanent=true - --entrypoints.web-internal.http.redirections.entrypoint.to=websecure-internal - --entrypoints.web-internal.http.redirections.entrypoint.scheme=https - --entrypoints.web-internal.http.redirections.entrypoint.permanent=true - --api=true - --api.dashboard=true - --api.insecure=true # - --serversTransport.insecureSkipVerify=true # Allow these IPs to set the X-Forwarded-* headers - Cloudflare IPs: https://www.cloudflare.com/ips/ - --entrypoints.websecure-external.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS - --entrypoints.websecure-internal.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS - --log=true - --log.filePath=/logs/traefik.log - --log.level=DEBUG # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC - --accessLog=true - --accessLog.filePath=/logs/access.log - --accessLog.bufferingSize=100 # Configuring a buffer of 100 lines - --accessLog.filters.statusCodes=204-299,400-499,500-599 - --providers.docker=true # - --providers.docker.endpoint=unix:///var/run/docker.sock # Disable for Socket Proxy. Enable otherwise. - --providers.docker.endpoint=tcp://socket-proxy:2375 # Enable for Socket Proxy. Disable otherwise. - --providers.docker.exposedByDefault=false - --providers.docker.network=t3_proxy # - --providers.docker.swarmMode=false # Traefik v2 Swarm # - --providers.swarm.endpoint=tcp://127.0.0.1:2377 # Traefik v3 Swarm - --entrypoints.websecure-external.http.tls=true - --entrypoints.websecure-external.http.tls.options=tls-opts@file - --entrypoints.websecure-internal.http.tls=true - --entrypoints.websecure-internal.http.tls.options=tls-opts@file # Add dns-cloudflare as default certresolver for all services. Also enables TLS and no need to specify on individual services - --entrypoints.websecure-external.http.tls.certresolver=dns-cloudflare - --entrypoints.websecure-internal.http.tls.certresolver=dns-cloudflare - --entrypoints.websecure-external.http.tls.domains[0].main=$DOMAINNAME_1 - --entrypoints.websecure-external.http.tls.domains[0].sans=*.$DOMAINNAME_1 - --entrypoints.websecure-internal.http.tls.domains[0].main=$DOMAINNAME_1 - --entrypoints.websecure-internal.http.tls.domains[0].sans=*.$DOMAINNAME_1 # - DOMAINS-PLACEHOLDER-DO-NOT-DELETE - --providers.file.directory=/rules # Load dynamic configuration from one or more .toml or .yml files in a directory - --providers.file.watch=true # Only works on top level files in the rules folder # - --certificatesResolvers.dns-cloudflare.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory # LetsEncrypt Staging Server - uncomment when testing - --certificatesResolvers.dns-cloudflare.acme.storage=/acme.json - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.provider=cloudflare - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.resolvers=1.1.1.1:53,1.0.0.1:53 - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.propagation.delaybeforechecks=120 # To delay DNS check and reduce LE hitrate #- --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.propagation.disablechecks=true # Not recommended # - METRICS-PLACEHOLDER-DO-NOT-DELETE ports: - "80:80" - "81:81" - "443:443" - "444:444" - "$TRAEFIK_PORT:8080" volumes: - $DOCKERDIR/appdata/traefik3/rules/$HOSTNAME:/rules # - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/appdata/traefik3/acme/acme.json:/acme.json - $DOCKERDIR/logs/$HOSTNAME/traefik:/logs environment: - TZ=$TZ - CF_DNS_API_TOKEN_FILE=/run/secrets/cf_dns_api_token - HTPASSWD_FILE=/run/secrets/basic_auth_credentials # HTTP Basic Auth Credentials - DOMAINNAME_1 # Passing the domain name to traefik container to be able to use the variable in rules. # - TRAEFIK_AUTH_BYPASS_KEY secrets: - cf_dns_api_token - basic_auth_credentials labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.traefik-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.traefik-rtr.rule=Host(`traefik.$DOMAINNAME_1`)" # Services - API - "traefik.http.routers.traefik-rtr.service=api@internal" # Middlewares - "traefik.http.routers.traefik-rtr.middlewares=chain-oauth@file" # For Basic HTTP Authentication # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/uptime-kuma.yml ================================================ services: # Uptime Kuma - Status Page & Monitoring Server uptime-kuma: image: louislam/uptime-kuma container_name: uptime-kuma security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default - socket_proxy ports: - "$UPTIMEKUMA_PORT:3001" volumes: - $DOCKERDIR/appdata/uptime-kuma:/app/data # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/hs/wud.yml ================================================ services: # WUD (What's Up Docker) - Docker Image Update Notification wud: image: fmartinou/whats-up-docker container_name: wud security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - socket_proxy ports: - "$WUD_PORT:3000" volumes: - /var/run/docker.sock:/var/run/docker.sock environment: # - WUD_TRIGGER_DISCORD_1_URL=https://discord.com/api/webhooks/123/456 # - WUD_TRIGGER_DISCORD_1_BOTUSERNAME=WUD - WUD_WATCHER_LOCAL_CRON=0 1 * * * - WUD_WATCHER_LOCAL_WATCHALL=true # - WUD_WATCHER_MYREMOTEHOST_HOST= # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/mds/airsonic-advanced.yml ================================================ services: # Airsonic Advanced - Music Server airsonic-advanced: image: lscr.io/linuxserver/airsonic-advanced container_name: airsonic-advanced security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default volumes: - $DOCKERDIR/appdata/airsonic-advanced/podcasts:/data/podcasts - $DOCKERDIR/appdata/airsonic-advanced/playlists:/data/playlists - $DOCKERDIR/appdata/airsonic-advanced/config:/config - $MEDIADIR1/music:/data/music # - $MEDIADIR3:/data/media3 ports: - "$AIRSONICADVANCED_PORT:4040" environment: TZ: $TZ PUID: $PUID PGID: $PGID JAVA_OPTS: '-Dserver.forward-headers-strategy=native' # optional - if you use a reverse-proxy # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/mds/custom.yml ================================================ # Add all your custom docker compose snippets here. Auto-Traefik will not modify this. # Uncomment services and the compose below it, following yaml syntax. # services: ================================================ FILE: compose/mds/docker-gc.yml ================================================ services: # Docker-GC - Automatic Docker Garbage Collection # Create docker-gc-exclude file docker-gc: image: clockworksoul/docker-gc-cron:latest container_name: docker-gc security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - socket_proxy volumes: # - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/appdata/docker-gc/docker-gc-exclude:/etc/docker-gc-exclude environment: - CRON=0 0 0 * * ? # Everyday at midnight. Previously 0 0 * * * - FORCE_IMAGE_REMOVAL=1 - FORCE_CONTAINER_REMOVAL=0 - GRACE_PERIOD_SECONDS=604800 - DRY_RUN=0 - CLEAN_UP_VOLUMES=1 - TZ=$TZ - DOCKER_HOST ================================================ FILE: compose/mds/influxdb.yml ================================================ services: # InfluxDB - Database for sensor data influxdb: image: influxdb:latest container_name: influxdb security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["dbs", "all"] networks: - default ports: - "$INFLUXDB_PORT:8086" volumes: - $DOCKERDIR/appdata/influxdb2/config:/etc/influxdb2 - $DOCKERDIR/appdata/influxdb2/db:/var/lib/influxdb2 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/mds/jellyfin.yml ================================================ services: # Jellyfin - Media Server jellyfin: image: jellyfin/jellyfin:latest container_name: jellyfin security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default user: $PUID:$PGID devices: - /dev/dri:/dev/dri # for harware transcoding ports: - "$JELLYFIN_PORT:8096" # - "8920:8920" # Emby also uses same port if running both environment: UMASK_SET: 022 TZ: $TZ volumes: - $DOCKERDIR/appdata/jellyfin:/config - $DOWNLOADSDIR:/data/downloads - $MEDIADIR1:/data/media1 - $MEDIADIR2:/data/media2 # - $MEDIADIR3:/data/media3 - /dev/shm:/data/transcode # Offload transcoding to RAM if you have enough RAM # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/mds/mariadb.yml ================================================ services: # MariaDB - MySQL Database # After starting container for first time dexec and mysqladmin -u root password mariadb: container_name: mariadb image: lscr.io/linuxserver/mariadb security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["dbs", "all"] networks: - default ports: - "$MARIADB_PORT:3306" volumes: - $DOCKERDIR/appdata/mariadb/data:/config environment: TZ: $TZ PUID: $PUID PGID: $PGID FILE__MYSQL_ROOT_PASSWORD: /run/secrets/mysql_root_password # Note FILE__ (double underscore) - Issue #127 secrets: - mysql_root_password ================================================ FILE: compose/mds/mosquitto.yml ================================================ services: # 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: container_name: mosquitto image: eclipse-mosquitto:latest security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "1833:1883" #http - "9001:9001" #websockets volumes: - $DOCKERDIR/appdata/mosquitto/config:/mosquitto/config - $DOCKERDIR/appdata/mosquitto/data:/mosquitto/data - $DOCKERDIR/appdata/mosquitto/log:/mosquitto/log - $DOCKERDIR/appdata/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf - $DOCKERDIR/appdata/mosquitto/config/passwd:/mosquitto/config/passwd environment: PUID: $PUID PGID: $PGID TZ: $TZ ================================================ FILE: compose/mds/node-exporter.yml ================================================ services: # Node Exporter - Metrics to Prometheus node-exporter: container_name: node-exporter image: prom/node-exporter:latest security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["monitoring", "all"] networks: - default ports: - "9100:9100" volumes: - /proc:/host/proc:ro - /sys:/host/sys:ro - /:/rootfs:ro command: - '--path.procfs=/host/proc' - '--path.sysfs=/host/sys' - --collector.filesystem.ignored-mount-points - "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)" ================================================ FILE: compose/mds/pgsql-teslamate.yml ================================================ services: # PostgreSQL - Database fpr Teslamate pgsql-teslamate: container_name: pgsql-teslamate image: postgres:16-alpine security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] # healthcheck: # test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] # start_period: 20s # interval: 30s # retries: 5 # timeout: 5s networks: - default ports: - "$PGSQLTESLAMATE_PORT:5432" volumes: - $DOCKERDIR/appdata/pgsql-teslamate:/var/lib/postgresql/data environment: - POSTGRES_DB=teslamate - POSTGRES_USER=$POSTGRES_USER - POSTGRES_PASSWORD_FILE=/run/secrets/pgsql_teslamate_passwd secrets: - pgsql_teslamate_passwd ================================================ FILE: compose/mds/plex-image-cleanup.yml ================================================ services: pic: image: meisnate12/plex-image-cleanup container_name: pic environment: - TZ=$TZ #optional volumes: - $DOCKERDIR/appdata/plex-image-cleanup:/config - $DOCKERDIR/appdata/plex/Library/Application Support/Plex Media Server:/plex restart: unless-stopped ================================================ FILE: compose/mds/plex-meta-manager.yml ================================================ services: # Plex Meta Manager - Automatic Metadata Manager for Plex plexmm: image: lscr.io/linuxserver/plex-meta-manager:latest container_name: plexmm security_opt: - no-new-privileges:true restart: "no" profiles: ["media", "all"] environment: TZ: $TZ PUID: $PUID PGID: $PGID PMM_CONFIG: /config/config.yml #optional PMM_TIME: 03:00 #optional PMM_RUN: "True" #optional PMM_TEST: "False" #optional PMM_NO_MISSING: "False" #optional volumes: - $DOCKERDIR/appdata/plex-meta-manager:/config ================================================ FILE: compose/mds/plex.yml ================================================ services: # Plex - Media Server plex: image: plexinc/pms-docker:plexpass container_name: plex security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default ports: - "$PLEX_PORT:32400/tcp" - "3005:3005/tcp" - "8324:8324/tcp" - "32469:32469/tcp" - "1900:1900/udp" - "32410:32410/udp" - "32412:32412/udp" - "32413:32413/udp" - "32414:32414/udp" devices: - /dev/dri:/dev/dri # for harware transcoding volumes: - $DOCKERDIR/appdata/plex:/config - $DOWNLOADSDIR:/data/downloads - $MEDIADIR1:/data/media1 - $MEDIADIR2:/data/media2 # - $MEDIADIR3:/data/media3 - /dev/shm:/data/transcode environment: TZ: $TZ HOSTNAME: $PLEX_SERVER_NAME PLEX_CLAIM_FILE: /run/secrets/plex_claim PLEX_UID: $PUID PLEX_GID: $PGID ADVERTISE_IP: "http://$SERVER_LAN_IP:32400/,http://$TAILSCALE_IP_MEDIASERVER:32400/,https://plex.$DOMAINNAME_1" secrets: - plex_claim # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/mds/prometheus.yml ================================================ services: # Prometheus - Database for sensor data prometheus: image: prom/prometheus:latest container_name: prometheus security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["dbs", "all"] networks: - default ports: - "$PROMETHEUS_PORT:9090" volumes: - $DOCKERDIR/appdata/prometheus/config:/etc/prometheus - $DOCKERDIR/appdata/prometheus/data:/prometheus user: $PUID:$PGID command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' - '--web.console.libraries=/usr/share/prometheus/console_libraries' - '--web.console.templates=/usr/share/prometheus/consoles' - '--web.enable-lifecycle' - '--web.enable-admin-api' # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/mds/socket-proxy.yml ================================================ services: # Docker Socket Proxy - Security Enchanced Proxy for Docker Socket socket-proxy: image: lscr.io/linuxserver/socket-proxy:latest container_name: socket-proxy security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: socket_proxy: ipv4_address: 192.168.91.254 # You can specify a static IP # privileged: true # true for VM. False (default) for unprivileged LXC container. # ports: #- "2375:2375" volumes: - "/var/run/docker.sock:/var/run/docker.sock" read_only: true tmpfs: - /run environment: - LOG_LEVEL=warning # debug,info,notice,warning,err,crit,alert,emerg - ALLOW_START=1 # Portainer - ALLOW_STOP=1 # Portainer - ALLOW_RESTARTS=1 # Portainer ## Granted by Default - EVENTS=1 - PING=1 - VERSION=1 ## Revoked by Default # Security critical - AUTH=0 - SECRETS=0 - POST=1 # Watchtower # Not always needed - BUILD=0 - COMMIT=0 - CONFIGS=0 - CONTAINERS=1 # Traefik, portainer, etc. - DISTRIBUTION=0 - EXEC=0 - IMAGES=1 # Portainer - INFO=1 # Portainer - NETWORKS=1 # Portainer - NODES=0 - PLUGINS=0 - SERVICES=1 # Portainer - SESSION=0 - SWARM=0 - SYSTEM=0 - TASKS=1 # Portainer - VOLUMES=1 # Portainer - DISABLE_IPV6=0 #optional ================================================ FILE: compose/mds/tautulli.yml ================================================ services: # Tautulli - Plex Statistics and Monitoring tautulli: image: lscr.io/linuxserver/tautulli:latest container_name: tautulli security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["media", "all"] networks: - default ports: - "$TAUTULLI_PORT:8181" volumes: - $DOCKERDIR/appdata/tautulli/config:/config - $DOCKERDIR/appdata/plex/Library/Application Support/Plex Media Server/Logs:/logs:ro # For tautulli Plex log viewer environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/adminer.yml ================================================ services: # Adminer - Frontend for Various Databases (MariaDB, PostgreSQL, etc.) adminer: image: adminer:latest container_name: adminer security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$ADMINER_PORT:8080" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/chromium.yml ================================================ services: # Chromium - Web Browser chromium: image: lscr.io/linuxserver/chromium:latest container_name: chromium security_opt: - no-new-privileges:true - seccomp:unconfined #optional restart: "unless-stopped" profiles: ["apps", "all"] shm_size: "1gb" # DEVICES-GPU-PLACEHOLDER-DO-NOT-DELETE networks: - default ports: - "$CHROMIUM_PORT:3000" # HTTP # - 3001:3001 # HTTPS volumes: - $DOCKERDIR/appdata/chromium:/config environment: TZ: $TZ PUID: $PUID PGID: $PGID CUSTOM_USER: $CHROMIUM_HTTP_USER PASSWORD: $CHROMIUM_HTTP_PASSWORD # CHROME_CLI: https://www.deployarr.app/ #optional # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/cloudflare-bouncer.yml ================================================ services: # CrowdSec Bouncer - Cloudflare # sudo docker exec crowdsec cscli bouncer add cloudflare-bouncer # Set max ip number right the first time (max 10000). Recreating container deletes all ips and readds them causing cloudflare 429 rate limiting. cloudflare-bouncer: image: crowdsecurity/cloudflare-bouncer container_name: cloudflare-bouncer security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default volumes: - $DOCKERDIR/appdata/cloudflare-bouncer/cfg.yaml:/etc/crowdsec/bouncers/crowdsec-cloudflare-bouncer.yaml ================================================ FILE: compose/ws-arm/crawl4ai.yml ================================================ services: # Crawl4AI - Web Scraper crawl4ai: image: unclecode/crawl4ai:basic-arm64 container_name: crawl4ai security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "11235:11235" # - "8025:8000" # - "9222:9222" # - "8065:8080" environment: - CRAWL4AI_API_TOKEN=${CRAWL4AI_API_TOKEN:-} # - OPENAI_API_KEY=${OPENAI_API_KEY:-} # - CLAUDE_API_KEY=${CLAUDE_API_KEY:-} volumes: - /dev/shm:/dev/shm deploy: resources: limits: memory: 4G reservations: memory: 1G # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/crowdsec.yml ================================================ services: # CrowdSec - Open-source & Collaborative IPS crowdsec: image: crowdsecurity/crowdsec container_name: crowdsec security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] depends_on: mariadb: condition: service_healthy ports: - "$CROWDSEC_PORT:8080" # Local API port - "6060:6060" # Exposing metrics via Zerotier IP environment: COLLECTIONS: "crowdsecurity/traefik crowdsecurity/http-cve crowdsecurity/whitelist-good-actors crowdsecurity/iptables crowdsecurity/linux fulljackz/proxmox crowdsecurity/sshd crowdsecurity/wordpress" GID: $PGID CUSTOM_HOSTNAME: $HOSTNAME volumes: - $DOCKERDIR/logs/$HOSTNAME:/logs/$HOSTNAME:ro - /var/log:/var/log:ro - $DOCKERDIR/appdata/crowdsec/data:/var/lib/crowdsec/data - $DOCKERDIR/appdata/crowdsec/config:/etc/crowdsec ================================================ FILE: compose/ws-arm/custom.yml ================================================ # Add all your custom docker compose snippets here. Auto-Traefik will not modify this. # Uncomment services and the compose below it, following yaml syntax. # services: ================================================ FILE: compose/ws-arm/deployrr-dashboard.yml ================================================ services: # Deployarr Dashboard - Homepage based Dashboard for Deployarr deployrr-dashboard: image: ghcr.io/gethomepage/homepage:v0.9.13 container_name: deployrr-dashboard security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default - socket_proxy ports: - "$DEPLOYARRDASHBOARD_PORT:3000" volumes: - $DOCKERDIR/appdata/deployrr-dashboard/config:/app/config - $DOCKERDIR/appdata/deployrr-dashboard/images:/app/public/images environment: TZ: $TZ PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/dockflare.yml ================================================ services: # DockFlare - Cloudflare Tunnel & Zero Trust Manager dockflare: image: alplat/dockflare:stable # alplat/dockflare:unstable docker tag for beta versions container_name: dockflare security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] ports: - "$DOCKFLARE_PORT:5000" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro # Required to monitor Docker events - $DOCKERDIR/appdata/dockflare:/app/data # Persistent storage for state networks: - cf_tunnel # Network for communication with other containers - default - t3_proxy environment: STATE_FILE_PATH: /app/data/state.json TZ: $TZ CF_API_TOKEN: $DOCKFLARE_CF_API_TOKEN CF_ACCOUNT_ID: $DOCKFLARE_CF_ACCOUNT_ID CF_ZONE_ID: $DOCKFLARE_CF_ZONE_ID TUNNEL_NAME: Simple-Tunnel # LABEL_PREFIX: dockflare. # The default is now 'dockflare.'. Uncomment to customize. GRACE_PERIOD_SECONDS: 28800 CLEANUP_INTERVAL_SECONDS: 300 AGENT_STATUS_UPDATE_INTERVAL_SECONDS: 10 SCAN_ALL_NETWORKS: false CLOUDFLARED_NETWORK_NAME: cf_tunnel # TUNNEL_DNS_SCAN_ZONE_NAMES=extradomain.com,another-zone.net MAX_CONCURRENT_DNS_OPS: 3 # labels: # - 'dockflare.enable=true' # - 'dockflare.hostname=cftunnel.$DOMAINNAME_1' # - 'dockflare.service=http://dockflare:5000' # - 'dockflare.access.policy=authenticate' # - 'dockflare.access.session_duration=8h' # - 'dockflare.access.custom_rules=[{"email":{"email":"avp387@gmail.com"},"action":"allow"},{"action":"block"}]' # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/dozzle.yml ================================================ services: # Dozzle - Real-time Docker Log Viewer dozzle: image: amir20/dozzle:latest container_name: dozzle security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default # - socket_proxy ports: - "$DOZZLE_PORT:8080" environment: - DOZZLE_LEVEL=info - DOZZLE_TAILSIZE=300 - DOZZLE_FILTER="status=running" # - DOZZLE_FILTER="label=log_me" # limits logs displayed to containers with this label # - DOCKER_HOST volumes: - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/flowise.yml ================================================ services: flowise: image: flowiseai/flowise:latest container_name: flowise restart: unless-stopped networks: - default ports: - ${FLOWISE_PORT}:${FLOWISE_PORT} # Default port is 5023 depends_on: redis: condition: service_healthy postgresql: condition: service_healthy entrypoint: /bin/sh -c "sleep 3; flowise start" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:${FLOWISE_PORT}/health"] interval: 30s timeout: 10s retries: 3 volumes: - $DOCKERDIR/appdata/flowise:/root/.flowise environment: - PORT=${FLOWISE_PORT} - FLOWISE_USERNAME=${FLOWISE_USERNAME} - FLOWISE_PASSWORD=${FLOWISE_PASSWORD} - LOG_LEVEL=info - DATABASE_TYPE=postgres - DATABASE_HOST=postgresql - DATABASE_PORT=${POSTGRESQL_PORT} - DATABASE_NAME=flowise - DATABASE_USER=${FLOWISE_POSTGRESQL_USERNAME} - DATABASE_PASSWORD=${FLOWISE_POSTGRESQL_PASSWORD} - REDIS_HOST=redis - REDIS_PORT=${REDIS_PORT} - APIKEY_PATH=/root/.flowise - SECRETKEY_PATH=/root/.flowise - LOG_PATH=/root/.flowise/logs - STORAGE_TYPE=local - BLOB_STORAGE_PATH=/root/.flowise/storage - DEBUG=false - CORS_ORIGINS=https://www.simplehomelab.com - IFRAME_ORIGINS=* # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/glances.yml ================================================ services: # Glances - System Information glances: image: nicolargo/glances:latest-full container_name: glances security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["monitoring", "all"] privileged: true # Only for VM networks: - default - socket_proxy ports: - "$GLANCES_PORT:61208" pid: host volumes: - $DOCKERDIR/appdata/glances/glances.conf:/glances/conf/glances.conf # Use this if you want to add a glances.conf file - $DOCKERDIR:/data/docker:ro - /media/block50:/data/block50:ro # - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security environment: # - GLANCES_OPT="-C /glances/conf/glances.conf --quiet --export influxdb" # - GLANCES_OPT="--export influxdb" - "GLANCES_OPT=-w" - DOCKER_HOST # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/grafana.yml ================================================ services: # Grafana - Graphical data visualization for InfluxDB data grafana: image: grafana/grafana:latest container_name: grafana security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$GRAFANA_PORT:3000" user: $PUID volumes: - $DOCKERDIR/appdata/grafana:/var/lib/grafana environment: GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource,grafana-worldmap-panel,grafana-piechart-panel,cloudflare-app" # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/influxdb.yml ================================================ services: # InfluxDB - Database for sensor data influxdb: image: influxdb:latest container_name: influxdb security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["dbs", "all"] networks: - default ports: - "$INFLUXDB_PORT:8086" volumes: - $DOCKERDIR/appdata/influxdb2/config:/etc/influxdb2 - $DOCKERDIR/appdata/influxdb2/db:/var/lib/influxdb2 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/mariadb.yml ================================================ services: mariadb: container_name: mariadb image: mariadb:latest security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default ports: - "$MARIADB_PORT:3306" volumes: - $DOCKERDIR/appdata/mariadb/data:/var/lib/mysql - $DOCKERDIR/appdata/mariadb/config:/etc/mysql environment: MARIADB_ROOT_PASSWORD_FILE: /run/secrets/mariadb_root_password secrets: - mariadb_root_password healthcheck: test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] start_period: 1m start_interval: 10s interval: 1m timeout: 5s retries: 3 ================================================ FILE: compose/ws-arm/n8n.yml ================================================ services: # n8n - Workflow Automation Tool n8n: image: docker.n8n.io/n8nio/n8n container_name: n8n security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default depends_on: postgresql: condition: service_healthy ports: - $N8N_PORT:5678 volumes: - $DOCKERDIR/appdata/n8n:/home/node/.n8n environment: - DB_TYPE=postgresdb - DB_POSTGRESDB_HOST=postgresql - DB_POSTGRESDB_PORT=5432 - DB_POSTGRESDB_DATABASE=n8n - DB_POSTGRESDB_USER=${N8N_POSTGRESQL_USERNAME} - DB_POSTGRESDB_PASSWORD=${N8N_POSTGRESQL_PASSWORD} - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true - N8N_EDITOR_BASE_URL=https://n8n.${DOMAINNAME_1} - WEBHOOK_URL=https://n8n.${DOMAINNAME_1} - N8N_HOST=n8n.${DOMAINNAME_1} - N8N_PROTOCOL=http - NODE_ENV=production - GENERIC_TIMEZONE=${TZ} # - N8N_EDITOR_BASE_URL - N8N_SECURE_COOKIE=false - N8N_EXECUTIONS_PROCESS=main - N8N_RUNNERS_ENABLED=true - N8N_DEFAULT_CORS=TRUE - N8N_CORS_ALLOW_ORIGIN=https://n8n.${DOMAINNAME_1} # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/nginx.yml ================================================ services: # Nginx - Web Server nginx: container_name: nginx image: nginx:1.27.3 # 1.27.1 Jan 31, 2025, 1.24 updated 9/25/2024 # 1.20 updated 4/19/2024 security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - t3_proxy # - default depends_on: php8: condition: service_started redis: condition: service_healthy volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - $DOCKERDIR/logs/ws-arm/nginx:/var/log/nginx - $DOCKERDIR/appdata/nginx:/etc/nginx - $DOCKERDIR/appdata/sites/simplehomelab/html:/var/www/html/simplehomelab - $DOCKERDIR/appdata/sites/khub/html:/var/www/html/khub - $DOCKERDIR/appdata/sites/dash/html:/var/www/html/dash - $DOCKERDIR/appdata/sites/deployrr/html:/var/www/html/deployrr - $DOCKERDIR/appdata/sites/deployarr/html:/var/www/html/deployarr # delete this line after 6/15/2025 secrets: - basic_auth_credentials labels: - "traefik.enable=true" # HTTP Routers SIMPLEHOMELAB (WordPress) Auth - "traefik.http.routers.nginx-simplehomelab-auth-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.nginx-simplehomelab-auth-rtr.rule=Host(`www.$DOMAINNAME_1`) && Path(`/wp-login.php`)" # crowdsec - "traefik.http.routers.nginx-simplehomelab-auth-rtr.priority=100" # HTTP Routers SIMPLEHOMELAB (WordPress) Bypass - "traefik.http.routers.nginx-simplehomelab-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.nginx-simplehomelab-rtr.rule=Host(`$DOMAINNAME_1`) || Host(`www.$DOMAINNAME_1`)" # no crowdsec - "traefik.http.routers.nginx-simplehomelab-rtr.priority=99" # HTTP Routers DASH (non-WordPress) - "traefik.http.routers.nginx-dash-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.nginx-dash-rtr.rule=Host(`dash.$DOMAINNAME_1`)" # HTTP Routers deployrr (non-WordPress) - "traefik.http.routers.nginx-deployrr-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.nginx-deployrr-rtr.rule=Host(`$DOMAINNAME_2`) || Host(`www.$DOMAINNAME_2`)" # HTTP Routers deployarr (non-WordPress) delete this line after 6/15/2025 - "traefik.http.routers.nginx-deployarr-rtr.entrypoints=websecure-internal,websecure-external" # delete this line after 6/15/2025 - "traefik.http.routers.nginx-deployarr-rtr.rule=Host(`$DOMAINNAME_4`) || Host(`www.$DOMAINNAME_4`)" # delete this line after 6/15/2025 # HTTP Routers KHUB (non-WordPress) - "traefik.http.routers.nginx-khub-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.nginx-khub-rtr.rule=Host(`$DOMAINNAME_3`) || Host(`www.$DOMAINNAME_3`)" # Redirect simplehomelab non-www to www middleware - "traefik.http.middlewares.simplehomelab-redirect.redirectregex.regex=^https?://$DOMAINNAME_1/(.*)" - "traefik.http.middlewares.simplehomelab-redirect.redirectregex.replacement=https://www.$DOMAINNAME_1/$${1}" - "traefik.http.middlewares.simplehomelab-redirect.redirectregex.permanent=true" # Redirect khub non-www to www middleware - "traefik.http.middlewares.khub-redirect.redirectregex.regex=^https?://$DOMAINNAME_3/(.*)" - "traefik.http.middlewares.khub-redirect.redirectregex.replacement=https://www.$DOMAINNAME_3/$${1}" - "traefik.http.middlewares.khub-redirect.redirectregex.permanent=true" # Middlewares - "traefik.http.routers.nginx-khub-rtr.middlewares=khub-redirect,chain-no-auth@file" - "traefik.http.routers.nginx-simplehomelab-rtr.middlewares=simplehomelab-redirect,chain-no-auth-wp@file" # no crowdsec - "traefik.http.routers.nginx-simplehomelab-auth-rtr.middlewares=simplehomelab-redirect,chain-no-auth-crowdsec-wp@file" # crowdsec - "traefik.http.routers.nginx-dash-rtr.middlewares=chain-oauth@file" - "traefik.http.routers.nginx-deployrr-rtr.middlewares=chain-no-auth@file" - "traefik.http.routers.nginx-deployarr-rtr.middlewares=chain-no-auth@file" # delete this line after 6/15/2025 # HTTP Services - "traefik.http.routers.nginx-simplehomelab-rtr.service=nginx-svc" - "traefik.http.routers.nginx-simplehomelab-auth-rtr.service=nginx-svc" - "traefik.http.routers.nginx-khub-rtr.service=nginx-svc" - "traefik.http.routers.nginx-dash-rtr.service=nginx-svc" - "traefik.http.routers.nginx-deployrr-rtr.service=nginx-svc" - "traefik.http.routers.nginx-deployarr-rtr.service=nginx-svc" # delete this line after 6/15/2025 - "traefik.http.services.nginx-svc.loadbalancer.server.port=80" ================================================ FILE: compose/ws-arm/oauth.yml ================================================ services: # Google OAuth - Single Sign On using OAuth 2.0 oauth: container_name: oauth image: thomseddon/traefik-forward-auth:2-arm # image: thomseddon/traefik-forward-auth:2.1-arm # Use this image with Raspberry Pi security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - t3_proxy # ports: # - "4181:4181" # Allow apps to bypass OAuth. Radarr example below will bypass OAuth if API key is present in the request (eg. from NZB360 mobile app). # While this is one way, the recommended way is to bypass authentication using Traefik labels shown in some of the apps later. # command: --rule.radarr.action=allow --rule.radarr.rule="Header(`X-Api-Key`, `$RADARR_API_KEY`)" # command: --rule.sabnzbd.action=allow --rule.sabnzbd.rule="HeaderRegexp(`X-Forwarded-Uri`, `$SABNZBD_API_KEY`)" environment: - CONFIG=/config - COOKIE_DOMAIN=$DOMAINNAME_1 - INSECURE_COOKIE=false - AUTH_HOST=oauth.$DOMAINNAME_1 - URL_PATH=/_oauth - LOG_LEVEL=info - LOG_FORMAT=text - LIFETIME=86400 # 1 day - DEFAULT_ACTION=auth - DEFAULT_PROVIDER=google secrets: - source: oauth_secrets target: /config labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.oauth-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.oauth-rtr.rule=Host(`oauth.$DOMAINNAME_1`)" # Middlewares - "traefik.http.routers.oauth-rtr.middlewares=chain-oauth@file" # HTTP Services - "traefik.http.routers.oauth-rtr.service=oauth-svc" - "traefik.http.services.oauth-svc.loadbalancer.server.port=4181" ================================================ FILE: compose/ws-arm/ollama.yml ================================================ services: # Ollama - A simple and lightweight web-based terminal ollama: image: ollama/ollama:latest container_name: ollama restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$OLLAMA_PORT:11434" volumes: - $DOCKERDIR/appdata/ollama:/root/.ollama # deploy: # resources: # reservations: # devices: # - driver: nvidia # device_ids: ['all'] # capabilities: [gpu] environment: - OLLAMA_KEEP_ALIVE=24h # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/open-webui.yml ================================================ services: # Open-WebUI - User-friendly AI Interface open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui restart: unless-stopped profiles: ["apps", "all"] networks: - default depends_on: - ollama ports: - "$OPENWEBUI_PORT:8080" environment: - OLLAMA_BASE_URL=http://10.0.0.71:$OLLAMA_PORT - WEBUI_SECRET_KEY=$OPENWEBUI_SECRET_KEY # - CORS_ALLOW_ORIGIN= - USER_AGENT=Open-WebUI volumes: - $DOCKERDIR/appdata/open-webui:/app/backend/data # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/openhands.yml ================================================ services: openhands: image: docker.all-hands.dev/all-hands-ai/openhands:0.26 container_name: openhands security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default environment: - SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.26-nikolaik - LOG_ALL_EVENTS=true volumes: - /var/run/docker.sock:/var/run/docker.sock - $DOCKERDIR/appdata/openhands:/.openhands-state - /home/anand:/data/anand ports: - "3010:3000" extra_hosts: - "host.docker.internal:host-gateway" pull_policy: if_not_present ================================================ FILE: compose/ws-arm/pgadmin.yml ================================================ services: # pgAdmin - PostgreSQL Administration pgadmin: image: dpage/pgadmin4 container_name: pgadmin restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$PGADMIN_PORT:80" volumes: - $DOCKERDIR/appdata/pgadmin:/var/lib/pgadmin environment: PGADMIN_DEFAULT_EMAIL: $PGADMIN_ADMIN_EMAIL PGADMIN_DEFAULT_PASSWORD: $PGADMIN_ADMIN_PASSWORD # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/php7.yml ================================================ services: # PHP - Hypertext Preprocessor # https://github.com/chialab/docker-php php7: container_name: php7 image: chialab/php:7.4-fpm security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - t3_proxy - default user: $PUID:$PGID # allows upgrading WP and plugins volumes: - $DOCKERDIR/appdata/sites/simplehomelab/html:/var/www/html/simplehomelab - $DOCKERDIR/appdata/php/php7:/usr/local/etc/php - $DOCKERDIR/appdata/sites/khub/html:/var/www/html/khub - $DOCKERDIR/appdata/sites/dash/html:/var/www/html/dash - $DOCKERDIR/appdata/sites/deployrr/html:/var/www/html/deployrr - $DOCKERDIR/appdata/sites/deployarr/html:/var/www/html/deployarr # delete this line after 6/15/2025 ================================================ FILE: compose/ws-arm/php8.yml ================================================ services: # PHP - Hypertext Preprocessor # https://github.com/chialab/docker-php php8: container_name: php8 image: chialab/php:8.4-fpm security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: default: # ipv4_address: 172.18.0.9 # IP of of WP Crowdsec plugin kept changing t3_proxy: user: $PUID:$PGID # allows upgrading WP and plugins volumes: - $DOCKERDIR/appdata/sites/simplehomelab/html:/var/www/html/simplehomelab - $DOCKERDIR/logs/ws-arm/php/php8:/var/log/php - $DOCKERDIR/appdata/php/php8:/usr/local/etc - $DOCKERDIR/appdata/sites/khub/html:/var/www/html/khub - $DOCKERDIR/appdata/sites/dash/html:/var/www/html/dash - $DOCKERDIR/appdata/sites/deployrr/html:/var/www/html/deployrr - $DOCKERDIR/appdata/sites/deployarr/html:/var/www/html/deployarr # delete this line after 6/15/2025 ================================================ FILE: compose/ws-arm/phpmyadmin.yml ================================================ services: # phpMyAdmin - Database management # Create a new user with admin privileges. Cannot login as MySQL root for some reason. phpmyadmin: image: lscr.io/linuxserver/phpmyadmin:latest container_name: phpmyadmin security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$PHPMYADMIN_PORT:80" environment: - PUID=$PUID - PGID=$PGID - TZ=$TZ - PMA_ARBITRARY=0 #optional - PMA_ABSOLUTE_URI=https://pma.$DOMAINNAME_1 #optional - PMA_HOST=mariadb - PMA_PORT=3306 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/portchecker-api.yml ================================================ services: # Port Checker API - Backend API for the Port Checker portchecker-api: image: ghcr.io/dsgnr/portcheckerio-api:latest container_name: api security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - $PORTCHECKERAPI_PORT:8000 healthcheck: test: ["CMD", "wget", "--spider", "-S", "http://10.0.0.71:$PORTCHECKERAPI_PORT/healthz"] interval: 30s timeout: 10s retries: 3 start_period: 5s environment: - ALLOW_PRIVATE=false # Prevent usage of private IP addresses # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/portchecker.yml ================================================ services: # Port Checker - Web UI for the Port Checker portchecker: image: ghcr.io/dsgnr/portcheckerio-web:latest container_name: portchecker security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - $PORTCHECKER_PORT:80 healthcheck: test: ["CMD", "wget", "--spider", "-S", "http://10.0.0.71:$PORTCHECKER_PORT"] interval: 30s timeout: 10s retries: 3 start_period: 5s depends_on: portchecker-api: condition: service_healthy environment: - DEFAULT_PORT=443 # Optional, Populates a default port value to be populataed in the in the UI input # - GOOGLE_ANALYTICS= # Optional, set for Google Analytics integration # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/postgresql-vector.yml ================================================ services: # pgVector - PostgreSQL with Vector Store postgresql-vector: container_name: postgresql-vector image: pgvector/pgvector:pg17 # PostgreSQL with pgvector support security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] healthcheck: test: ["CMD-SHELL", "pg_isready -d postgres -U $${POSTGRES_USER}"] start_period: 20s interval: 30s retries: 5 timeout: 5s networks: - default ports: - "$POSTGRESQLVECTOR_PORT:5432" volumes: - $DOCKERDIR/appdata/postgresql-vector/data:/var/lib/postgresql/data - $DOCKERDIR/appdata/postgresql-vector/schema.sql:/docker-entrypoint-initdb.d/schema.sql # only first time environment: - POSTGRES_DB=postgres # default database - POSTGRES_USER=$POSTGRES_USER # root user - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_default_password secrets: - postgres_default_password # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/postgresql.yml ================================================ services: # PostgreSQL - Database postgresql: container_name: postgresql image: postgres:16-alpine security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] healthcheck: test: ["CMD-SHELL", "pg_isready -d postgres -U $${POSTGRES_USER}"] start_period: 20s interval: 30s retries: 5 timeout: 5s networks: - default ports: - "$POSTGRESQL_PORT:5432" volumes: - $DOCKERDIR/appdata/postgresql:/var/lib/postgresql/data environment: # - POSTGRES_DB=$POSTGRES_DB - POSTGRES_USER=$POSTGRES_USER - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_default_password secrets: - postgres_default_password ================================================ FILE: compose/ws-arm/prometheus.yml ================================================ services: # Prometheus - Database for sensor data prometheus: image: prom/prometheus:latest container_name: prometheus security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["dbs", "all"] networks: - default ports: - "$PROMETHEUS_PORT:9090" volumes: - $DOCKERDIR/appdata/prometheus/config:/etc/prometheus - $DOCKERDIR/appdata/prometheus/data:/prometheus user: $PUID:$PGID command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' - '--web.console.libraries=/usr/share/prometheus/console_libraries' - '--web.console.templates=/usr/share/prometheus/consoles' - '--web.enable-lifecycle' - '--web.enable-admin-api' # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/qdrant.yml ================================================ services: # Qdrant - A vector database and search engine qdrant: image: qdrant/qdrant container_name: qdrant restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - $QDRANT_PORT:6333 # HTTP API and dashboard - 6334:6334 # gRPC API volumes: - $DOCKERDIR/appdata/qdrant:/qdrant/storage # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/redis-disk.yml ================================================ services: # Redis - Key-value Store redis: image: docker.io/library/redis:alpine container_name: redis security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] command: --save 60 1 --loglevel warning healthcheck: test: ["CMD-SHELL", "redis-cli ping | grep PONG"] start_period: 20s interval: 30s retries: 5 timeout: 3s networks: - default ports: - "$REDIS_PORT:6379" volumes: - $DOCKERDIR/appdata/redis:/data ================================================ FILE: compose/ws-arm/redis.yml ================================================ services: # Redis - Key-value Store # Add vm.overcommit_memory = 1 to /etc/sysctl.conf redis: image: docker.io/library/redis:alpine container_name: redis security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] command: redis-server --save "" --maxmemory 1gb --maxmemory-policy allkeys-lru healthcheck: test: ["CMD-SHELL", "redis-cli ping | grep PONG"] start_period: 20s interval: 30s retries: 5 timeout: 3s networks: - default ports: - "$REDIS_PORT:6379" deploy: resources: limits: memory: 1GB ================================================ FILE: compose/ws-arm/remmina.yml ================================================ services: # Remmina - Remote Desktop Client remmina: image: lscr.io/linuxserver/remmina:latest container_name: remmina security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default # DEVICES-GPU-PLACEHOLDER-DO-NOT-DELETE ports: - "$REMMINA_PORT:3000" # - "3001:3001" # HTTPS volumes: - $DOCKERDIR/appdata/remmina:/config environment: PUID: $PUID PGID: $PGID TZ: $TZ CUSTOM_USER: $REMMINA_HTTP_USER PASSWORD: $REMMINA_HTTP_PASSWORD # DRINODE: /dev/dri/renderD128 # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/socket-proxy.yml ================================================ services: # Docker Socket Proxy - Security Enchanced Proxy for Docker Socket socket-proxy: image: lscr.io/linuxserver/socket-proxy:latest container_name: socket-proxy security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: socket_proxy: ipv4_address: 192.168.91.254 # You can specify a static IP privileged: true # true for VM. False (default) for unprivileged LXC container. # ports: #- "2375:2375" volumes: - "/var/run/docker.sock:/var/run/docker.sock" read_only: true tmpfs: - /run environment: - LOG_LEVEL=warning # debug,info,notice,warning,err,crit,alert,emerg - ALLOW_START=1 # Portainer - ALLOW_STOP=1 # Portainer - ALLOW_RESTARTS=1 # Portainer ## Granted by Default - EVENTS=1 - PING=1 - VERSION=1 ## Revoked by Default # Security critical - AUTH=0 - SECRETS=0 - POST=1 # Watchtower # Not always needed - BUILD=0 - COMMIT=0 - CONFIGS=0 - CONTAINERS=1 # Traefik, portainer, etc. - DISTRIBUTION=0 - EXEC=0 - IMAGES=1 # Portainer - INFO=1 # Portainer - NETWORKS=1 # Portainer - NODES=0 - PLUGINS=0 - SERVICES=1 # Portainer - SESSION=0 - SWARM=0 - SYSTEM=0 - TASKS=1 # Portainer - VOLUMES=1 # Portainer - DISABLE_IPV6=0 #optional ================================================ FILE: compose/ws-arm/sshwifty.yml ================================================ services: # Sshwifty - Web SSH & Telnet Client sshwifty: image: niruix/sshwifty:latest container_name: sshwifty security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] network_mode: "host" user: "$PUID:$PGID" volumes: - $DOCKERDIR/appdata/sshwifty/conf.json:/sshwifty.conf.json environment: - TZ=$TZ - SSHWIFTY_LISTENPORT=$SSHWIFTY_PORT - SSHWIFTY_SHAREDKEY=$SSHWIFTY_PASSWORD - SSHWIFTY_CONFIG=/sshwifty.conf.json # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/traefik-access-log.yml ================================================ services: # Traefik Access Log (access.log) for Dozzle traefik-access-log: container_name: traefik-access-log image: alpine volumes: - $DOCKERDIR/logs/$HOSTNAME/traefik/access.log:/var/log/stream.log command: - tail - -f - /var/log/stream.log network_mode: none restart: unless-stopped ================================================ FILE: compose/ws-arm/traefik-error-log.yml ================================================ services: # Traefik Error Log (traefik.log) for Dozzle traefik-error-log: container_name: traefik-error-log image: alpine volumes: - $DOCKERDIR/logs/$HOSTNAME/traefik/traefik.log:/var/log/stream.log command: - tail - -f - /var/log/stream.log network_mode: none restart: unless-stopped ================================================ FILE: compose/ws-arm/traefik.yml ================================================ services: # Traefik 3 - Reverse Proxy traefik: container_name: traefik image: traefik:3.3 security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] depends_on: - socket-proxy networks: t3_proxy: ipv4_address: 192.168.90.254 # You can specify a static IP socket_proxy: command: # CLI arguments - --global.checkNewVersion=true - --global.sendAnonymousUsage=false - --entrypoints.web-external.address=:81 - --entrypoints.web-internal.address=:80 - --entrypoints.websecure-external.address=:444 - --entrypoints.websecure-internal.address=:443 - --entrypoints.traefik.address=:8080 - --entrypoints.web-external.http.redirections.entrypoint.to=websecure-external - --entrypoints.web-external.http.redirections.entrypoint.scheme=https - --entrypoints.web-external.http.redirections.entrypoint.permanent=true - --entrypoints.web-internal.http.redirections.entrypoint.to=websecure-internal - --entrypoints.web-internal.http.redirections.entrypoint.scheme=https - --entrypoints.web-internal.http.redirections.entrypoint.permanent=true - --api=true - --api.dashboard=true - --api.insecure=true # - --serversTransport.insecureSkipVerify=true # Allow these IPs to set the X-Forwarded-* headers - Cloudflare IPs: https://www.cloudflare.com/ips/ - --entrypoints.websecure-external.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS - --entrypoints.websecure-internal.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS - --log=true - --log.filePath=/logs/traefik.log - --log.level=INFO # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC - --accessLog=true - --accessLog.filePath=/logs/access.log - --accessLog.bufferingSize=100 # Configuring a buffer of 100 lines - --accessLog.filters.statusCodes=204-299,400-499,500-599 - --providers.docker=true # - --providers.docker.endpoint=unix:///var/run/docker.sock # Disable for Socket Proxy. Enable otherwise. - --providers.docker.endpoint=tcp://socket-proxy:2375 # Enable for Socket Proxy. Disable otherwise. - --providers.docker.exposedByDefault=false - --providers.docker.network=t3_proxy # - --providers.docker.swarmMode=false # Traefik v2 Swarm # - --providers.swarm.endpoint=tcp://127.0.0.1:2377 # Traefik v3 Swarm - --entrypoints.websecure-external.http.tls=true - --entrypoints.websecure-external.http.tls.options=tls-opts@file - --entrypoints.websecure-internal.http.tls=true - --entrypoints.websecure-internal.http.tls.options=tls-opts@file # Add dns-cloudflare as default certresolver for all services. Also enables TLS and no need to specify on individual services - --entrypoints.websecure-external.http.tls.certresolver=dns-cloudflare - --entrypoints.websecure-internal.http.tls.certresolver=dns-cloudflare - --entrypoints.websecure-external.http.tls.domains[0].main=$DOMAINNAME_1 - --entrypoints.websecure-external.http.tls.domains[0].sans=*.$DOMAINNAME_1 - --entrypoints.websecure-internal.http.tls.domains[0].main=$DOMAINNAME_1 - --entrypoints.websecure-internal.http.tls.domains[0].sans=*.$DOMAINNAME_1 - --entrypoints.websecure-external.http.tls.domains[1].main=$DOMAINNAME_2 - --entrypoints.websecure-external.http.tls.domains[1].sans=*.$DOMAINNAME_2 - --entrypoints.websecure-internal.http.tls.domains[1].main=$DOMAINNAME_2 - --entrypoints.websecure-internal.http.tls.domains[1].sans=*.$DOMAINNAME_2 - --entrypoints.websecure-external.http.tls.domains[2].main=$DOMAINNAME_3 - --entrypoints.websecure-external.http.tls.domains[2].sans=*.$DOMAINNAME_3 - --entrypoints.websecure-internal.http.tls.domains[2].main=$DOMAINNAME_3 - --entrypoints.websecure-internal.http.tls.domains[2].sans=*.$DOMAINNAME_3 - --entrypoints.websecure-external.http.tls.domains[3].main=$DOMAINNAME_4 # delete this line after 6/15/2025 - --entrypoints.websecure-external.http.tls.domains[3].sans=*.$DOMAINNAME_4 # delete this line after 6/15/2025 - --entrypoints.websecure-internal.http.tls.domains[3].main=$DOMAINNAME_4 # delete this line after 6/15/2025 - --entrypoints.websecure-internal.http.tls.domains[3].sans=*.$DOMAINNAME_4 # delete this line after 6/15/2025 # - DOMAINS-PLACEHOLDER-DO-NOT-DELETE - --providers.file.directory=/rules # Load dynamic configuration from one or more .toml or .yml files in a directory - --providers.file.watch=true # Only works on top level files in the rules folder # - --certificatesResolvers.dns-cloudflare.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory # LetsEncrypt Staging Server - uncomment when testing - --certificatesResolvers.dns-cloudflare.acme.storage=/acme.json - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.provider=cloudflare - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.resolvers=1.1.1.1:53,1.0.0.1:53 - --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.propagation.delaybeforechecks=120 # To delay DNS check and reduce LE hitrate #- --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.propagation.disablechecks=true # Not recommended # - --experimental.plugins.crowdsec-bouncer-traefik-plugin.modulename=github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin # - --experimental.plugins.crowdsec-bouncer-traefik-plugin.version=v1.3.5 # - METRICS-PLACEHOLDER-DO-NOT-DELETE ports: - "80:80" - "81:81" - "443:443" - "444:444" - "8080:8080" volumes: - $DOCKERDIR/appdata/traefik3/rules/$HOSTNAME:/rules # - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security - $DOCKERDIR/appdata/traefik3/acme/acme.json:/acme.json - $DOCKERDIR/logs/$HOSTNAME/traefik:/logs environment: - TZ=$TZ - CF_DNS_API_TOKEN_FILE=/run/secrets/cf_dns_api_token - HTPASSWD_FILE=/run/secrets/basic_auth_credentials # HTTP Basic Auth Credentials - DOMAINNAME_1 # Passing the domain name to traefik container to be able to use the variable in rules. - DOMAINNAME_2 - DOMAINNAME_3 # - TRAEFIK_AUTH_BYPASS_KEY secrets: - cf_dns_api_token - basic_auth_credentials labels: - "traefik.enable=true" # HTTP Routers - "traefik.http.routers.traefik-rtr.entrypoints=websecure-internal,websecure-external" - "traefik.http.routers.traefik-rtr.rule=Host(`traefik.$DOMAINNAME_1`) || Host(`traefik.$DOMAINNAME_2`) || Host(`traefik.$DOMAINNAME_3`)" # Services - API - "traefik.http.routers.traefik-rtr.service=api@internal" # Middlewares - "traefik.http.routers.traefik-rtr.middlewares=chain-oauth@file" # For Basic HTTP Authentication ================================================ FILE: compose/ws-arm/vscode.yml ================================================ services: # VSCode - VSCode Editing vscode: image: lscr.io/linuxserver/code-server:latest container_name: vscode security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["core", "all"] networks: - default ports: - "$VSCODE_PORT:8443" volumes: - $DOCKERDIR/appdata/vscode:/config - $USERDIR:/data/$PRIMARY_USERNAME environment: - TZ=$TZ - PUID=$PUID - PGID=$PGID # - DOCKER_HOST - PASSWORD=$VSCODE_HTTP_PASSWORD # - HASHED_PASSWORD= #optional # - SUDO_PASSWORD= password #optional # - SUDO_PASSWORD_HASH= #optional # - PROXY_DOMAIN= code-server.my.domain #optional # - DEFAULT_WORKSPACE=/config/data/User/Workspaces/Default.code-workspace #optional # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: compose/ws-arm/wikidocs.yml ================================================ services: # Wikidocs - Flat-file Markdown Wiki wikidocs: image: zavy86/wikidocs container_name: wikidocs security_opt: - no-new-privileges:true restart: unless-stopped profiles: ["apps", "all"] networks: - default ports: - "$WIKIDOCS_PORT:80" volumes: - '$DOCKERDIR/appdata/wikidocs:/datasets' environment: PUID: $PUID PGID: $PGID # DOCKER-LABELS-PLACEHOLDER ================================================ FILE: docker-compose-ds918.yml ================================================ version: "3.9" # NOTE (OCTOBER 15, 2025): At this time, my Synology setup has not been updated to UDMS 2025/Deployrr standards. It still follows my old way of doing things. ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 t2_proxy: name: t2_proxy driver: bridge ipam: config: - subnet: 192.168.90.0/24 dockervlan: name: dockervlan driver: macvlan driver_opts: parent: eth1 # using ifconfig ipam: config: - subnet: "192.168.1.0/24" ip_range: "192.168.1.25/32" gateway: "192.168.1.1" ########################### SECRETS secrets: basic_auth_credentials: file: $DOCKERDIR/secrets/basic_auth_credentials cf_dns_api_token: file: $DOCKERDIR/secrets/cf_dns_api_token traefik_forward_auth: file: $DOCKERDIR/secrets/traefik_forward_auth mysql_root_password: file: $DOCKERDIR/secrets/mysql_root_password plex_claim: file: $DOCKERDIR/secrets/plex_claim # Docker Compose v2.20 or greater required to use "include" include: ########################### SERVICES # PREFIX ds918 = Synology DS918+ NAS # HOSTNAME=ds918 - defined in .env # CORE - compose/$HOSTNAME/traefik.yml - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/oauth.yml - compose/$HOSTNAME/portainer.yml # NETWORK - compose/$HOSTNAME/zerotier.yml # - compose/$HOSTNAME/adguardhome.yml # MEDIA - compose/$HOSTNAME/plex.yml - compose/$HOSTNAME/plex-sync.yml - compose/$HOSTNAME/tdarr.yml # FILE MANAGEMENT # - compose/$HOSTNAME/rclone-gdrive.yml # - compose/$HOSTNAME/rclone-gcrypt.yml # - compose/$HOSTNAME/mergerfs.yml - compose/$HOSTNAME/syncthing.yml - compose/$HOSTNAME/vscode.yml # MONITORING - compose/$HOSTNAME/glances.yml # - compose/$HOSTNAME/qdirstat.yml # MAINTENANCE - compose/$HOSTNAME/docker-gc.yml - compose/$HOSTNAME/ddns-updater.yml # - compose/$HOSTNAME/certdumper.yml ================================================ FILE: docker-compose-hs.yml ================================================ ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 t3_proxy: name: t3_proxy driver: bridge ipam: config: - subnet: 192.168.90.0/24 # NETWORKS-PLACEHOLDER-DO-NOT-DELETE ########################### SECRETS secrets: basic_auth_credentials: file: $DOCKERDIR/secrets/basic_auth_credentials cf_dns_api_token: file: $DOCKERDIR/secrets/cf_dns_api_token oauth_secrets: file: $DOCKERDIR/secrets/oauth_secrets # SECRETS-PLACEHOLDER-DO-NOT-DELETE include: ########################### SERVICES # HOSTNAME defined in .env file # - compose/$HOSTNAME/custom.yml - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/deployrr-dashboard.yml - compose/$HOSTNAME/traefik.yml - compose/$HOSTNAME/oauth.yml - compose/$HOSTNAME/adminer.yml - compose/$HOSTNAME/bazarr.yml - compose/$HOSTNAME/cloud-commander.yml - compose/$HOSTNAME/cleanuparr.yml - compose/$HOSTNAME/docker-gc.yml - compose/$HOSTNAME/dozzle.yml - compose/$HOSTNAME/glances.yml - compose/$HOSTNAME/gluetun.yml - compose/$HOSTNAME/it-tools.yml - compose/$HOSTNAME/kometa.yml - compose/$HOSTNAME/lidarr.yml - compose/$HOSTNAME/maintainerr.yml - compose/$HOSTNAME/notifiarr.yml - compose/$HOSTNAME/prowlarr.yml - compose/$HOSTNAME/deunhealth.yml - compose/$HOSTNAME/qbittorrent-vpn.yml - compose/$HOSTNAME/radarr.yml - compose/$HOSTNAME/sabnzbd.yml - compose/$HOSTNAME/sonarr.yml - compose/$HOSTNAME/stirling-pdf.yml - compose/$HOSTNAME/uptime-kuma.yml - compose/$HOSTNAME/wud.yml - compose/$HOSTNAME/picard.yml - compose/$HOSTNAME/makemkv.yml - compose/$HOSTNAME/mkvtoolnix.yml - compose/$HOSTNAME/firefly.yml - compose/$HOSTNAME/firefly-importer.yml # SERVICE-PLACEHOLDER-DO-NOT-DELETE ================================================ FILE: docker-compose-mds.yml ================================================ ########################### ANAND'S ENVIRONMENT # Here are my 4 Docker Hosts: # - Home Server (hs) - Proxmox Unprivileged LXC with Ubuntu Server 22.04 # - Media / Database Server (mds) - Proxmox Unprivileged LXC with Ubuntu Server 22.04 # - Web Server (ws-arm) - Oracle Cloud Ampere A1 VPS with Ubuntu Server 24.04 (arm) # - Synology (ds918) - Synology DS918+ DSM 7.X ########################### THIS COMPOSE FILE # - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04 # - Built using Deployrr # - Docker version 28.3.2, build 578ccf6 # - Docker Compose version v2.38.2 ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 # NETWORKS-PLACEHOLDER-DO-NOT-DELETE ########################### SECRET secrets: plex_claim: file: $DOCKERDIR/secrets/plex_claim mysql_root_password: file: $DOCKERDIR/secrets/mysql_root_password pgsql_teslamate_passwd: file: $DOCKERDIR/secrets/pgsql_teslamate_passwd # SECRETS-PLACEHOLDER-DO-NOT-DELETE include: ########################### SERVICES # HOSTNAME defined in .env file - compose/$HOSTNAME/plex.yml - compose/$HOSTNAME/airsonic-advanced.yml - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/docker-gc.yml - compose/$HOSTNAME/influxdb.yml - compose/$HOSTNAME/mariadb.yml - compose/$HOSTNAME/jellyfin.yml # # - compose/$HOSTNAME/plex-image-cleanup.yml # # - compose/$HOSTNAME/plex-meta-manager.yml - compose/$HOSTNAME/tautulli.yml - compose/$HOSTNAME/prometheus.yml # - compose/$HOSTNAME/pgsql-teslamate.yml # - compose/$HOSTNAME/node-exporter.yml # - compose/$HOSTNAME/mosquitto.yml # SERVICE-PLACEHOLDER-DO-NOT-DELETE ================================================ FILE: docker-compose-ws-arm.yml ================================================ ########################### NETWORKS # You may customize the network subnets (192.168.x.0/24) below as you please. networks: default: driver: bridge socket_proxy: name: socket_proxy driver: bridge ipam: config: - subnet: 192.168.91.0/24 t3_proxy: name: t3_proxy driver: bridge ipam: config: - subnet: 192.168.90.0/24 cf_tunnel: name: cf_tunnel driver: bridge ipam: config: - subnet: 192.168.92.0/24 # NETWORKS-PLACEHOLDER-DO-NOT-DELETE ########################### SECRETS secrets: basic_auth_credentials: file: $DOCKERDIR/secrets/basic_auth_credentials cf_dns_api_token: file: $DOCKERDIR/secrets/cf_dns_api_token oauth_secrets: file: $DOCKERDIR/secrets/oauth_secrets postgres_default_password: file: $DOCKERDIR/secrets/postgres_default_password mariadb_root_password: file: $DOCKERDIR/secrets/mariadb_root_password # SECRETS-PLACEHOLDER-DO-NOT-DELETE include: ########################### SERVICES # HOSTNAME defined in .env file # - compose/$HOSTNAME/custom.yml - compose/$HOSTNAME/socket-proxy.yml - compose/$HOSTNAME/deployrr-dashboard.yml - compose/$HOSTNAME/traefik.yml - compose/$HOSTNAME/oauth.yml - compose/$HOSTNAME/vscode.yml - compose/$HOSTNAME/dozzle.yml - compose/$HOSTNAME/grafana.yml - compose/$HOSTNAME/phpmyadmin.yml - compose/$HOSTNAME/redis.yml - compose/$HOSTNAME/traefik-access-log.yml - compose/$HOSTNAME/traefik-error-log.yml # - compose/$HOSTNAME/sshwifty.yml - compose/$HOSTNAME/remmina.yml # - compose/$HOSTNAME/influxdb.yml # - compose/$HOSTNAME/prometheus.yml - compose/$HOSTNAME/adminer.yml - compose/$HOSTNAME/crowdsec.yml # - compose/$HOSTNAME/php7.yml - compose/$HOSTNAME/php8.yml - compose/$HOSTNAME/cloudflare-bouncer.yml - compose/$HOSTNAME/glances.yml - compose/$HOSTNAME/mariadb.yml - compose/$HOSTNAME/nginx.yml - compose/$HOSTNAME/portchecker-api.yml - compose/$HOSTNAME/portchecker.yml - compose/$HOSTNAME/crawl4ai.yml - compose/$HOSTNAME/postgresql.yml # - compose/$HOSTNAME/pgadmin.yml - compose/$HOSTNAME/postgresql-vector.yml - compose/$HOSTNAME/n8n.yml # - compose/$HOSTNAME/ollama.yml - compose/$HOSTNAME/qdrant.yml # - compose/$HOSTNAME/openhands.yml - compose/$HOSTNAME/wikidocs.yml # - compose/$HOSTNAME/open-webui.yml - compose/$HOSTNAME/chromium.yml - compose/$HOSTNAME/flowise.yml - compose/$HOSTNAME/dockflare.yml # SERVICE-PLACEHOLDER-DO-NOT-DELETE ================================================ FILE: scripts/ds918/change_perms_plex_hw.sh.example ================================================ #!/bin/bash # Change permissions of GPU so Plex on Docker can do Hardware transcoding. chmod 777 /dev/dri* ================================================ FILE: scripts/ds918/increase_inotify_limits_syncthing.sh.example ================================================ #!/bin/bash # Synology default is 8192. This is very low and Synthing warns to "increase inotify limits". # Synology keeps overwriting custom values with default values. # Run this script as root at boot and periodically through Task Scheduler on DSM # echo "fs.inotify.max_user_watches=204800" | tee -a /etc/sysctl.conf echo 524288 | tee /proc/sys/fs/inotify/max_user_watches ================================================ FILE: scripts/ds918/switch_ports.sh.example ================================================ #! /bin/bash # Save this script in one of your shares and schedule it to run as root at boot # through Control Panel -> Task Scheduler # DSM upgrades will reset these changes, which is why we schedule them to happen automatically # NGINX Ports - CUSTOMIZE THIS # Several Synology services use port 80 and 443 via Nginx. This conflicts with Traefik, Nginx Proxy Manager, Caddy, etc. # This script reconfigures Nginx to use non-default ports, leaving ports 80 and 443 free for reverse proxy. DEFAULT_HTTP_PORT=80 # typically left as-is, 80. DEFAULT_HTTPS_PORT=443 # typically left as-is, 443. NEW_HTTP_PORT=81 NEW_HTTPS_PORT=444 ################ DO NOT EDIT BEYOND THIS LINE ########################### sed -i "s/^\([ \t]\+listen[ \t]\+[]:[]*\)$DEFAULT_HTTP_PORT\([^0-9]\)/\1$NEW_HTTP_PORT\2/" /usr/syno/share/nginx/*.mustache sed -i "s/^\([ \t]\+listen[ \t]\+[]:[]*\)$DEFAULT_HTTPS_PORT\([^0-9]\)/\1$NEW_HTTPS_PORT\2/" /usr/syno/share/nginx/*.mustache synosystemctl restart nginx ================================================ FILE: scripts/hs/check-mounts.sh.example ================================================ #!/bin/bash # This script checks for all required drive mounts, GDrive token validity, and rclone/mergerfs service status. If any issues are found, it shuts down any containers (media-service.txt) dependent on these mounted drives to avoid any data issues and sends an email notification. # A mail transfer agent such as nullmailer, ssmtp, or postfix must be configured correctly for emails to work # CHECKING FOR DRIVE MOUNTS rclone_drive="/media/drive" rclone_crypt="/media/crypt" hdd1="/media/hdd1" merge_media="/media/hdd1/data/media" num_drives=4 mounted=0 notmounted="" if mount | grep ${rclone_drive} > /dev/null; then mounted=$((mounted+1)) # echo -e ${rclone_drive}' mounted.' else # echo ${rclone_drive}' not mounted.' notmounted="${notmounted} ${rclone_drive}\n" fi if mount | grep ${rclone_crypt} > /dev/null; then mounted=$((mounted+1)) # echo -e ${rclone_crypt}' mounted.' else # echo -e ${rclone_crypt}' not mounted.' notmounted="${notmounted} ${rclone_crypt}\n" fi if mount | grep ${hdd1} > /dev/null; then mounted=$((mounted+1)) # echo -e ${hdd1}' mounted.' else # echo -e ${hdd1}' not mounted.' notmounted="${notmounted} ${hdd1}\n" fi if mount | grep ${merge_media} > /dev/null; then mounted=$((mounted+1)) # echo -e ${merge_media}' mounted.' else # echo -e ${merge_media}' not mounted.' notmounted="${notmounted} ${merge_media}\n" fi #echo $mounted #echo -e ${notmounted} if [[ "$mounted" -ne "$num_drives" ]]; then echo -e "These drives are not mounted properly:\n\n${notmounted}\n\nShutting down media containers." | mail -s "[DVM ERROR] Some drives not mounted" info@example.com -aFrom:DockerVM@example.com sudo docker stop $(cat /home/USER/docker/scripts/media-services.txt) #else #echo "All drives mounted." | mail -s "All drives mounted." info@example.com -aFrom:DockerVM@example.com fi ######## CHECKING FOR EXPIRED TOKENS TOKEN_ERROR="expired or revoked" RCLONE_LOGS="/home/USER/docker/appdata/rclone/logs/*.log" logfiles="$(egrep -l "$TOKEN_ERROR" $RCLONE_LOGS)" if [[ ! -z "$logfiles" ]]; then echo -e "These rclone log files have token expired/revoked error:\n\n${logfiles}\n\nShutting down media containers." | mail -s "[DVM ERROR] Token expired or revoked" info@example.com -aFrom:DockerVM@example.com sudo docker stop $(cat /home/USER/docker/scripts/media-services.txt) #else #echo "Rclone token still appears to be valid." | mail -s "No error in Rclone logs." info@example.com -aFrom:DockerVM@example.com fi ######## CHECKING RCLONE and MERGERFS SERVICE ERRORS # MergerFS merge_media_status="$(systemctl is-active merge-media.service)" if [[ ! "$merge_media_status" == "active" ]]; then echo -e "merge-media.service is reporting an issue:\n\n${merge_media_status}\n\nShutting down media containers." | mail -s "[DVM ERROR] merge-media.service not running" info@example.com -aFrom:DockerVM@example.com sudo docker stop $(cat /home/USER/docker/scripts/media-services.txt) #else # echo "Active" fi # Rclone Google Drive rclone_drive_status="$(systemctl is-active rclone-drive.service)" if [[ ! "$rclone_drive_status" == "active" ]]; then echo -e "rclone-drive.service is reporting an issue:\n\n${rclone_drive_status}\n\nShutting down media containers." | mail -s "[DVM ERROR] rclone-drive.service not running" info@example.com -aFrom:DockerVM@example.com sudo docker stop $(cat /home/USER/docker/scripts/media-services.txt) #else # echo "Active" fi # Rclone Google Drive Encrypted rclone_crypt_status="$(systemctl is-active rclone-crypt.service)" if [[ ! "$rclone_crypt_status" == "active" ]]; then echo -e "rclone-crypt.service is reporting an issue:\n\n${rclone_crypt_status}\n\nShutting down media containers." | mail -s "[DVM ERROR] rclone-crypt.service not running" info@example.com -aFrom:DockerVM@example.com sudo docker stop $(cat /home/USER/docker/scripts/media-services.txt) #else # echo "Active" fi ================================================ FILE: scripts/hs/start-media-after-boot.sh.example ================================================ #!/bin/bash # All containers (profile "media") that access rclone/MergerFS mounts set to NOT restart automatically at boot time. # This is because, rclone can take a few seconds/minutes to mount remote drives. # This script checks the required mounts every 5 seconds and as soon as required drives are mounted, it starts the "media" containers. # CHECKING FOR DRIVE MOUNTS num_drives=1 # number of mounts to check # Drive 1 drive1="/media/rclone/ds918" drive1_seconds=0 drive1_status=0 # Drive 2 - not used # drive2="/media/ssd/media-server/media" # drive2_seconds=0 # drive2_status=0 # Variables set in /etc/environment - PRIMARY_DOMAIN and HOSTNAME source /etc/environment email_to="info@$PRIMARY_DOMAIN" email_from="$HOSTNAME@$PRIMARY_DOMAIN" mounted=0 rounds=0 while [[ "$mounted" -ne "$num_drives" ]]; do # echo -e "round $rounds\n" # for testing if [[ "$(systemctl is-active docker)" == "active" ]]; then # Drive 1 if mount | grep ${drive1} > /dev/null; then if [[ "$drive1_status" -eq 0 ]]; then mounted=$((mounted+1)) drive1_seconds=$((rounds * 5)) drive1_status=1 fi fi # Drive 2 # if mount | grep ${drive2} > /dev/null; then # if [[ "$drive2_status" -eq 0 ]]; then # mounted=$((mounted+1)) # drive2_seconds=$((rounds * 5)) # drive2_status=1 # fi # fi # Timeout if mounting is not successful after 15 min (180x5) if [[ $rounds -eq 180 ]]; then break fi sleep 5 rounds=$((rounds + 1)) fi done seconds=$((rounds * 5)) # echo "seconds $seconds" # for testing # Send an email - SMTP relay required (e.g. ssmtp) if [[ "$mounted" -eq "$num_drives" ]]; then # echo "equal" echo -e "### `date +'%Y-%m-%d %H:%M'` ### \n\n All drives mounted: \n\n - $drive1 in $drive1_seconds\n\nStarting media containers." | mail -s "[$HOSTNAME] Starting media containers" ${email_to} -aFrom:${email_from} sudo docker compose --profile media -f /home/$PRIMARY_USER/docker/docker-compose-$HOSTNAME.yml up -d else # echo "not equal" echo -e "### `date +'%Y-%m-%d %H:%M'` ### \n\n Not all drives mounted after reboot: \n\n - $drive1 is $drive1_status\n\nTimed out after $seconds seconds." | mail -s "[$HOSTNAME] Mounted not equal to $num_drives." ${email_to} -aFrom:${email_from} sudo docker compose --profile media -f /home/$PRIMARY_USER/docker/docker-compose-$HOSTNAME.yml down fi ================================================ FILE: scripts/systemd/rclone-ds918.service.example ================================================ [Unit] Description=Rclone NAS SMB Wants=network-online.target After=network-online.target [Service] # https://forum.rclone.org/t/some-help-with-rclone-mount-for-plex-buffering-everywhere/18201/23 # https://forum.rclone.org/t/unable-to-start-rclone-service/32149/7 Type=notify ExecStart=/usr/bin/rclone mount ds918: /media/rclone/ds918 \ #--read-only \ --config /home/anand/docker/appdata/rclone/rclone.conf \ --log-file=/home/anand/docker/logs/hs/rclone-ds918.log \ --log-level NOTICE \ --allow-other \ --no-modtime \ --umask 002 \ --user-agent home-server \ --dir-cache-time 24h \ --buffer-size 128M \ --vfs-fast-fingerprint \ --vfs-cache-mode full \ --vfs-cache-max-age 336h \ --cache-dir=/media/ssd/hs/cache/ds918 \ --vfs-cache-max-size 896G \ --vfs-read-chunk-size-limit 10G \ --vfs-refresh \ --rc \ --rc-web-gui \ --rc-addr :5572 \ --rc-web-gui-no-open-browser \ --rc-no-auth \ #--rc-user=$RCLONE_WEBUI_USER \ #--rc-pass=$RCLONE_WEBUI_PASS \ --use-mmap ExecStop=/bin/fusermount -uz /media/rclone/ds918 ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr :5572 _async=true Restart=on-abort User=anand Group=anand KillMode=mixed RestartSec=5 [Install] WantedBy=default.target ================================================ FILE: secrets_example/basic_auth_credentials ================================================ users:hashed-password ================================================ FILE: secrets_example/cf_dns_api_token ================================================ h_P8lkjsdADDjf_plsadlksjdfD894SXsdlkjdfikwj52 ================================================ FILE: secrets_example/traefik_forward_auth ================================================ ### EXAMPLE OF REQUIRED FILE TO ALLOW DOCKER SECRETS TO FUNCTION WITH GOOGLE OAUTH ### FOR FURTHER DETAILS SEE https://github.com/thomseddon/traefik-forward-auth # Guide: https://www.smarthomebeginner.com/google-oauth-with-traefik-2-docker/ providers.google.client-id=yourGOOGLEclientID providers.google.client-secret=yourCLIENTsecret secret=yourOAUTHsecret whitelist=yourEMAILaddress1 whitelist=yourEMAILaddress2 ================================================ FILE: shared/config/udms_bash_aliases ================================================ # Shell Prompt Configuration export PS1="[\[\e[32m\]\u\[\e[m\]@\[\e[33m\]\h\[\e[m\]: \\$\[\e[36m\]\w\[\e[m\]]\\$ " # Colorized prompt showing user@host: path$ # Load Configuration if [[ -f "$DEPLOYRR_CONFIG/deployrr_constants" ]]; then source <(sudo cat $DEPLOYRR_CONFIG/deployrr_constants) # Load Deployrr configuration if exists else DOCKER_FOLDER=$HOME/docker # Default Docker folder if no config exists fi #------------------------------------------------------------------------------ # DOCKER MANAGEMENT #------------------------------------------------------------------------------ # Basic Docker Commands alias dps='sudo docker ps -a' # List all containers (running and stopped) alias dpss='sudo docker ps -a --format "table {{.Names}}\t{{.State}}\t{{.Status}}\t{{.Image}}" | (sed -u 1q; sort)' # List containers in a nicely formatted table alias ddf='sudo docker system df' # Show Docker disk usage for containers, images, and volumes alias dexec='sudo docker exec -ti' # Execute command in running container (interactive mode) # Docker Logs and Monitoring alias dlogs='sudo docker logs -tf --tail="50" ' # Show last 50 lines of container logs and follow output alias dlogsize='sudo du -ch $(sudo docker inspect --format='{{.LogPath}}' $(sudo docker ps -qa)) | sort -h' # Display size of container log files alias dips="sudo docker ps -q | xargs -n 1 sudo docker inspect -f '{{.Name}}%tab%{{range .NetworkSettings.Networks}}{{.IPAddress}}%tab%{{end}}' | sed 's#%tab%#\t#g' | sed 's#/##g' | sort | column -t -N NAME,IP\(s\) -o $'\t'" # List IP addresses of all containers # Docker Container Management alias dstop='sudo docker stop' # Stop a specific container alias dstopall='sudo docker stop $(sudo docker ps -aq)' # Stop all running containers alias drm='sudo docker rm $(sudo docker ps -a -q)' # Remove specified containers # Docker Cleanup and Maintenance alias dprunevol='sudo docker volume prune' # Remove all unused volumes alias dprunesys='sudo docker system prune -a' # Remove all unused containers, networks, images (both dangling and unreferenced) alias ddelimages='sudo docker rmi $(sudo docker images -q)' # Delete all Docker images alias derase='dstopcont ; drmcont ; ddelimages ; dvolprune ; dsysprune' # Complete cleanup: stop and remove all containers, images, volumes alias dprune='ddelimages ; dprunevol ; dprunesys' # Safe cleanup of unused resources #------------------------------------------------------------------------------ # DOCKER COMPOSE & TRAEFIK #------------------------------------------------------------------------------ # Docker Compose Basic Commands alias dcrun='sudo docker compose --profile all -f $DOCKER_FOLDER/docker-compose-$HOSTNAME.yml' # Base command for docker-compose operations alias dcup='dcrun up -d --build --remove-orphans' # Start all services, rebuild if needed, remove orphaned containers alias dcdown='dcrun down --remove-orphans' # Stop and remove all containers, including orphaned ones alias dcstop='dcrun stop' # Stop services without removing containers alias dcstart='dcrun start' # Start existing containers alias dcrestart='dcrun restart' # Restart services alias dcrec='dcrun up -d --force-recreate --remove-orphans' # Force recreate containers even if no changes alias dcpull='dcrun --parallel 1 pull' # Pull latest versions of all service images alias dclogs='dcrun logs -tf --tail="50"' # Show and follow last 50 lines of service logs # Traefik Specific alias traefiklogs='tail -f $DOCKER_FOLDER/logs/$HOSTNAME/traefik/traefik.log' # Monitor Traefik reverse proxy logs #------------------------------------------------------------------------------ # CROWDSEC SECURITY #------------------------------------------------------------------------------ # CrowdSec CLI Commands alias cscli='dcrun exec -t crowdsec cscli' # Execute CrowdSec CLI commands alias csdecisions='cscli decisions list' # List current IP ban decisions alias csalerts='cscli alerts list' # List security alerts alias csinspect='cscli alerts inspect -d' # Detailed inspection of specific alerts alias cshubs='cscli hub list' # List available CrowdSec hubs alias csparsers='cscli parsers list' # List installed parsers alias cscollections='cscli collections list' # List installed collections alias cshubupdate='cscli hub update' # Update CrowdSec hub index alias cshubupgrade='cscli hub upgrade' # Upgrade all hub items alias csmetrics='cscli metrics' # Show CrowdSec metrics alias csmachines='cscli machines list' # List CrowdSec machines alias csbouncers='cscli bouncers list' # List registered bouncers # CrowdSec Service Management alias csfbstatus='sudo systemctl status crowdsec-firewall-bouncer.service' # Check firewall bouncer status alias csfbstart='sudo systemctl start crowdsec-firewall-bouncer.service' # Start firewall bouncer alias csfbstop='sudo systemctl stop crowdsec-firewall-bouncer.service' # Stop firewall bouncer alias csfbrestart='sudo systemctl restart crowdsec-firewall-bouncer.service' # Restart firewall bouncer alias csbrestart='dcrec2 traefik-bouncer ; csfbrestart' # Restart both Traefik bouncer and firewall bouncer # CrowdSec Logs alias tailkern='sudo tail -f /var/log/kern.log' # Monitor kernel logs alias tailauth='sudo tail -f /var/log/auth.log' # Monitor authentication logs alias tailcsfb='sudo tail -f /var/log/crowdsec-firewall-bouncer.log' # Monitor firewall bouncer logs #------------------------------------------------------------------------------ # SYSTEM ADMINISTRATION #------------------------------------------------------------------------------ # File System Navigation alias cd..='cd ..' # Fix common typo of cd.. instead of cd .. alias ..='cd ..' # Move up one directory level alias ...='cd ../..' # Move up two directory levels alias .3='cd ../../..' # Move up three directory levels alias .4='cd ../../../..' # Move up four directory levels alias .5='cd ../../../../..' # Move up five directory levels alias cdd='cd $DOCKER_FOLDER' # Navigate to the Docker folder alias up='cd ..' # Alternative way to move up one directory alias back='cd -' # Return to previous directory (toggles between last two directories) alias home='cd ~' # Navigate to home directory # File Listing and Management alias ls='ls -F --color=auto --group-directories-first' # Colorized listing with directories first alias ll='ls -alh --color=auto --group-directories-first' # Detailed list, human-readable sizes alias lt='ls --human-readable --color=auto --size -1 -S --classify' # List files by size alias lsr='ls --color=auto -t -1' # List files by modification time alias mkdir='mkdir -pv' # Create parent directories as needed, verbose output alias cp='cp -iv' # Interactive and verbose copy alias mv='mv -iv' # Interactive and verbose move # Storage and Disk Management alias fdisk='sudo fdisk -l' # List disk partitions alias uuid='sudo vol_id -u' # Show UUID of volumes alias mounts='mount | column -t' # Show mounted filesystems in clean output alias dirsize='sudo du -hx --max-depth=1' # Show directory sizes at depth 1 alias dirusage='du -ch | grep total' # Show total disk usage in current directory alias diskusage='df -hl --total | grep total' # Show total disk usage of system alias partusage='df -hlT --exclude-type=tmpfs --exclude-type=devtmpfs' # Show partition usage excluding virtual filesystems alias space='du -sh * | sort -hr' # List directory contents sorted by size alias disks='lsblk -o NAME,SIZE,TYPE,MOUNTPOINT' # List block devices with details alias space-usage='df -h -x squashfs -x tmpfs -x devtmpfs' # Show disk space usage excluding virtual filesystems alias inode-usage='df -ih' # Show inode usage on mounted filesystems # File Analysis alias biggest='find . -type f -printf "%s %p\n" | sort -nr | head -10' # Show 10 largest files in current directory alias recent='find . -type f -printf "%TY-%Tm-%Td %TT %p\n" | sort -r | head -10' # Show 10 most recently modified files alias tree='tree -C' # Show directory structure in tree format with colors #------------------------------------------------------------------------------ # SYSTEM MONITORING & PERFORMANCE #------------------------------------------------------------------------------ # Memory and CPU Monitoring alias meminfo='free -m -l -t' # Display memory usage in megabytes alias psmem='ps auxf | sort -nr -k 4' # List processes by memory usage alias psmem10='ps auxf | sort -nr -k 4 | head -10' # Show top 10 memory-consuming processes alias pscpu='ps auxf | sort -nr -k 3' # List processes by CPU usage alias pscpu10='ps auxf | sort -nr -k 3 | head -10' # Show top 10 CPU-consuming processes alias cpuinfo='lscpu' # Show CPU information alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log' # Show GPU memory information alias free='free -h' # Show memory usage in human-readable format #------------------------------------------------------------------------------ # NETWORKING #------------------------------------------------------------------------------ # Network Monitoring and Analysis alias ports='netstat -tulanp' # Show all active ports and their processes alias showlistening='lsof -i -n | egrep "COMMAND|LISTEN"' # Show listening ports and their processes alias ping='ping -c 5' # Ping with 5 packets only alias myip='curl -s ifconfig.me' # Show external IP address alias localip='hostname -I | awk "{print \$1}"' # Show primary local IP address alias header='curl -I' # Show HTTP headers of a website alias dnscheck='dig +short' # Quick DNS lookup alias connections='netstat -nat | awk "{print \$6}" | sort | uniq -c | sort -n' # Count active network connections by state alias bandwidth='nethogs' # Monitor bandwidth usage by process #------------------------------------------------------------------------------ # PACKAGE MANAGEMENT #------------------------------------------------------------------------------ # APT Package Management alias update='sudo apt-get update' # Update package index alias upgrade='sudo apt-get update && sudo apt-get upgrade' # Update package index and upgrade all packages alias install='sudo apt-get install' # Install a package alias finstall='sudo apt-get -f install' # Fix broken package installations alias rinstall='sudo apt-get -f install --reinstall' # Reinstall a package alias uninstall='sudo apt-get remove' # Remove a package alias search='sudo apt-cache search' # Search for a package alias addkey='sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com' # Add a repository key #------------------------------------------------------------------------------ # SYSTEM SERVICES #------------------------------------------------------------------------------ # Systemd Service Management alias ctlreload='sudo systemctl daemon-reload' # Reload systemd manager configuration alias ctlstart='sudo systemctl start' # Start a systemd service alias ctlstop='sudo systemctl stop' # Stop a systemd service alias ctlrestart='sudo systemctl restart' # Restart a systemd service alias ctlstatus='sudo systemctl status' # Check status of a systemd service alias ctlenable='sudo systemctl enable' # Enable a service to start at boot alias ctldisable='sudo systemctl disable' # Disable a service from starting at boot alias ctlactive='sudo systemctl is-active' # Check if a service is currently active # UFW Firewall Management alias ufwenable='sudo ufw enable' # Enable the UFW firewall alias ufwdisable='sudo ufw disable' # Disable the UFW firewall alias ufwallow='sudo ufw allow' # Allow a port through UFW alias ufwlimit='sudo ufw limit' # Limit connections to a port alias ufwlist='sudo ufw status numbered' # List UFW rules with numbers alias ufwdelete='sudo ufw delete' # Delete a UFW rule alias ufwreload='sudo ufw reload' # Reload UFW rules #------------------------------------------------------------------------------ # SYNOLOGY DSM #------------------------------------------------------------------------------ # Synology Service Management alias servicelist='sudo synoservicecfg --list' # List all Synology services (DSM 6.x) alias servicestatus='sudo synosystemctl status' # Check status of Synology service alias servicestop='sudo synosystemctl stop' # Stop a Synology service alias servicehstop='sudo synoservicecfg --hard-stop' # Hard stop a service (DSM 6.x) alias servicestart='sudo synosystemctl start' # Start a Synology service alias servicehstart='sudo synoservicecfg --hard-start' # Hard start a service (DSM 6.x) alias servicerestart='sudo synosystemctl restart' # Restart a Synology service alias restartdocker='sudo synosystemctl restart pkgctl-Docker' # Restart Docker package #------------------------------------------------------------------------------ # FILE COMPRESSION #------------------------------------------------------------------------------ # Archive Management alias untargz='tar --same-owner -zxvf' # Extract .tar.gz archive preserving ownership alias untarbz='tar --same-owner -xjvf' # Extract .tar.bz2 archive preserving ownership alias lstargz='tar -ztvf' # List contents of .tar.gz archive alias lstarbz='tar -jtvf' # List contents of .tar.bz2 archive alias targz='tar -zcvf' # Create .tar.gz archive alias tarbz='tar -cjvf' # Create .tar.bz2 archive #------------------------------------------------------------------------------ # CONFIGURATION #------------------------------------------------------------------------------ # Quick Configuration Edits alias reload='. ~/.bashrc' # Reload bash configuration alias aliases='nano ~/.bash_aliases' # Edit aliases file alias hosts='sudo nano /etc/hosts' # Edit hosts file alias bashrc='nano ~/.bashrc' # Edit bash configuration file