# Adding an instance to multisite without rebuilding the container

**URL:** https://meta.discourse.org/t/adding-an-instance-to-multisite-without-rebuilding-the-container/200212
**Category:** Support
**Created:** [August 12, 2021, 3:52pm UTC](https://meta.discourse.org/t/adding-an-instance-to-multisite-without-rebuilding-the-container/200212 "2021-08-12T15:52:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dachary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dachary/32/119731_2.png) [@dachary](https://meta.discourse.org/u/dachary)
#### Post date: [August 12, 2021, 3:52pm UTC](https://meta.discourse.org/t/adding-an-instance-to-multisite-without-rebuilding-the-container/200212/1 "2021-08-12T15:52:29Z")

</div>

Bonjour,

A discourse was setup [as a multisite](https://meta.discourse.org/t/multisite-configuration-with-docker/14084) and runs six instances on six databases and six different domains. Every time a new instance is added, the container is rebuilt:

> ./launcher rebuild app

It takes a few minutes and while it is happening all forums are down. It has worked fine for the past few months and all is well. However, as the number of instances grow, the inconvenience of shutting down all of them every time a new one is added impacts an increasing number of users.

Is there a HOWTO to **add a new forum instance dynamically instead of rebuilding the app**?

Cheers

---

<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: [August 12, 2021, 5:15pm UTC](https://meta.discourse.org/t/adding-an-instance-to-multisite-without-rebuilding-the-container/200212/2 "2021-08-12T17:15:33Z")

</div>

If the database is created and migrated and the multisite.yml is updated in the container, you can just do a `sv restart unicorn’, but I don’t think there’s a way to do that easily.

What I think you want is a two-container install so you can do the bootstrap while the old container containues to run.

---

<div class="post-metadata">

### Author: ![pilou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pilou/32/239831_2.png) [@pilou](https://meta.discourse.org/u/pilou)
#### Post date: [September 6, 2021, 8:52am UTC](https://meta.discourse.org/t/adding-an-instance-to-multisite-without-rebuilding-the-container/200212/3 "2021-09-06T08:52:28Z")

</div>

Thanks for you answer !

Are you referencing to [this](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413) ?

---

<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: [September 6, 2021, 12:28pm UTC](https://meta.discourse.org/t/adding-an-instance-to-multisite-without-rebuilding-the-container/200212/4 "2021-09-06T12:28:09Z")

</div>

Yes. That’s what I mean by a two container install.
