A user is trying to run Discourse on a server with an existing Docker Compose setup using Nginx. They followed a guide but couldn’t access Discourse via talk.webserver.nl. The issue was related to the Nginx configuration and container networking. riking suggested ensuring the Discourse container’s /shared directory is mapped to the host and adjusting the proxy_pass directive to use the correct socket path. Rourke clarified the volume setup, noting that /var/discourse/ was already accessible. The problem was resolved by adding docker_args: "--network apps_plexnet" and ensuring the network was external, allowing containers to communicate properly Rourke.
I’m trying to install discourse on my server with Ubuntu Server 16.04, where I’m already running a docker compose file with nginx. All containers in my docker file are on a separate network. I followed this guide mostly. I succesfully rebuild the app and setup nginx with the following setup:
With this I cannot access talk.webserver.nl. I noticed it’s trying to call /var/discourse/shared/standalone/nginx.http.sock so I decided to add that to my nginx volumes. That didn’t work either, so it’s probably not necessary to have this in my volumes at all? I have no idea how the unix reference works and I can’t find anything on it.
When I shell access nginx I can ping to all my other containers but I’m not able to ping to the discourse container. Not sure if that has anything to do with it. What can I do to debug this?
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.
With this /var/discourse/ becomes fully accessible in my nginx container through /var/discourse/shared/standalone/nginx.http.sock. Isn’t this what you mean?