# How do you set up multiple discourse forums on the same server?

**URL:** https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074
**Category:** Self-hosting
**Created:** [August 13, 2015, 5:56pm UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074 "2015-08-13T17:56:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [August 13, 2015, 5:56pm UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074/1 "2015-08-13T17:56:57Z")

</div>

Is it as simple as:

1. Setting different ports in app.yml:

```plaintext
## which TCP/IP ports should this container expose?
expose:
  - "8001:80" # fwd host port 80 to container port 80 (http)
  - "2222:22" # fwd host port 2222 to container port 22 (ssh)

```

Where 8001 is different for each Discourse forum, so 8002, 8003, etc (And then HAproxy direct the traffic to the relevant ports per domain).

1. install each Discourse in its own directory:

```plaintext
## These containers are stateless, all data is stored in /shared
volumes:
  - volume:
      host: /home/site1/apps/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /home/site1/apps/discourse/shared/standalone/log/var-log
      guest: /var/log

```

Where site1 reflects each site, so site2, site3 etc.

1. and then you install Discourse as normal, in the above case, in `/home/site1/apps/discourse/`

…Or is it more involved than that?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 13, 2015, 5:57pm UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074/2 "2015-08-13T17:57:39Z")

</div>

Search for multisite here, there are a few howto topics on it. But that’s the search string you want.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [August 13, 2015, 10:41pm UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074/3 "2015-08-13T22:41:24Z")

</div>

You could also use the “multiple websites” tutorial where you use web.socketed.template.yml, plus multiple standalone containers.

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [August 13, 2015, 11:48pm UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074/4 "2015-08-13T23:48:33Z")

</div>

Do you mean this how-to [Multisite configuration with Docker](https://meta.discourse.org/t/multisite-configuration-with-docker/14084)

Doesn’t seem very straight forward going by all the comments ☹ (thought Docker was meant to make this stuff easy)

I think I will come back to it when I’ve got more time…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 13, 2015, 11:53pm UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074/5 "2015-08-13T23:53:41Z")

</div>

[![](https://global.discourse-cdn.com/meta/original/4X/2/d/4/2d4d3d582a10e778a3cdff20597ac29777bad32c.jpeg "Lynn Anderson - I Beg Your Pardon, I Never Promised You A Rose Garden (BBC Top Of The Pops)") ](https://www.youtube.com/watch?v=2-eclUz-RYI)

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [August 14, 2015, 12:13am UTC](https://meta.discourse.org/t/how-do-you-set-up-multiple-discourse-forums-on-the-same-server/32074/6 "2015-08-14T00:13:06Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/4/e/4e4952929083aafd6474ca787b5a7a72eb0a324f.gif)
