Files
urutau/docker-compose.yml
T
Lucas RayanandClaude Opus 5.5 6941106172
Release / Plan (reuse the published image?) (push) Successful in 6s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 17s
Release / Gitea release (push) Skipped
docs: bring README, docs, screenshots and changelog up to 1.6.0
Rewritten README and interface/configuration/CLI/Docker/support/architecture
docs (EN and pt-BR) from the 1.6.0 code; all 80 screenshots regenerated,
incidents pages added; changelog audited against the tags (1.4.0 date,
1.4.6/1.4.7 items, 1.5.0 details, 1.5.8 shipped inside 1.6.0, compare
links); compose and .env.example expose the enforce, egress, probe and
Tor settings.

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

96 lines
4.8 KiB
YAML

# Urutau: reads the Traefik access log, sshd auth log and fail2ban log of the
# host (read-only), classifies what it sees and serves the dashboard.
#
# 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
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_AUTH_LOG: /logs/host/auth.log
URUTAU_FAIL2BAN_LOG: /logs/host/fail2ban.log
URUTAU_NAME: ${URUTAU_NAME:-urutau}
# Your own servers: their events are dropped entirely (comma separated CIDRs/IPs).
URUTAU_TRUSTED: ${URUTAU_TRUSTED:-}
# Federation: other instances this one aggregates, e.g. hostinger=https://urutau.example.org
URUTAU_PEERS: ${URUTAU_PEERS:-}
# Shared secret for federation (32+ characters, different from URUTAU_TOKEN);
# it only opens /api/v1/peer/export. Empty disables the export.
URUTAU_PEER_TOKEN: ${URUTAU_PEER_TOKEN:-}
# Only these source networks may call the export (empty: any with the token).
URUTAU_PEER_ALLOW: ${URUTAU_PEER_ALLOW:-}
# 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}
# Port probes logged by the host kit (deploy/host/install.sh); empty disables.
URUTAU_PROBE_LOG: ${URUTAU_PROBE_LOG:-/logs/host/probe.log}
# Download the official Tor exit/relay lists (on|off).
URUTAU_TOR_AUTO: ${URUTAU_TOR_AUTO:-on}
# Second firewall: off | observe | on. "on" appends ban decisions to
# /logs/enforce/decisions.log, applied by the host fail2ban jail "urutau"
# (install the kit with deploy/host/install.sh --enforce and uncomment the
# /logs/enforce volume below).
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 kit's nftables log.
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 host time zone: fail2ban.log timestamps are local time.
TZ: ${TZ:-UTC}
ports:
- "${URUTAU_PUBLISH:-127.0.0.1:8790}:8790"
volumes:
# Only a dedicated Traefik log directory, never the whole proxy directory
# (it holds acme.json and the dynamic configuration). Point Traefik's
# accesslog.filepath at /traefik/logs/access.log, which Coolify keeps in
# /data/coolify/proxy/logs on the host.
- /data/coolify/proxy/logs:/logs/traefik:ro
# A dedicated host directory holding only the sshd and fail2ban logs
# (rsyslog copies sshd there; fail2ban's logtarget points there). A
# directory, not single files: logrotate recreates them by rename, and a
# file bind mount would keep following the old inode. See docs/docker.md.
- /var/log/urutau:/logs/host:ro
# Second firewall decisions (read-write), only with URUTAU_ENFORCE=observe|on:
# - /var/log/urutau-enforce:/logs/enforce
- urutau-data:/data
group_add: ["4"] # adm: can read the logs in /var/log/urutau
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