mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-15 11:47:09 +02:00
add vnstat
This commit is contained in:
parent
b07cbeabd8
commit
315904fd53
@ -124,6 +124,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] tmail :beetle:
|
- [x] tmail :beetle:
|
||||||
- [x] tor
|
- [x] tor
|
||||||
- [x] urlwatch :beetle:
|
- [x] urlwatch :beetle:
|
||||||
|
- [x] vnstat
|
||||||
- [x] vsftpd
|
- [x] vsftpd
|
||||||
- [x] webgoat
|
- [x] webgoat
|
||||||
- [x] webhook
|
- [x] webhook
|
||||||
|
16
vnstat/Dockerfile
Normal file
16
vnstat/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for vnstat
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER kev <noreply@easypi.info>
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y vnstat vnstati \
|
||||||
|
&& sed -i '/UseLogging/s/2/0/' /etc/vnstat.conf \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
VOLUME /var/lib/vnstat
|
||||||
|
|
||||||
|
CMD ["vnstatd", "-n"]
|
28
vnstat/README.md
Normal file
28
vnstat/README.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
vnstat
|
||||||
|
======
|
||||||
|
|
||||||
|
[vnStat][1] is a console-based network traffic monitor for Linux and BSD that keeps
|
||||||
|
a log of network traffic for the selected interface(s).
|
||||||
|
|
||||||
|
### docker-compose.yml
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
vnstat:
|
||||||
|
image: vimagick/vnstat
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/vnstat
|
||||||
|
net: host
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
### up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose exec vnstat bash
|
||||||
|
>>> vnstat --help
|
||||||
|
>>> vnstati --help
|
||||||
|
>>> exit
|
||||||
|
```
|
||||||
|
|
||||||
|
[1]: http://humdi.net/vnstat/
|
6
vnstat/docker-compose.yml
Normal file
6
vnstat/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
vnstat:
|
||||||
|
image: vimagick/vnstat
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/vnstat
|
||||||
|
net: host
|
||||||
|
restart: always
|
Loading…
x
Reference in New Issue
Block a user