From a73742c52cacdae662e7fe3c9a20f183218f6733 Mon Sep 17 00:00:00 2001 From: andy bunce Date: Sun, 18 Dec 2022 22:59:31 +0000 Subject: [PATCH] [mod] ntopng --- ntopng/docker-compose.yaml | 41 +++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/ntopng/docker-compose.yaml b/ntopng/docker-compose.yaml index 1593ea0..21f7c77 100644 --- a/ntopng/docker-compose.yaml +++ b/ntopng/docker-compose.yaml @@ -1,21 +1,30 @@ -version: '3' - +version: '2.0' services: + ntopng: + image: edgd1er/ntopng:latest + hostname: ntopng + restart: always + environment: + TZ: "Europe/Paris" + NTOP_UID: 1000 + NTOP_GID: 1000 + network_mode: host + cap_add: + - NET_ADMIN + volumes: + - ./data/ntopng:/var/lib/ntopng + command: --community -d /var/lib/ntopng -w 0.0.0.0:27833 -r localhost:6379 -Z "/monitor" + depends_on: + - redis redis: - image: redis:alpine + image: redis:latest 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 \ No newline at end of file + restart: always + ports: + - "6379:6379" + +volumes: + data_ntopng: + data_redis: \ No newline at end of file