Connecting to Docker container via Cloudflare Tunnel
I’m running Proxmox, with a Debian based instance of Portainer. In Portainer I have a virtual network that I’ve created that’s being used by several containers I’ve deployed - radarr, sonarr, jackett, overseerr etc. I am trying to use Cloudflare Tunnel to access the web gui of overseerr. I get as far as cloudflare telling me that the connection is healthy in the tunnel configuration, but when I attempt to connect with my sub.domain, it gives me a 502 error.
In my cloudflared instance on portainer, the log keeps throwing me this error:
error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: read tcp 172.17.0.3:39944->xx.x.x.xx:5055: read: connection reset by peer" connIndex=1 event=1 ingressRule=0 originService=https://xx.x.x.xx:5055
I’ve redacted the container IP address.
How can I go about connecting to my container via Cloudflare tunnel?
5 Replies
Is the cloudflared container on the same docker network?
Yes, a virtual network I created. But I could’ve set it up incorrectly as I’m new and still learning
just to double-check, does a regular curl to
https://xx.x.x.xx:5055/
work as expected?curl: (35) OpenSSL/3.0.11: error: 0A00010B:SSL routines::wrong version number
This is what I get when attempting to curl
are you sure overseerr is accessible over https?
try regular http