GeoMetrikks tails your reverse-proxy access logs (nginx, Nginx Proxy Manager, Traefik and Caddy) or reads them from Grafana Loki, geolocates every request with MaxMind GeoLite2, and shows the result on a real-time map and a traffic analytics dashboard. It runs on your own hardware from one Docker image.
You need Docker. The image is published to GHCR for amd64 and arm64.
mkdir geometrikks && cd geometrikks
curl -LO https://raw.githubusercontent.com/GilbN/geometrikks/main/docker-compose.yml
curl -Lo .env https://raw.githubusercontent.com/GilbN/geometrikks/main/.env.example
$EDITOR .env # set APP_ADMIN_PASSWORD, MaxMind key, CARTO key, log path
docker compose up -dOpen http://localhost:8000 and log in with APP_ADMIN_USER / APP_ADMIN_PASSWORD.
The Quickstart covers the GeoLite2 keys, log paths and image tags.
- Reverse proxies. Tails the access logs of nginx, Nginx Proxy Manager, Traefik (Pangolin included) and Caddy.
- Grafana Loki. Reads proxy logs your Loki already collects, instead of or next to log files.
- CrowdSec. Shows decisions and alerts from your Local API next to the traffic behind them, and bans or unbans an IP from the map, the tables or the IP inspector.
- Spamhaus DROP. Marks traffic from networks on the DROP and ASN-DROP lists, ready to ban through CrowdSec.
- AbuseIPDB. Shows an IP's abuse score in the IP inspector, marks IPs on AbuseIPDB's blacklist, and reports an IP to AbuseIPDB from its actions menu.
- MaxMind GeoLite2. Places requests on the map and names the network each came from. With a free MaxMind key, the databases download and refresh on their own.
- OpenID Connect. Single sign-on through Authelia, Authentik, Keycloak, Pocket ID, Google or another provider.
- API keys. Read or read/write keys for scripts and dashboard widgets that call the REST API.
- Abuse reports. Builds a report for a network's abuse desk and looks up the contact address over RDAP.
The docs live at geometrikks.dev/docs. The configuration reference lists every setting with its default.