News for hackers. Stuff that matters.
Re:Exposing a web service with Cloudflare Tunnel by stavros on Tuesday February 08, 2022 @12:42PM (#30261627)
I do this for our services, it works great and we can easily put SSO in front of them with CF Access. I publish a Docker container that you can use as a sidecar for your Compose deployments:

https://gitlab.com/stavros/docker-cloudflared

I use this with Harbormaster (https://gitlab.com/stavros/harbormaster) so I can expose containerized stuff without ever forwarding any ports outside of Docker.

Re:Exposing a web service with Cloudflare Tunnel by ErisaDev on Tuesday February 08, 2022 @05:19PM (#30265652)
Hi, I'm the author of the blog post being promoted here.

I maintain my own Docker image too for personal use (https://github.com/Erisa/cloudflared-docker) but I've never ran into a situation where needing everything as an environment variable was required or even desired. I really love the idea of that though, and I love that image!

Re:Exposing a web service with Cloudflare Tunnel by stavros on Tuesday February 08, 2022 @05:21PM (#30265678)
Yeah, I did it that way because Harbormaster promotes configuration being passed as env vars, so I needed the image to support that. That way, you can deploy cloudflared to a server without touching it beforehand, just by adding the vars to the repo that describes what you want deployed.