# 2container setup option

**URL:** https://meta.discourse.org/t/2container-setup-option/148539
**Category:** Self-hosting
**Created:** [April 19, 2020, 5:32pm UTC](https://meta.discourse.org/t/2container-setup-option/148539 "2020-04-19T17:32:19Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [April 20, 2020, 2:42pm UTC](https://meta.discourse.org/t/2container-setup-option/148539/7 "2020-04-20T14:42:22Z")

</div>

> [@mbronstein](#):
>
> I only found it because I happened to read the discourse-setup script.

It is documented.

From: [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)

> [@Move from standalone container to separate web and data containers](https://meta.discourse.org/t/move-from-standalone-container-to-separate-web-and-data-containers/29413/1):
>
> Added by @pfaffman 2019-12-11.
> 
> NOTE: If you want to create a 2 container site you can do this:
> 
> ```plaintext
> ./discourse-setup 2container
> 
> ```
> 
> It works just like normal except it’ll create separate `data` and `web_only` containers and generate a random password for the database. If you already have an `app.yml` you’ll need to rename it, or `discourse-setup` will just update it. You could then copy a backup into `/var/discourse/shared/web_only/backups/default` and restore that, which is a little easier than what’s described below.

> [@mbronstein](#):
>
> Is is intentional that this option has not been added to the install instructions? (If it is there but I missed it, I apologize)

I am reluctant to put it in the 30 minute install instructions, which is used by many people who can only barely understand those instructions and don’t read them carefully, because it requires that you have enough wherewithal to re-write the instructions every time you see `./launcher rebuild app` to something like `./launcher rebuild web_only`. “I did ‘./launcher rebuild app’ and I got an error! Help!”

---

_[View the full topic](https://meta.discourse.org/t/2container-setup-option/148539)._
