CloudFlare & DigitalOcean

I deployed cloudflare with docker on my DigitalOcean droplet. Then I have set up a zero trust tunnel. With the url localhost. In the end this didn't worked. So I had to use the public IP. Does someone know why it's not possible to use localhost:8080 for example, when the cloudflare container runs on the same host?
Was this page helpful?