How to run Discourse in Apache vhost, not Nginx

For this purpose, you should mostly pretend that nginx is inside the “black box” of the docker container and not concern yourself with it.

So: nginx → varnish → apache → Discourse (comprising nginx and unicorn)

(except for configuring it to trust upstream proxy IPs)