# Two Discourse communities on the same VPS

**URL:** https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223
**Category:** Self-hosting
**Created:** [December 17, 2022, 3:26pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223 "2022-12-17T15:26:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Clement2005](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Clement2005](https://meta.discourse.org/u/Clement2005)
#### Post date: [December 17, 2022, 3:26pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/1 "2022-12-17T15:26:28Z")

</div>

Hello!

Say I wanted to run two separate communities on the same VPS, what would be the best way to go about it?

Any advice will be much appreciated!  
Cheers 😀

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [December 17, 2022, 3:27pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/2 "2022-12-17T15:27:47Z")

</div>

> [@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…

Good luck! ✌

---

<div class="post-metadata">

### Author: ![Clement2005](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Clement2005](https://meta.discourse.org/u/Clement2005)
#### Post date: [December 17, 2022, 3:43pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/3 "2022-12-17T15:43:47Z")

</div>

Alrighty thanks 😀

This may be a silly question but can’t you just install two separate containers for each?

---

<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: [December 17, 2022, 4:12pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/4 "2022-12-17T16:12:13Z")

</div>

Yes you can. read the contents of the yml files for hints. you want to change directory mappings and some other tweaks.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 17, 2022, 8:29pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/5 "2022-12-17T20:29:18Z")

</div>

You’ll need a reverse proxy if you have two containers. You’ll want to do a two container install so that you have only one postgres running. You’ll need at least 2gb to do it, though 4 might be better, so if you hope this will save money over a single 1gb vm, you’re better off just using two small vms.

It’s an advanced setup, so if you’re not already familiar with a two container install, it’s going to be some work.

The multisite topic has some hints about setting up multiple databases.

---

<div class="post-metadata">

### Author: ![Clement2005](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Clement2005](https://meta.discourse.org/u/Clement2005)
#### Post date: [December 18, 2022, 1:20pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/6 "2022-12-18T13:20:31Z")

</div>

> [@pfaffman](#):
>
> so if you hope this will save money over a single 1gb vm, you’re better off just using two small vms.

This pretty much sums it up for me.

Thanks bud 🙂

---

<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: [January 17, 2023, 1:20pm UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223/7 "2023-01-17T13:20:40Z")

</div>

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