[mod] ntopng
This commit is contained in:
parent
c34d78593c
commit
a73742c52c
1 changed files with 25 additions and 16 deletions
|
@ -1,21 +1,30 @@
|
||||||
version: '3'
|
version: '2.0'
|
||||||
|
|
||||||
services:
|
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:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:latest
|
||||||
command: --save 900 1
|
command: --save 900 1
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/redis:/data
|
- ./data/redis:/data
|
||||||
restart: on-failure:5
|
restart: always
|
||||||
network_mode: "host"
|
ports:
|
||||||
ntopng:
|
- "6379:6379"
|
||||||
build:
|
|
||||||
context: ntop
|
volumes:
|
||||||
dockerfile: Dockerfile
|
data_ntopng:
|
||||||
command: ntopng -r localhost:6379 -d /ntopngcustom
|
data_redis:
|
||||||
volumes:
|
|
||||||
- ./data/ntopng:/var/lib/ntopng
|
|
||||||
restart: on-failure:5
|
|
||||||
network_mode: "host"
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
Loading…
Add table
Reference in a new issue