# Installation Help required

**URL:** https://meta.discourse.org/t/installation-help-required/93371
**Category:** Self-hosting
**Created:** [July 28, 2018, 5:27pm UTC](https://meta.discourse.org/t/installation-help-required/93371 "2018-07-28T17:27:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![umardraz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/umardraz/32/102030_2.png) [@umardraz](https://meta.discourse.org/u/umardraz)
#### Post date: [July 28, 2018, 5:27pm UTC](https://meta.discourse.org/t/installation-help-required/93371/1 "2018-07-28T17:27:20Z")

</div>

Hello

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.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [July 28, 2018, 6:59pm UTC](https://meta.discourse.org/t/installation-help-required/93371/2 "2018-07-28T18:59:35Z")

</div>

I think you should start by looking at these (_you know there’s a search button up there on the right, right?_):

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

and also at the posts linked here

> [@Move from standalone container to separate web and data containers](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413/18):
>
> Is this still the good tutorial? Or should follow or Right now both of those tutorials still leave me with questions :-/.

---

<div class="post-metadata">

### Author: ![umardraz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/umardraz/32/102030_2.png) [@umardraz](https://meta.discourse.org/u/umardraz)
#### Post date: [July 28, 2018, 7:18pm UTC](https://meta.discourse.org/t/installation-help-required/93371/3 "2018-07-28T19:18:02Z")

</div>

Well here is my existing setup

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.

nodejs1 → 10.0.0.22:3001 nodejs1 container  
nodejs2 → 10.0.0.22:3002 nodejs2 container

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

---

<div class="post-metadata">

### Author: ![umardraz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/umardraz/32/102030_2.png) [@umardraz](https://meta.discourse.org/u/umardraz)
#### Post date: [July 30, 2018, 1:48am UTC](https://meta.discourse.org/t/installation-help-required/93371/4 "2018-07-30T01:48:59Z")

</div>

Hello,

Finally I got samples/web\_only.yml file and that was enough to understand how we can launch web only container.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [July 30, 2018, 4:33am UTC](https://meta.discourse.org/t/installation-help-required/93371/5 "2018-07-30T04:33:59Z")

</div>

Gratz.!

You have to try a little by yourself if you want to learn this stuff :P.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 30, 2018, 6:21am UTC](https://meta.discourse.org/t/installation-help-required/93371/6 "2018-07-30T06:21:16Z")

</div>

Interesting challenge.

Won’t a bespoke setup like this cause you a lot more work and frustration during the full lifecycle, though?

You could learn a lot I suppose? But can’t see any other advantages? Saves a small amount of space?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [July 30, 2018, 8:13am UTC](https://meta.discourse.org/t/installation-help-required/93371/7 "2018-07-30T08:13:47Z")

</div>

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:

> [@Configure Discourse to use a separate PostgreSQL server](https://meta.discourse.org/t/running-discourse-with-a-separate-postgresql-server/46375):
>
> Let’s say you’re using AWS RDS, or an existing PostgreSQL server managed elsewhere. It’s fairly straightforward to get Discourse to use such a setup, without needing to grant superuser privileges to anything that Discourse itself runs. Here’s how. Prerequisites Discourse requires PostgreSQL’s major version to [match what we ship with in our docker images](https://github.com/discourse/discourse_docker/blob/main/image/base/Dockerfile#L37); if you try to run on a newer or older version, it might work, but we don’t guarantee it, and if something breaks in the future, you get to …

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 30, 2018, 8:35am UTC](https://meta.discourse.org/t/installation-help-required/93371/8 "2018-07-30T08:35:15Z")

</div>

What about the upgrade process? Would it impact the normal simplicity of that?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [July 30, 2018, 11:13am UTC](https://meta.discourse.org/t/installation-help-required/93371/9 "2018-07-30T11:13:28Z")

</div>

You already know you’re doing advance things.

Your web container will rebuild normally, the upgrades from docker manager work too

Only thing you have to be mindful of managing postgres upgrades on your own.

If you know what you’re doing (You obviously will if you are running a separate postgres server already) then it shouldn’t be too big of a deal!
