502 Bad Gateway and Discourse version NOT FOUND

Those are advanced setups. For people not experienced with setting up reverse proxies and managing docker we recommend following our only official Discourse Standard Installation. That does assume a brand new server and that Discourse is the only web app in there.