Sign inSign up

bmoorman/vnstat

By bmoorman

•Updated 6 days ago

vnStat [humdi.net/vnstat] on Ubuntu

Image
1

100K+

bmoorman/vnstat repository overview

⁠How to use this image

⁠Docker Run

docker run \
--detach \
--name vnstat \
--restart unless-stopped \
--network host \
--volume vnstat-config:/config \
--volume vnstat-data:/var/lib/vnstat \
bmoorman/vnstat:latest

⁠Docker Compose

version: "3.7"
services:
  vnstat:
    image: bmoorman/vnstat:latest
    container_name: vnstat
    restart: unless-stopped
    network_mode: host
    volumes:
      - vnstat-config:/config
      - vnstat-data:/var/lib/vnstat

volumes:
  vnstat-config:
  vnstat-data:

⁠Environment Variables

VariableDescriptionDefault
TZSets the timezoneAmerica/Denver
HTTPD_SERVERNAMESets the vhost servernamelocalhost
HTTPD_PORTSets the vhost port1477
HTTPD_SSLSet to anything other than SSL (e.g. NO_SSL) to disable SSLSSL
HTTPD_REDIRECTSet to anything other than REDIRECT (e.g. NO_REDIRECT) to disable SSL redirectREDIRECT

Tag summary

Content type

Image

Digest

sha256:801620281…

Size

98.6 MB

Last updated

6 days ago

docker pull bmoorman/vnstat