Cloudflare proxied DNS not working with docker port

I have an EC2 server running a few services using docker-compose. I pointed the domain A record to the server IP address.
When the domain is not proxied through Cloudflare, it works fine with

http://web.example.com:8080

But after enabling the proxy, it does not work and keeps loading only.

Error 522 
Connection timed out

Note: I’m not using any proxy service like nginx. Because I want to serve the services over ports only.

A 522 error typically happens when Cloudflare requests to the origin (your webserver) get blocked. Review the suggestions in this Community Tip for troubleshooting ideas.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.