# \#two-container

**URL:** https://meta.discourse.org/tag/two-container/492.md

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

---

## [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)

<div class="topic-metadata">

**Author:** [@5minpause](https://meta.discourse.org/u/5minpause)\
**Replies:** 138\
**Last updated:** [September 21, 2026, 4:23pm UTC](https://meta.discourse.org/t/move-from-standalone-container-to-separate-web-and-data-containers/29413 "2026-09-21T16:23:04Z")

</div>

:warning: This is an advanced setup. Don’t follow this unless you are experienced with Linux server administration and Docker. You also need to pay close attention to commits to discourse\_docker to make sure you notice …

---

## [Need help with dual container. Issue with LetsEncrypt for a few days now](https://meta.discourse.org/t/need-help-with-dual-container-issue-with-letsencrypt-for-a-few-days-now/411097)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**Replies:** 5\
**Last updated:** [August 28, 2026, 11:33am UTC](https://meta.discourse.org/t/need-help-with-dual-container-issue-with-letsencrypt-for-a-few-days-now/411097 "2026-08-28T11:33:11Z")

</div>

I’m getting to that point of desperation, because trying to have the Discourse Bot or Claude to fix this issue, seems impossible. I can’t really explain the issue, because I’m not that knowledgable, and I believe that’s …

---

## [Two-container and authorized\_keys?](https://meta.discourse.org/t/two-container-and-authorized-keys/352048)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 10:25am UTC](https://meta.discourse.org/t/two-container-and-authorized-keys/352048 "2025-02-13T10:25:24Z")

</div>

In the end of web\_only.yml is this line: awk -F\\# '{print $1;}' ~/.ssh/authorized\_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF\>=2 {print $NF;}' What is the meaning of it? I’m just wondering…

---

## [Bootstrap && destroy && start](https://meta.discourse.org/t/bootstrap-destroy-start/351354)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 3\
**Last updated:** [February 9, 2025, 9:52pm UTC](https://meta.discourse.org/t/bootstrap-destroy-start/351354 "2025-02-09T21:52:51Z")

</div>

This is very 101-level question. I have two container setup waiting for some peaceful moment to fire it up. But why this is always guided: ./launcher bootstrap .. && ./launcher destroy .. && ./launcher start .. I kin…

---

## [Launcher upgrade failing](https://meta.discourse.org/t/launcher-upgrade-failing/350708)

<div class="topic-metadata">

**Author:** [@rlauriston](https://meta.discourse.org/u/rlauriston)\
**Replies:** 5\
**Last updated:** [February 5, 2025, 10:18pm UTC](https://meta.discourse.org/t/launcher-upgrade-failing/350708 "2025-02-05T22:18:19Z")

</div>

The command that worked last time (Launcher rebuild app fails with "containers/app.yml does not exist" - #6 by pfaffman) is failing. root@sfofood:/var/discourse# ./launcher bootstrap web\_only && ./launcher destroy web\_o…

---

## [Suddenly I'm not able to bootstrap 'Data' container](https://meta.discourse.org/t/suddenly-im-not-able-to-bootstrap-data-container/321168)

<div class="topic-metadata">

**Author:** [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 9:31pm UTC](https://meta.discourse.org/t/suddenly-im-not-able-to-bootstrap-data-container/321168 "2024-08-12T21:31:19Z")

</div>

Answer to the above problem: I just came to know (mostly be chance/experiment) that you cannot bootstrap the data container. You HAVE TO rebuild the ‘data’ container. And also, you first need to stop ‘web\_only’ contain…

---

## [Discourse AI plugin failing container rebuilds/bootstrappings](https://meta.discourse.org/t/discourse-ai-plugin-failing-container-rebuilds-bootstrappings/320875)

<div class="topic-metadata">

**Author:** [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Replies:** 7\
**Last updated:** [August 9, 2024, 11:42am UTC](https://meta.discourse.org/t/discourse-ai-plugin-failing-container-rebuilds-bootstrappings/320875 "2024-08-09T11:42:03Z")

</div>

Today I tried to update thru UI/One Click upgrade. It failed. Currently I’m on: 3.4.0.beta1-dev (65895f44e9) I tried to rebuild the web\_only container, but it failed too, and succeeds only when I disable Discourse AI…

---

## [Change server to a two-container setup](https://meta.discourse.org/t/change-server-to-a-two-container-setup/316424)

<div class="topic-metadata">

**Author:** [@Saiano](https://meta.discourse.org/u/Saiano)\
**Replies:** 17\
**Last updated:** [July 29, 2024, 8:06pm UTC](https://meta.discourse.org/t/change-server-to-a-two-container-setup/316424 "2024-07-29T20:06:16Z")

</div>

Hi, I have two questions: Wich domain name should I use when setting up a staging server to a local server? Is it possibile to install the staging server with 2 containers mode and restore data automatically from s3? …

---

## [Launcher rebuild app fails with "containers/app.yml does not exist"](https://meta.discourse.org/t/launcher-rebuild-app-fails-with-containers-app-yml-does-not-exist/312787)

<div class="topic-metadata">

**Author:** [@rlauriston](https://meta.discourse.org/u/rlauriston)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 9:36pm UTC](https://meta.discourse.org/t/launcher-rebuild-app-fails-with-containers-app-yml-does-not-exist/312787 "2024-06-19T21:36:35Z")

</div>

The upload page told me: Updates via the web UI are disabled until you run the latest image. To do so log in to your server using SSH and run: cd /var/discourse git pull ./launcher rebuild app The first time it ran …

---

## [3.3.0.beta2-dev fc76622b56 Less backup data exists and cannot be restored normally](https://meta.discourse.org/t/3-3-0-beta2-dev-fc76622b56-there-is-less-backup-data-and-it-cannot-be-restored-normally/307720)

<div class="topic-metadata">

**Author:** [@sober](https://meta.discourse.org/u/sober)\
**Replies:** 17\
**Last updated:** [May 17, 2024, 1:25am UTC](https://meta.discourse.org/t/3-3-0-beta2-dev-fc76622b56-there-is-less-backup-data-and-it-cannot-be-restored-normally/307720 "2024-05-17T01:25:42Z")

</div>

Backup data suddenly decreased, recovery of reduced data is abnormal, website cannot interact normally, fortunately historical data can be found in Amazon S3 storage bucket, otherwise the loss would be immeasurable

---

## [When to update the data container of a two container setup?](https://meta.discourse.org/t/when-to-update-the-data-container-of-a-two-container-setup/310242)

<div class="topic-metadata">

**Author:** [@dmc](https://meta.discourse.org/u/dmc)\
**Replies:** 1\
**Last updated:** [April 10, 2024, 10:44pm UTC](https://meta.discourse.org/t/when-to-update-the-data-container-of-a-two-container-setup/310242 "2024-04-10T22:44:57Z")

</div>

Thanks for this how-to :slight\_smile: If we’re using discourse with 2 containers (web + data), when should we need to rebuild the data one?

---

## [Discourse down. Updated certificate, rebuilt app, but still not working](https://meta.discourse.org/t/discourse-down-updated-certificate-rebuilt-app-but-still-not-working/300569)

<div class="topic-metadata">

**Author:** [@WesPenre](https://meta.discourse.org/u/WesPenre)\
**Replies:** 13\
**Last updated:** [March 22, 2024, 8:20pm UTC](https://meta.discourse.org/t/discourse-down-updated-certificate-rebuilt-app-but-still-not-working/300569 "2024-03-22T20:20:57Z")

</div>

Hi, For some reason, I need to manually update my certificate every second month, but now it’s only been a little bit over a month, and it seems the certificate has expired again, and we can’t log into Discourse. Usual…

---

## [Bootstrapping failing for data.yml as well as web\_only](https://meta.discourse.org/t/bootstrapping-failing-for-data-yml-as-well-as-web-only/296861)

<div class="topic-metadata">

**Author:** [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 4:08am UTC](https://meta.discourse.org/t/bootstrapping-failing-for-data-yml-as-well-as-web-only/296861 "2024-02-28T04:08:19Z")

</div>

I don’t rebuild my containers often and just keep updating from browser based interface. Today when I wanted ai plugin to be inserted I found that both ‘Data’ and ‘Web\_only’ containers/ymls are failing to bootstrap. Ou…

---

## [Upgrade error for v3.2.0.beta3](https://meta.discourse.org/t/upgrade-error-for-v3-2-0-beta3/285257)

<div class="topic-metadata">

**Author:** [@BasilBoluk](https://meta.discourse.org/u/BasilBoluk)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 12:55am UTC](https://meta.discourse.org/t/upgrade-error-for-v3-2-0-beta3/285257 "2023-11-13T00:55:27Z")

</div>

Hi everyone, I’ve got error during upgrade from v3.2.0.beta2-dev to v3.2.0.beta3 (please see log below). Nginx wrote: " 502 Bad Gateway". Docker Update has done succesfully. I launch the upgrade processing through D…

---

## [Can't Update my Certificate](https://meta.discourse.org/t/cant-update-my-certificate/283084)

<div class="topic-metadata">

**Author:** [@WesPenre](https://meta.discourse.org/u/WesPenre)\
**Replies:** 11\
**Last updated:** [October 24, 2023, 11:20am UTC](https://meta.discourse.org/t/cant-update-my-certificate/283084 "2023-10-24T11:20:27Z")

</div>

Hello. My Discourse is up-to-date with version 3.2.0.beta3-dev. Still, yesterday by 5 pm European time the site went down (wespenreboards.com), and it’s obviously a certificate issue (see attachment. Open in New Tab and …

---

## [How to perform a restore when you have two containers?](https://meta.discourse.org/t/how-to-perform-a-restore-when-you-have-two-containers/281975)

<div class="topic-metadata">

**Author:** [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)\
**Replies:** 4\
**Last updated:** [October 11, 2023, 6:24pm UTC](https://meta.discourse.org/t/how-to-perform-a-restore-when-you-have-two-containers/281975 "2023-10-11T18:24:44Z")

</div>

Small question: how to perform the restore, when you have multiple containers (data and web\_only). I tried this howto first from within the data container: root@docker2:/var/discourse# ./launcher enter data x86\_64 arch…

---

## [Upgrade Error - rake db:migrate index on theme\_field\_id](https://meta.discourse.org/t/upgrade-error-rake-db-migrate-index-on-theme-field-id/278935)

<div class="topic-metadata">

**Author:** [@Joshua\_Lyon](https://meta.discourse.org/u/Joshua_Lyon)\
**Replies:** 10\
**Last updated:** [September 14, 2023, 9:25pm UTC](https://meta.discourse.org/t/upgrade-error-rake-db-migrate-index-on-theme-field-id/278935 "2023-09-14T21:25:53Z")

</div>

In the latest release notes (3.2.0.beta1), I noticed the discourse-ai plugin which I hadn’t seen before, so I attempted to add this plugin and upgrade my discourse instance at the same time. As mentioned in the title, I…

---

## [Discourse use double nginx error : Could not find module \`handlebars\` imported from \`discourse-common/lib/raw-handlebars\`](https://meta.discourse.org/t/discourse-use-double-nginx-error-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/276847)

<div class="topic-metadata">

**Author:** [@LeBlanc](https://meta.discourse.org/u/LeBlanc)\
**Replies:** 5\
**Last updated:** [August 30, 2023, 4:02am UTC](https://meta.discourse.org/t/discourse-use-double-nginx-error-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/276847 "2023-08-30T04:02:30Z")

</div>

Hi! My website uses version 2.9 of discourse. For some reason, I had to use double nginx for discourse. I deployed two discourse web\_only container nodes and used an nginx to proxy in front of them. My system architec…

---

## [Discourse Went Down Suddenly. No one can log in](https://meta.discourse.org/t/discourse-went-down-suddenly-no-one-can-log-in/272552)

<div class="topic-metadata">

**Author:** [@WesPenre](https://meta.discourse.org/u/WesPenre)\
**Replies:** 22\
**Last updated:** [July 24, 2023, 7:39pm UTC](https://meta.discourse.org/t/discourse-went-down-suddenly-no-one-can-log-in/272552 "2023-07-24T19:39:13Z")

</div>

My Discourse at wespenreboards.com has been down for a few hours. Members tell me that some get the error message that the forum could have been hacked. Another says that they get the message the certificate has expired.…

---

## [Command line restore for web only container can't load thor](https://meta.discourse.org/t/command-line-restore-for-web-only-container-cant-load-thor/68570)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 10\
**Last updated:** [July 17, 2023, 5:00pm UTC](https://meta.discourse.org/t/command-line-restore-for-web-only-container-cant-load-thor/68570 "2023-07-17T17:00:19Z")

</div>

I just tried to do a restore on a web\_only container and it whines that it can’t load thor when it tries to load\_rails. (If you don’t actually try to restore, it doesn’t fail --and OMG, how awesome is it that it suggest…

---

## [Suddenly boot strapping is failing](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106)

<div class="topic-metadata">

**Author:** [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Replies:** 25\
**Last updated:** [December 30, 2022, 7:29pm UTC](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106 "2022-12-30T19:29:45Z")

</div>

I didn’t consciously change anything, but today, when just git pull-ed and tried to bootstrap the web\_only.yml , its giving errors, after around 90 seconds of bootstrap process started. I’m pasting just the ending lines …

---

## [Upgrade failed!](https://meta.discourse.org/t/upgrade-failed/242000)

<div class="topic-metadata">

**Author:** [@justin\_gordon](https://meta.discourse.org/u/justin_gordon)\
**Replies:** 4\
**Last updated:** [October 16, 2022, 12:53pm UTC](https://meta.discourse.org/t/upgrade-failed/242000 "2022-10-16T12:53:23Z")

</div>

https://forum.shakacode.com/ is down! and it’s a resource to the programming community! Maybe just need to upgrade Bundler? Maybe this error points to the solution. Or maybe I should not have pulled the latest commit? …

---

## [Beta/tests-passed sample containers do not start](https://meta.discourse.org/t/beta-tests-passed-sample-containers-do-not-start/233775)

<div class="topic-metadata">

**Author:** [@Cintia\_Del\_Rio](https://meta.discourse.org/u/Cintia_Del_Rio)\
**Replies:** 12\
**Last updated:** [July 26, 2022, 2:53am UTC](https://meta.discourse.org/t/beta-tests-passed-sample-containers-do-not-start/233775 "2022-07-26T02:53:13Z")

</div>

Before embarking on this journey with me, please note that while this error has already been mentioned in this forum twice (one and two), the solution of ‘rebuilding data container’ didn’t work. I’m working with complete…

---

## [Unable to create web\_only image for a fresh install](https://meta.discourse.org/t/unable-to-create-web-only-image-for-a-fresh-install/180221)

<div class="topic-metadata">

**Author:** [@ann\_eav](https://meta.discourse.org/u/ann_eav)\
**Replies:** 10\
**Last updated:** [February 25, 2021, 3:30pm UTC](https://meta.discourse.org/t/unable-to-create-web-only-image-for-a-fresh-install/180221 "2021-02-25T15:30:17Z")

</div>

Hello :blush: I am still trying to create our pipeline to work with Discourse. I have a fresh Redis container and a fresh Postgres container to use with discourse. Next step for me is build the image of the web\_only c…

---

## [Old Postgres on Docker Image with two containers: web and data](https://meta.discourse.org/t/old-postgres-on-docker-image-with-two-containers-web-and-data/170503)

<div class="topic-metadata">

**Author:** [@stuts](https://meta.discourse.org/u/stuts)\
**Replies:** 9\
**Last updated:** [November 18, 2020, 4:42pm UTC](https://meta.discourse.org/t/old-postgres-on-docker-image-with-two-containers-web-and-data/170503 "2020-11-18T16:42:38Z")

</div>

Hi All, I’m stuck trying to upgrade a docker Discourse instance. I get the following error when I attempt to rebuild, bootstrap or in any other way setup the container: I, \[2020-11-18T15:23:37.357104 #1\] INFO -- : \> c…

---

## [Unable to merge users after SSO switch](https://meta.discourse.org/t/unable-to-merge-users-after-sso-switch/133718)

<div class="topic-metadata">

**Author:** [@TGP](https://meta.discourse.org/u/TGP)\
**Replies:** 6\
**Last updated:** [November 19, 2019, 7:44pm UTC](https://meta.discourse.org/t/unable-to-merge-users-after-sso-switch/133718 "2019-11-19T19:44:12Z")

</div>

\[ Me again. \] When we switched to SSO, we discovered one of our users used separate email addresses for WordPress and Discourse, resulting in his having two accounts. And now that he’s used both, things are a little mes…

---

## [Update web and data containers fails at rake db:migrate with PG::ConnectionBad](https://meta.discourse.org/t/update-web-and-data-containers-fails-at-rake-db-migrate-with-pg-connectionbad/97118)

<div class="topic-metadata">

**Author:** [@ZackFea](https://meta.discourse.org/u/ZackFea)\
**Replies:** 2\
**Last updated:** [September 13, 2018, 11:39pm UTC](https://meta.discourse.org/t/update-web-and-data-containers-fails-at-rake-db-migrate-with-pg-connectionbad/97118 "2018-09-13T23:39:37Z")

</div>

I did try to update my discourse to latest version using the ./launcher rebuild mywebcontainer command. This fails, see log below. I did try to resolve this by remove all plugins from my yml config, didnt work. Rebuild t…

---

## [How does launcher update work in multicontainer setup?](https://meta.discourse.org/t/how-does-launcher-update-work-in-multicontainer-setup/93388)

<div class="topic-metadata">

**Author:** [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)\
**Replies:** 5\
**Last updated:** [July 30, 2018, 5:22am UTC](https://meta.discourse.org/t/how-does-launcher-update-work-in-multicontainer-setup/93388 "2018-07-30T05:22:53Z")

</div>

Hello, long pile of text ahead, please bear with me, i’m just curious. Dual container user here: data and web\_only. In order to update, i ssh into my server, then i imagined i would write: sh /var/discourse/lanucher …

---

## [Failed to bootstrap web\_only - no cid file but totally fresh build](https://meta.discourse.org/t/failed-to-bootstrap-web-only-no-cid-file-but-totally-fresh-build/84709)

<div class="topic-metadata">

**Author:** [@ThriceGood](https://meta.discourse.org/u/ThriceGood)\
**Replies:** 2\
**Last updated:** [April 6, 2018, 12:54pm UTC](https://meta.discourse.org/t/failed-to-bootstrap-web-only-no-cid-file-but-totally-fresh-build/84709 "2018-04-06T12:54:28Z")

</div>

Hello, I am doing a first build of discourse, using the data.yml and web\_only.yml configs. I have no running containers and have never had a web\_only container running. data.yml bootstraps successfully. But web\_only.yml…
