What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

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

plex_noob

Senior Member
Staff
Donor
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
 

spizzetz

Junior Member
@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
Staff
Donor
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
 
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.


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
11
Guests online
97
Total visitors
108
Top