Dockerfile linksdocker run \
--detach \
--name vnstat \
--restart unless-stopped \
--network host \
--volume vnstat-config:/config \
--volume vnstat-data:/var/lib/vnstat \
bmoorman/vnstat:latest
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:
| Variable | Description | Default |
|---|---|---|
| TZ | Sets the timezone | America/Denver |
| HTTPD_SERVERNAME | Sets the vhost servername | localhost |
| HTTPD_PORT | Sets the vhost port | 1477 |
| HTTPD_SSL | Set to anything other than SSL (e.g. NO_SSL) to disable SSL | SSL |
| HTTPD_REDIRECT | Set to anything other than REDIRECT (e.g. NO_REDIRECT) to disable SSL redirect | REDIRECT |
Content type
Image
Digest
sha256:801620281…
Size
98.6 MB
Last updated
6 days ago
docker pull bmoorman/vnstat