Files
urutau/docker-compose.yml
Lucas RayanandClaude Opus 5.5 8546d14cef
CI / Format and vet (pull_request) Failing after 53s
CI / Dependency audit (pull_request) Successful in 33s
CI / Tests (Linux, race detector) (pull_request) Successful in 2m1s
CI / Docker images (build and smoke test) (pull_request) Failing after 47s
feat!: Urutau 2.0.0, ultralight probes and a single analysis hub
Each server runs an ultralight probe (scratch image, ~7 MiB RSS) that
tails the logs, ships raw lines to the hub over HTTPS with an on-disk
spool, and applies enforce decisions locally. The hub keeps one node per
probe (primary node = the 1.x data dir, unchanged), does all analysis and
serves the UI. Peer federation is removed. 'urutau import' brings 1.x
data dirs in with hash and count verification. UI: probes page, host
qualified incidents, IPs never wrap, egress heatmap labels, live and
replay globes no longer auto-rotate, replay repeat, live traffic metrics.

BREAKING CHANGE: URUTAU_PEERS, URUTAU_PEER_* and /api/v1/peer/* are gone;
log path variables move from the hub to the probe. See docs/migration-2.0.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:14:50 -03:00

74 lines
3.4 KiB
YAML

# Urutau hub: serves the dashboard and the API and receives the lines that the
# probes (one per server, see deploy/probe/docker-compose.yml) send over HTTPS.
# The hub reads no log file and mounts none.
#
# cp .env.example .env # set URUTAU_TOKEN (openssl rand -base64 48)
# docker compose pull && docker compose up -d # operators: published image
# docker compose up -d --build # developers: local build
# docker compose exec urutau urutau probes create <name> # token for a new probe
name: urutau
services:
urutau:
image: ${URUTAU_IMAGE:-git.lucasrguerra.dev.br/ciberfauna/urutau}:${URUTAU_VERSION:-latest}
build: .
environment:
# Required: the service refuses to start without it (32+ characters and
# 128+ bits of entropy). Alternatively mount a file and set URUTAU_TOKEN_FILE.
URUTAU_TOKEN: ${URUTAU_TOKEN:-}
URUTAU_NAME: ${URUTAU_NAME:-urutau}
# Your own servers: their events are dropped entirely (comma separated CIDRs/IPs).
URUTAU_TRUSTED: ${URUTAU_TRUSTED:-}
# Reverse proxies whose X-Forwarded-For is trusted. Only the dedicated
# urutau-edge network below, which holds nothing but this service and the
# reverse proxy: any other container there could forge client IPs.
URUTAU_TRUSTED_PROXY: ${URUTAU_TRUSTED_PROXY:-10.250.0.0/24}
# Optional: analytics domain allowlist (exact names or *.example.com) and the
# networks the monitoring User-Agents come from.
URUTAU_DOMAINS: ${URUTAU_DOMAINS:-}
URUTAU_MONITOR_FROM: ${URUTAU_MONITOR_FROM:-}
# SSH users whose successful logins keep their IP out of the blocklist (24 h).
URUTAU_ADMIN_USERS: ${URUTAU_ADMIN_USERS:-}
# Geo database refresh interval (0 disables the download).
URUTAU_GEO_UPDATE: ${URUTAU_GEO_UPDATE:-24h}
# Download the official Tor exit/relay lists (on|off).
URUTAU_TOR_AUTO: ${URUTAU_TOR_AUTO:-on}
# Second firewall: off | observe | on. "on" queues ban decisions for the
# probe of each server, which appends them to its decisions.log, applied by
# the host fail2ban jail "urutau" (install the kit with
# deploy/host/install.sh --probe --enforce on every probe host).
URUTAU_ENFORCE: ${URUTAU_ENFORCE:-off}
URUTAU_ENFORCE_SHARE: ${URUTAU_ENFORCE_SHARE:-off}
URUTAU_ENFORCE_THRESHOLD: ${URUTAU_ENFORCE_THRESHOLD:-5}
# Outbound traffic analysis (auto | on | off) from the egress log each probe sends.
URUTAU_EGRESS: ${URUTAU_EGRESS:-auto}
# name=container-prefix:role, comma separated (see docs/configuration.md).
URUTAU_EGRESS_WORKLOADS: ${URUTAU_EGRESS_WORKLOADS:-}
URUTAU_EGRESS_RESOLVERS: ${URUTAU_EGRESS_RESOLVERS:-}
# Match the probes' time zone: fail2ban.log timestamps are local time and the hub parses them.
TZ: ${TZ:-UTC}
ports:
- "${URUTAU_PUBLISH:-127.0.0.1:8790}:8790"
volumes:
- urutau-data:/data
networks: [urutau-edge]
read_only: true
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
mem_limit: 384m # the Go soft limit is 256 MiB (30 days of history)
cpus: 0.5
restart: unless-stopped
volumes:
urutau-data:
# Shared only with the reverse proxy (attach it: docker network connect
# urutau-edge <proxy>). The fixed subnet is what URUTAU_TRUSTED_PROXY trusts.
networks:
urutau-edge:
name: urutau-edge
ipam:
config:
- subnet: 10.250.0.0/24