# Managing a Two-Container Installation

**URL:** <https://support.literatecomputing.com/t/managing-a-two-container-installation/310>\
**Category:** Documentation\
**Created:** [January 15, 2019, 3:47pm UTC](https://support.literatecomputing.com/t/managing-a-two-container-installation/310 "2019-01-15T15:47:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://support.literatecomputing.com/user_avatar/support.literatecomputing.com/pfaffman/32/8_2.png) [@pfaffman](https://support.literatecomputing.com/u/pfaffman)\
**Post date:** [January 15, 2019, 3:47pm UTC](https://support.literatecomputing.com/t/managing-a-two-container-installation/310/1 "2019-01-15T15:47:04Z")

</div>

If you have a two-container configuration as is included with the [Pro Install](https://www.literatecomputing.com/product/discourse-pro-install/) managing things is a bit different than a simple single-container installation.

### How Do I Upgrade?

The big advantage of the 2-container installation is that you can build a new container while the old container keep running, this minimizing down time, as it is limited to the time that it takes the new container to crank up. Here’s what to do.

First, you need to log in to your server. An easy way to do that is through the Digital Ocean console. The username is “root” and the password is in the email you received when your droplet was created. The password will not echo when you paste it, so just hit return after you paste.

Once you’re logged in, you’ll do this:

```
cd /var/discourse
git pull
./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only

```

It takes 10-60 seconds for the new container to boot up. You’ll see a 502 error for the first little bit.

If something goes wrong in the `bootstrap` process your old container will continue running and you can work out whatever the problem is (an errant plugin?) without the trauma of having your site down.

### How do I run a `rake` task?

If you’re following instructions on [https://meta.discourse.org/](https://meta.discourse.org/) and it says to do a

```
./launcher enter app

```

or, really

```
./launcher ANYTHING app

```

you should replace `app` with `web_only`.

### What about `data.yml` do I need to update it?

Not very often; Postgres upgrades typically happen less than once a year (they usually skip every other major release) and even when an upgrade becomes supported, it is even longer before an old version of Postgres is no longer supported. If you do need to upgrade, you should get some kind of notification or have your web container rebuild. If you do need to upgrade the data container, you’ll do a simple

```
./launcher rebuild data

```

There is no harm in doing a data container rebuild. Note that Discourse cannot function without its database, so your site will be down while the database container is rebuilt. You may need to restart the web container to have it re-connect to the new database.

### I have a `napp.yml` in my `containers` directory. Should it be running?

No. That is your old `app.yml` file, which I renamed `napp.yml` (like _n_ot `app.yml`, a bit too clever and confusing). In the future, I’ll rename this something like `app.old` to hopefully minimize confusion.

---

<div class="post-metadata">

**Author:** ![bathindahelper](https://support.literatecomputing.com/user_avatar/support.literatecomputing.com/bathindahelper/32/1450_2.png) [@bathindahelper](https://support.literatecomputing.com/u/bathindahelper)\
**Post date:** [August 13, 2024, 5:27am UTC](https://support.literatecomputing.com/t/managing-a-two-container-installation/310/2 "2024-08-13T05:27:57Z")

</div>

In ref to your [this](https://meta.discourse.org/t/suddenly-im-not-able-to-bootstrap-data-container/321168/2?u=bathinda) reply on meta,

When we already stop the ‘Web\_only’ container, why couldn’t we bootstrap ‘data’ container then? Is the ‘data’ container still being used somehow?

---

<div class="post-metadata">

**Author:** ![michaelthomas](https://support.literatecomputing.com/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@michaelthomas](https://support.literatecomputing.com/u/michaelthomas)\
**Post date:** [November 18, 2026, 12:38pm UTC](https://support.literatecomputing.com/t/managing-a-two-container-installation/310/3 "2026-11-18T12:38:36Z")

</div>

Stopping web\_only doesn’t stop the data container: the data container is still running Postgres and holding the database volume/port. That’s why a plain bootstrap of data isn’t the normal path—launcher uses ./launcher rebuild data so the old database container is stopped and replaced first. You could stop data manually before bootstrapping, but the site is down either way, and the web container will usually need a restart to reconnect afterward.
