Discourse not working through separate nginx docker

The way the volumes work is that HOST /var/discourse/shared/NAME is mapped to CONTAINER /shared. They’re already set up in the default app.yml.

The Discourse container /shared is mapped to the host /var/discourse/shared/NAME. You’ll need to make a new volume for your nginx container, maybe call it /discourse_shared, mapping to the same location.

Then your directive becomes:

proxy_pass http://unix:/discourse_shared/nginx.http.sock:;