Skip to content

Instantly share code, notes, and snippets.

@RafhaanShah
Last active April 17, 2022 12:00
Show Gist options
  • Save RafhaanShah/951414a16ecd57e521b06be54f5beace to your computer and use it in GitHub Desktop.
Save RafhaanShah/951414a16ecd57e521b06be54f5beace to your computer and use it in GitHub Desktop.
ntopng on docker on raspberry pi
# https://github.com/MSarandev/ntopng-docker-raspberry/blob/main/docker-compose.yaml
version: '3.8'
services:
redis:
image: redis:alpine
container_name: redis
command: --save 900 1 --maxmemory 300mb --maxmemory-policy allkeys-lru
volumes:
- ./data/redis:/data
restart: unless-stopped
ports:
- "6379:6379"
ntopng:
build:
context: ntop
dockerfile: Dockerfile
container_name: ntopng
command: ntopng -r localhost:6379 -i br0 -w 8001 -m 192.168.1.0/24 --community
volumes:
- ./data/ntopng:/var/lib/ntopng
restart: unless-stopped
network_mode: "host"
depends_on:
- redis
# https://packages.ntop.org/
# https://github.com/ntop/docker-ntop/commit/6600c0a49420aac78c724d93ef8c4ceab8878d52
FROM debian:bullseye
RUN apt-get update && \
apt-get -y -q install wget lsb-release gnupg libcap-dev net-tools && \
wget -q https://packages.ntop.org/RaspberryPI/apt-ntop_1.0.190416-469_all.deb && \
dpkg -i apt-ntop_1.0.190416-469_all.deb && \
apt-get clean all
RUN apt-get update && \
apt-get -y install ntopng ntopng-data
CMD ["ntopng", "--version"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment