Setting Up a Home‑Lab MQTT Broker with Traefik and ACME on Debian
MQTT is the de‑facto messaging protocol for IoT and home‑automation projects.
If you already run a small lab or a home server, adding a broker that is
secure, automatically cert‑managed, and easily reachable from the internet
is a great way to learn about reverse proxies, TLS, and container orchestration.
Below is a step‑by‑step guide that uses Docker Compose (or Podman‑Compose if you prefer a rootless setup), Traefik as the reverse proxy, and Let’s Encrypt (ACME) for free TLS certificates.
Everything runs on a fresh Debian 12 “bookworm” installation, but the concepts translate to other distros with little change.