
DockFlare: Automate Cloudflare Tunnels with Docker Labels
Started this back in December 2024 during Christmas break as a quick personal hack because I was tired of manually managing Cloudflare Tunnel routes every time I spun up a new container. Add a label, tunnel updates itself. Remove the label, route cleans up. That was the whole idea.
Put it on GitHub in April 2025 last year not really expecting much, just wanted to share it in case anyone else had the same problem. Since then it's kind of taken on a life of its own.
It's at v3.1.2 now and has grown a lot beyond the original tunnel automation. Zero Trust access policies, DNS automation, a multi-agent setup for managing tunnels across separate Docker hosts, localization in 9 languages, and more recently a full self-hosted email suite called DockFlare Mail.
The email part honestly took the longest to get right. It uses Cloudflare Email Routing and CF Workers as a stateless relay so your home IP never touches SMTP, everything lands in a local SQLite store you control. Comes with a PWA webmail client, push notifications, email aliases, multi-domain support and one-click provisioning of all the Cloudflare bits from inside DockFlare itself.
If you want to check it out the project site is at dockflare.app and the GitHub is linked above. Always happy to hear feedback or ideas. Thank you and cheers from Switzerland :)