# Is creating a second app.yml-like file enough for multisite?

**URL:** https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362
**Category:** Self-hosting
**Tags:** hosting
**Created:** [March 24, 2020, 7:55am UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362 "2020-03-24T07:55:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kuba-orlik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuba-orlik/32/318490_2.png) [@kuba-orlik](https://meta.discourse.org/u/kuba-orlik)
#### Post date: [March 24, 2020, 7:55am UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362/1 "2020-03-24T07:55:41Z")

</div>

I’m attempting to create a second instance of Discourse on my machine that would be served on a different domain via a reverse proxy.

Would it be OK if I just copied the current `app.yml` file to `app2.yml` file, changed what needs to be changed and then ran `./launcher build app2`?

---

<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: [March 24, 2020, 11:52am UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362/2 "2020-03-24T11:52:37Z")

</div>

Yes. You can do that. But I would recommend spending a bit more time to [move to separate web and data containers](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413) so that you have only a single instance of redis and Postgres running. But if you don’t care about wasting some ram and don’t need the benefit of reduced down time when your rebuild, your idea is fine.

This will use a bit more ram than a multisite setup but allows you to have different sets of plugins.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [June 3, 2020, 5:06pm UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362/3 "2020-06-03T17:06:37Z")

</div>

> [@kuba-orlik](#):
>
> I’m attempting to create a second instance of Discourse on my machine that would be served on a different domain via a reverse proxy.

This sounds like something which would help me. I could reduce my costs by consolidating two hosts into one (slightly) bigger one.

If you are successful I’d much appreciate a description of your setup. I’m an experienced linux admin but not experienced in this area.

> [@pfaffman](#):
>
> I would recommend spending a bit more time to move to separate web and data containers

I hear you, but having read that several times in the past I’d be interested in something simpler. Both my forums are small and low traffic.

---

<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: [June 3, 2020, 5:17pm UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362/4 "2020-06-03T17:17:25Z")

</div>

In that case, yes, a second copy of `samples/standalone.yml` will do fine - but: make sure to update the `/var/discourse/shared/[standalone]/` and other host-exposed resources to another name.
