502 Bad gateway error after switching to SSL

I am also running other websites on my server. As described in this post I am running Discouse in a Docker container with Nginx running on my server. Nginx proxy all traffic to the Discourse docker via a web socket. I have then setup other virtual hosts in Nginx for my others sizes, which then inturn proxy to Apache: