# 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 # 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 ). The fixed subnet is what URUTAU_TRUSTED_PROXY trusts. networks: urutau-edge: name: urutau-edge ipam: config: - subnet: 10.250.0.0/24