# Discourse not working through separate nginx docker

**URL:** <https://meta.discourse.org/t/discourse-not-working-through-separate-nginx-docker/72071>\
**Category:** Self-hosting\
**Created:** [14. Oktober 2017 um 13:22 UTC](https://meta.discourse.org/t/discourse-not-working-through-separate-nginx-docker/72071 "2017-10-14T13:22:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [15. Oktober 2017 um 04:01 UTC](https://meta.discourse.org/t/discourse-not-working-through-separate-nginx-docker/72071/2 "2017-10-15T04:01:20Z")

</div>

~~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:;

```

> **[Unix domain socket](https://en.wikipedia.org/wiki/Unix_domain_socket)**
>
> A Unix domain socket (UDS), also called a local socket or inter-process communication (IPC) socket, is a communication endpoint used for data exchange between processes running on the same Unix or Unix-like operating system.
> The term Unix domain socket refers to the domain argument value AF\_UNIX passed to the system call that creates the socket. The same communication domain can also be selected with AF\_LOCAL.
> Valid type argument values for a UDS are:
> The UDS facility is a standard component o...

---

_[View the full topic](https://meta.discourse.org/t/discourse-not-working-through-separate-nginx-docker/72071)._
