A user seeks help installing Discourse in a self-hosted setup with existing infrastructure: a PostgreSQL database on a separate VM (10.0.0.20), Nginx on another (10.0.0.21), and Docker on a third (10.0.0.22). They want a simplified Discourse installation without managing its own database, Nginx, or Redis, aiming to run a web-only container on port 3003 and route traffic via Nginx. After finding the web_only.yml template, they successfully understand the approach. Others discuss the feasibility, noting that while this setup requires more effort, it offers performance benefits and is manageable if the user is experienced with PostgreSQL and Docker. Upgrades are generally straightforward, except for manual PostgreSQL updates. umardraz, TheBestPessimist, merefield, and itsbhanusharma contribute to the discussion.
I want to install Discourse, but before installation I want to ask few things.
I have already Postgress database on dedicated vm and I can access that postgress database in my docker containers. I also have a nginx running on a separate vm and that nginx can also access dockers exposed ports.
So I want a very simple installation of discourse without any database, nginx, redis etc so my goal is a very simple discourse docker installation. So would you please help me what exact I need to do. Where I need to set the postgress database ip, username and password.
10.0.0.20 = Postgress machine
10.0.0.21 = Nginx machine
10.0.0.22 = A machine with Docker Installation and already running some container with docker default network (172.17.0.1)
I already have running 2 containers of nodejs app on my Docker Machine with 3001 and 3002 port
And from my nginx I am using proxy pass and send the traffic on these ports e.g.
Now I want to launch a Discourse container on my docker machine with port e.g 3003 and then from nginx I can send traffic on this container for my domain e.g discourse → 10.0.0.22:3003
I don’t think that would be the case!
On the contrary, there’s a considerable amount of added performance by running data separately. There are even tutorials about it: