-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (46 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
60 lines (46 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.9"
services:
netflow-globe:
build:
context: .
dockerfile: Dockerfile
image: netflow-globe:latest
container_name: netflow-globe
restart: unless-stopped
ports:
- "3300:3000" # UI + WebSocket + API
environment:
# ── ntop connection ───────────────────────────────────────
NTOP_HOST: ntop.domain.com
NTOP_USER: admin
NTOP_PASS: yourntoppassword #
# ── Polling ───────────────────────────────────────────────
POLL_MS: 3000
# ── Default query params (overridable at runtime via UI) ──
DEFAULT_IFID: "0"
DEFAULT_LENGTH: "50"
DEFAULT_PROTO: tcp
# ── Home location for private IPs (lat, lon) ─────────────
HOME_LAT: "10.8505"
HOME_LON: "76.2711"
# ── App ───────────────────────────────────────────────────
PORT: 3000
NODE_ENV: production
volumes:
# Persist geo cache, DNS cache, and raw snapshots across restarts
- netflow-data:/data
# Networking — lets the container reach ntop on your LAN
# Change to "bridge" if ntop is on the public internet
network_mode: bridge # ← gives container direct LAN access
# Uncomment the lines below and comment out network_mode if you
# want bridge networking instead:
# networks:
# - default
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
netflow-data:
driver: local