HOWTO: Add a web alternative to ncdu (Disk space analyser) | PlexGuide.com

HOWTO: Add a web alternative to ncdu (Disk space analyser)

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

plex_noob

Elite
Original poster
Staff
Donor
Oct 1, 2018
224
114
By following this HOWTO: Install third-party container with automatic Traefik configuration

You can easily install a nice web gui to display the disk usage

1541690232480.png

Simply copy-paste this code in a new docker-compose.yml
and run docker-compose up -d



version: '2'
services:
qdirstat:
image: jlesage/qdirstat:latest
restart: always
container_name: qdirstat
volumes:
- "/opt/appdata/qdirstat/:/config:rw"
- "/:/storage:ro"
ports:
- "49995:5800"
- "49995:5900"
environment:
- "TZ=EUROPE/BRUSSELS"
- "KEEP_APP_RUNNING=0"
- "CLEAN_TMP_DIR=1"
- "DISPLAY_WIDTH=1280"
- "DISPLAY_HEIGHT=1024"
- "SECURE_CONNECTION=0"
- "VNC_PASSWORD=Your_password_here"
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:qdirstat.yourdomaine.name,"
traefik.port: "5800"
networks:
default:
external:
name: plexguide
 
  • Like
Reactions: 1 users

fzwatchmaker

Citizen
Jan 27, 2019
12
0
I'm total noob. How do I set this up?

I have a hetzner server and I can't figure out what is taking up so much space. I cleared all downloads, incomplete and move is empty but I only have 300GB+ of 1TB available once all downloads and PG move is done.
 

Zeus

Citizen+
May 30, 2019
19
4
Is it possible to add this container to the community apps for an easy install through pgblitz? Would be amazing in my opinion. @Admin9705
 

Zeus

Citizen+
May 30, 2019
19
4
@plex_noob I got it installed and working but the one thing i can't seem to figure out is how to delete files from within qdirstat. Every time I try to delete a file that radarr didnt transfer (i.e. files stuck in downloads/sabnzbd) then a pop-up says the folder is read-only and cannot be deleted.

Do you know of any solution? Any help is appreciated.
 

plex_noob

Elite
Original poster
Staff
Donor
Oct 1, 2018
224
114
Hi spizzetz,
The reason you cannot delete files is simply related to the way the volume mounted in docker. If you look at the docker-compose file you will find the following line:
Code:
- "/:/storage:ro"
Simply remove ":ro" from the line and the mounted volume will be read-write.
But you will need to be careful:
  1. By doing this you put your file system at great risk because you are mounting the root drive in read-write. To mitigate you could mount the media folders instead of the root directory. something like this
    Code:
    - "/mnt/unionfs/tv:/storage/tv"
    and this
    Code:
    - "/mnt/unionfs/movies:/storage/movies"
    this way inside your container you will have 2 sub-directories inside the "/storage" root directory.
  2. I haven't tested the results of trying to delete files from within this tool. I have no idea what are the results.
Best regards,

plex_noob
 
  • Like
Reactions: 1 user

Recommend NewsGroups

      Up To a 58% Discount!

Trending