diff --git a/ntop/.gitignore b/ntop/.gitignore new file mode 100644 index 00000000..5368aac3 --- /dev/null +++ b/ntop/.gitignore @@ -0,0 +1 @@ +./volumes/** diff --git a/ntop/docker-compose.yml b/ntop/docker-compose.yml new file mode 100644 index 00000000..fe6d4a1b --- /dev/null +++ b/ntop/docker-compose.yml @@ -0,0 +1,29 @@ +version: "3.9" +services: + nprobe_collector: + image: ntop/nprobe:stable + restart: always + network_mode: "host" + volumes: + - ./volumes/nprobe.license:/etc/nprobe.license:ro + command: ['nprobe', '--zmq', '"tcp://ntopng:5556"', '--interface', 'none', '-n', 'none', '--collector-port', '2055', '-T', '"@NTOPNG@"', '--collector-passthrough'] + + ntopng: + image: ntop/ntopng:latest + restart: always + network_mode: "host" + volumes: + - ./volumes/ntopng.license:/etc/ntopng.license:ro + command: ['--disable-login', '--interface', 'tcp://*:5556c', '-F', 'clickhouse'] # , '--insecure'] + depends_on: + - clickhouse + - nprobe_collector + + clickhouse: + image: clickhouse/clickhouse-server:latest + network_mode: "host" + restart: always + volumes: + - ./volumes/clickhouse_data:/var/lib/clickhouse + - ./volumes/clickhouse_logs:/var/log/clickhouse-server/ +