Simple webui to monitor internet bandwidth usage
2.2K
A modern web dashboard for vnstat network traffic monitoring, built with Chart.js.
services:
vnstat-ui:
container_name: vnstat-ui
image: bhoopendrau004/vnstat-ui:latest
restart: always
network_mode: host
volumes:
- vnstat-data:/var/lib/vnstat
volumes:
vnstat-data:
docker compose up -d
The dashboard will be available at http://localhost:8000.
Note:
network_mode: hostis required so vnstat can monitor the host's network interfaces.
git clone https://github.com/bhoopendrau004/vnstat-web.git
cd vnstat-web
docker compose up -d --build
vnstat's traffic database is stored in a named Docker volume (vnstat-data). Data persists across container restarts and recreation.
| File | Purpose |
|---|---|
index.html | Page structure and layout |
style.css | Styling, theming, and responsive breakpoints |
main.js | Chart rendering, data fetching, controls, and theme logic |
data.php | Backend API — reads from vnstat and returns JSON |
configs/ | Apache port and virtual host configuration |
Docker images are automatically built and pushed to DockerHub on every GitHub release. Tags follow the format v0.0.2 → pushed as 0.0.2 and latest.
Content type
Image
Digest
sha256:9d5daec5e…
Size
189.4 MB
Last updated
about 2 months ago
docker pull bhoopendrau004/vnstat-ui