# Second discourse instance on the same server

**URL:** https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820
**Category:** Self-hosting
**Created:** [February 11, 2019, 12:14pm UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820 "2019-02-11T12:14:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [February 11, 2019, 12:14pm UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820/1 "2019-02-11T12:14:22Z")

</div>

I’ve looked through forum a bit but can’t find it. If I want to start a second instance of discourse on my docker install, should be it enough to copy/paste app.yml to say app2.yml, change the hostname, expose settings (we use nginx in front of it) and the host paths?

Note that I don’t want to mess with my existing install, I just want another one next to it, if possible.

---

<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: [February 11, 2019, 12:36pm UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820/2 "2019-02-11T12:36:28Z")

</div>

It is totally Possible!

> [@Multisite configuration with Docker](https://meta.discourse.org/t/multisite-configuration-with-docker/14084):
>
> warning While multisite is supported in the Discourse application, this is an advanced sysadmin setup. If you don’t know what you’re doing, do not set up multisite. The Discourse team is unable to provide multisite configuration support. If you wish to host multiple domains on a singled Docker setup, you’ll need a multisite configuration. Here are the basic building blocks for one. Understand hooks Multisite is a fairly advanced topic. Before attempting a multisite build, spend some time…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 12, 2019, 12:02am UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820/3 "2019-02-12T00:02:24Z")

</div>

Depending on what you are after (do you want to share plugins or not). If you need a second dedicated instance with different plugins you will need to expose a different port from the new container and then run a load balancer in front like HAProxy.

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [February 12, 2019, 8:09am UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820/4 "2019-02-12T08:09:08Z")

</div>

If I want different plugins I take it just need to clone the whole thing, separate everything?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 12, 2019, 8:49am UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820/5 "2019-02-12T08:49:08Z")

</div>

Yeah, plus running a load balancer

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 14, 2019, 8:49am UTC](https://meta.discourse.org/t/second-discourse-instance-on-the-same-server/108820/6 "2019-03-14T08:49:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
