How to Protect Traefik Services with CrowdSec

If you expose self-hosted apps to the internet through Traefik, you will see scanners and brute-force attempts within hours. CrowdSec reads Traefik’s access log, spots attack patterns, and tells a Traefik plugin to return 403 to the offenders. This guide walks through the full setup with Docker Compose. How it fits together Internet → Traefik (https entrypoint) → crowdsec@file middleware → app │ │ │ writes JSON access log │ asks "is this IP banned?" ▼ ▼ ./traefik/logs ──────────► CrowdSec container (reads log, detects, decides) Traefik writes a JSON access log. The CrowdSec engine reads that log, matches attack scenarios, and creates ban decisions. It also pulls the community blocklist. The bouncer is a Traefik plugin, not a separate container. It asks CrowdSec’s local API whether an IP is banned and returns 403 if so. CrowdSec ignores private ranges (10.x, 172.16-31.x, 192.168.x) by default, so LAN traffic can’t get banned. ...

How to Upgrade (and Set Up) authentik on Docker Compose Without Breaking Outposts

authentik upgrades are usually painless, until an LDAP or proxy outpost keeps running the old image and your NAS logins or forward-auth apps start acting strange. This is the routine I use for a Docker Compose install behind Traefik, plus a from-scratch setup at the end. Gotchas to know first sudo cmd > file fails in root-owned directories, because the redirect runs as your user. Write backups to ~/ (or pipe to sudo tee). Keep backups outside the stack directory. Outposts on the Local Docker connection don’t reliably redeploy after a server upgrade. docker stop then docker start does nothing useful: the container comes back on the same old image. It has to be removed so authentik recreates it. The compose file is now compose.yml (it was docker-compose.yml before 2026.2). Diff before overwriting so you don’t lose custom Traefik labels. AUTHENTIK_POSTGRESQL__CONN_OPTIONS is deprecated; remove it from .env. 2026.8 rewrote the proxy outpost, so re-test any forward-auth apps after major upgrades. Upgrading Move one release family at a time. Patch bumps are routine; read the release notes before major bumps. ...

How to Fix "All Predefined Address Pools Have Been Fully Subnetted" in Docker

You run docker compose up on a new stack and get this: failed to create network file-browser_default: Error response from daemon: all predefined address pools have been fully subnetted Every Compose project gets its own bridge network, and Docker’s default pools (172.17-31.0.0/16 plus some 192.168.x.x blocks) only stretch so far. Once you have a few dozen stacks, you run out. I hit this on an ASUSTOR NAS running Docker CE from App Central, which has some quirks: no systemd, a BusyBox shell, and sudo needed for every Docker command. The fix works on any Linux host; only the restart step differs. ...