Yes. The sockets are available outside of the container.
I am using OpenResty, which is running in a container. Do I just need to mount the /var/discourse/shared/standalone directory, where the nginx.http.sock file is stored, into the container?
That’s brilliant! This should be the actual “installation guide” and not the page that is currently written as “official”! Thousand thanks!
A question:
Is the socket template (with nginx.http.sock in the conf file) a must if I want to setup other websites running on the same standalone server along with discourse?
We’ve recently migrated server and we ended up using port 8080 and nginx as reverse proxy but without using the socket template. Since it is working ok and I don’t see the point of using that method I would like to know if there’s no other way.
If the port works for you then you don’t need the socket. Some people like the socket better for Reasons, but it doesn’t matter much.