Repository navigation
server-stats, how to show drives mounted to the docker host? #373
|
How do I show the stats of drives mounted to the host system (e.g., /mnt/media) in server-stats? I use Glance via docker, on a Debian-based Proxmox LXC. I have an NAS-based media drive mounted to the LXC as /mnt/media via SMB/CIFS for my other media services (e.g., plex, calibre-web, etc). It's usually quite full, and I'd like to show it's available:capacity in my server-stats in glance. At the moment, Glance is only showing the LXC's local storage itself (around 60gb), which I generally don't need. Compose snippet: services:
glance:
image: glanceapp/glance
container_name: glance
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
volumes:
- ${DOCKERDIR}/appdata/glance:/app/config
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
security_opt:
- no-new-privileges=true
networks:
- homelab
ports:
- 8088:8080
labels:
com.centurylinklabs.watchtower.enable: "true"
networks:
homelab:
driver: bridge
external: true Config snippet: Thanks folks, these are great updates, I appreciate all the work! |
Answered by
clockwinder
Jun 7, 2025
Replies: 1 comment 3 replies
|
You'd have to mount a directory from one of those drives into the container. It can be empty and read-only: services:
glance:
image: glanceapp/glance
container_name: glance
volumes:
- /mnt/media/some-empty-dir:/mnt/media:ro |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

And in your
glance.ymlyou added the new mountpoint?https://github.com/glanceapp/glance/blob/main/docs/configuration.md#mountpoints