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

plex_noob

Senior Member
Original poster
Staff
Donor
Local time
12:43 AM
Oct 1, 2018
223
105
Brussels
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: th4r and bubbadk

fzwatchmaker

Junior Member
Local time
5:43 PM
Jan 27, 2019
11
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

Junior Member
Local time
2:43 PM
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

Junior Member
Local time
2:43 PM
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

Senior Member
Original poster
Staff
Donor
Local time
12:43 AM
Oct 1, 2018
223
105
Brussels
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: Cthe1

Zeus

Junior Member
Local time
2:43 PM
May 30, 2019
19
4
Amazing thank you so much! Will definitely do this right away
 
Assists Greatly with Development Costs

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Maintenance Donations

Recommend NewsGroups

      Up To a 58% Discount!

Trending