JulianMcConnell.com

cloudflared-docker-compose

tunnel cloudflare cloudflared docker docker-compose

I just posted a short Docker compose file here that spins up cloudflared for setting up a tunnel.

It's minimal, just add the token from the Cloudflare web-based tunnel setup to the compose file and bring it up.

Security

Make sure that at a minimum, you secure your tunnel connector in an isolated network segment which is monitored and control network communications from it to target endpoints in other zones of your network via a firewall. Please make sure you have a thorough understanding of the network security implications of exposing publicly-hosted systems, even if they are behind a tunnel and proxy such as Cloudflare.