[add] ntopng

This commit is contained in:
Andy Bunce 2022-05-01 18:36:03 +01:00
parent 8c744d0959
commit 4ad119835c
5 changed files with 42 additions and 45 deletions

8
ntopng/data/.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
# .gitignore sample
###################
# Ignore all files in this dir...
*
# ... except for this one.
!.gitignore

View file

@ -0,0 +1,21 @@
version: '3'
services:
redis:
image: redis:alpine
command: --save 900 1
volumes:
- ./data/redis:/data
restart: on-failure:5
network_mode: "host"
ntopng:
build:
context: ntop
dockerfile: Dockerfile
command: ntopng -r localhost:6379 -d /ntopngcustom
volumes:
- ./data/ntopng:/var/lib/ntopng
restart: on-failure:5
network_mode: "host"
depends_on:
- redis

13
ntopng/ntop/Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM ubuntu:focal
RUN apt-get update && apt-get -y upgrade \
&& echo "8 48" | apt-get install -y software-properties-common wget curl \
&& add-apt-repository universe \
&& wget https://packages.ntop.org/apt-stable/20.04/all/apt-ntop-stable.deb \
&& apt install -y ./apt-ntop-stable.deb \
&& apt-get install -y ntopng \
&& systemctl enable ntopng
RUN mkdir /ntopngcustom \
&& chmod 777 /ntopngcustom