If i understand correctly, what you want is nginx listening and redirecting one subdomain to apache on one side and one subdomain to the container where discourse is on the other side (setup by exposing the right port in the app.yml, or using the web.socketed template), or are you using apache as a proxy?
Nginx is used instead of HAproxy in the CentOS tutorial, I think