Hub (FastAPI + no-build web UI): - Network health: live probe/target matrix, status strips, incidents - Probes: add (with install command), rename, remove, latency and throughput charts - Clients merged from AdGuard, DHCP, query log and probe ARP tables; names, categories, suspicious flag, notes, per-client DNS requests - Query log, domain detail (clients, related subdomains), blocked domains via the AdGuard Home /control API Probe: tests peers (ping, HTTP, throughput), gateway, LAN and public DNS, internet URLs and an optional VPS; buffers results while the hub is down. Gateway and ARP from /proc/net on Linux, route/arp on macOS. Install: install.sh (hub) and install-probe.sh (generated from it), each in docker mode (compose; default on Linux hosts) or native mode (venv + systemd or launchd; default on macOS and in LXC). Both modes deploy with an update command that checks the new commit and rolls back on failure. CLAUDE.md carries shared context for Claude Code sessions on each machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
511 B
YAML
13 lines
511 B
YAML
# Local development: the source is this folder, bind-mounted, and uvicorn reloads on save.
|
|
# docker compose -f compose.yml -f compose.dev.yml up --build
|
|
# docker compose -f compose.yml -f compose.dev.yml run --rm app pytest
|
|
# `update` is disabled in dev; use git on the host. Separate project name = separate volumes.
|
|
name: network-monitor-dev
|
|
services:
|
|
app:
|
|
container_name: network-monitor-dev
|
|
environment:
|
|
DEV: "1"
|
|
CONTAINER_NAME: network-monitor-dev
|
|
volumes:
|
|
- .:/srv/src
|