From a39ea3d0d750e27d24ce33849e0f2d535add187f Mon Sep 17 00:00:00 2001 From: Jean Froment Date: Thu, 24 Feb 2022 22:09:30 +0100 Subject: [PATCH] Add Heimdall --- README.md | 1 + services.conf.sample | 1 + services/heimdall.yaml | 21 +++++++++++++++++++++ tools/wip/clean-fs.sh | 2 +- 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 services/heimdall.yaml diff --git a/README.md b/README.md index 05a0032..534f2b1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ seedbox and personal media server. | Portainer | portainer.yourdomain.com | [portainer/portainer](https://hub.docker.com/r/portainer/portainer) | *latest* | Container management| | Netdata | netdata.yourdomain.com | [netdata/netdata](https://hub.docker.com/r/netdata/netdata) | *latest* | Server monitoring | | Duplicati | duplicati.yourdomain.com | [linuxserver/duplicati](https://hub.docker.com/r/linuxserver/duplicati)| *latest* | Backups | +| Heimdall | yourdomain.com | [linuxserver/heimdall](https://hub.docker.com/r/linuxserver/heimdall)| *latest* | Main dashboard | | Gluetun | - | [qmcgaw/gluetun](https://hub.docker.com/r/qmcgaw/gluetun)| *latest* | VPN client (still WIP...) | The front-end reverse proxy (Traefik - **check the next section if you have already the seedbox with Traefik v1**) routes based on the lowest level subdomain diff --git a/services.conf.sample b/services.conf.sample index 5dd2fdb..a0983a9 100644 --- a/services.conf.sample +++ b/services.conf.sample @@ -24,4 +24,5 @@ portainer: enable netdata: enable duplicati: enable syncthing: disable +heimdall: disable gluetun: disable \ No newline at end of file diff --git a/services/heimdall.yaml b/services/heimdall.yaml new file mode 100644 index 0000000..166e1b8 --- /dev/null +++ b/services/heimdall.yaml @@ -0,0 +1,21 @@ +services: + heimdall: + image: lscr.io/linuxserver/heimdall + container_name: heimdall + restart: always + volumes: + - configheimdall:/config + environment: + - PGID=${PGID} + - PUID=${PUID} + - TZ=${TZ} + labels: + - "traefik.enable=true" + - "traefik.http.routers.heimdall.rule=Host(`${TRAEFIK_DOMAIN}`)" + - "traefik.http.routers.heimdall.middlewares=common-auth@file" + +volumes: + configheimdall: + driver: local-persist + driver_opts: + mountpoint: $HOST_CONFIG_PATH/heimdall \ No newline at end of file diff --git a/tools/wip/clean-fs.sh b/tools/wip/clean-fs.sh index cd850a8..d52961c 100755 --- a/tools/wip/clean-fs.sh +++ b/tools/wip/clean-fs.sh @@ -25,7 +25,7 @@ find $1 -maxdepth 10 -type f | grep -v -E "\.webm$|\.flv$|\.vob$|\.ogg$|\.ogv$|\ while true; do read -p "[$0] Do you want to REMOVE these files?" yn case $yn in - [Yy]* ) find $1 -maxdepth 10 -type f | grep -v -E "\.webm$|\.flv$|\.vob$|\.ogg$|\.ogv$|\.drc$|\.gifv$|\.mng$|\.avi$|\.mov$|\.qt$|\.wmv$|\.yuv$|\.rm$|\.rmvb$|/.asf$|\.amv$|\.mp4$|\.m4v$|\.mp*$|\.m?v$|\.svi$|\.3gp$|\.flv$|\.f4v$" | xargs rm -f; break;; + [Yy]* ) find $1 -maxdepth 10 -type f | grep -v -E "\.webm$|\.flv$|\.vob$|\.ogg$|\.ogv$|\.drc$|\.gifv$|\.mng$|\.avi$|\.mov$|\.qt$|\.wmv$|\.yuv$|\.rm$|\.rmvb$|/.asf$|\.amv$|\.mp4$|\.m4v$|\.mp*$|\.m?v$|\.svi$|\.3gp$|\.flv$|\.f4v$" | xargs -0 rm -f; break;; [Nn]* ) echo "[$0] Skipping this part. Continuing...";; * ) echo "[$0] Please answer yes or no.";; esac