Discourse HTTPS Web Socket

Right. You can have the Discourse docker container open port 82 (or any port) if you have Varnish in front so that the URL is a normal https URL. As long as varnish manages the https certificates you should be able to proceed as you expect.