Discourse behind Traefik on a subdomain

I use traefik with any problem. I expose no ports and traefik access port 80 on the container.

You didn’t configure https on Discourse did you? If so that’s something to change.