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:
server {
listen 80; listen [::]:80;
server_name talk.webserver.nl;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name talk.webserver.nl;
ssl on;
include /etc/nginx/confs/nginx-ssl.conf;
ssl_session_tickets off;
location / {
proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}
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?