2022-12-18 22:59:31 +00:00
|
|
|
version: '2.0'
|
2022-05-01 18:36:03 +01:00
|
|
|
services:
|
|
|
|
ntopng:
|
2022-12-18 22:59:31 +00:00
|
|
|
image: edgd1er/ntopng:latest
|
|
|
|
hostname: ntopng
|
|
|
|
restart: always
|
|
|
|
environment:
|
2022-12-18 23:00:10 +00:00
|
|
|
TZ: "Europe/London"
|
2022-12-18 22:59:31 +00:00
|
|
|
NTOP_UID: 1000
|
|
|
|
NTOP_GID: 1000
|
|
|
|
network_mode: host
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2022-05-01 18:36:03 +01:00
|
|
|
volumes:
|
|
|
|
- ./data/ntopng:/var/lib/ntopng
|
2022-12-18 22:59:31 +00:00
|
|
|
command: --community -d /var/lib/ntopng -w 0.0.0.0:27833 -r localhost:6379 -Z "/monitor"
|
2022-05-01 18:36:03 +01:00
|
|
|
depends_on:
|
2022-12-18 22:59:31 +00:00
|
|
|
- redis
|
|
|
|
redis:
|
|
|
|
image: redis:latest
|
|
|
|
command: --save 900 1
|
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data_ntopng:
|
|
|
|
data_redis:
|