# Unable to upgrade discourse with separate data container

**URL:** <https://meta.discourse.org/t/unable-to-upgrade-discourse-with-separate-data-container/40185>\
**Category:** Self-hosting\
**Created:** [25 Febrero, 2016 20:18 UTC](https://meta.discourse.org/t/unable-to-upgrade-discourse-with-separate-data-container/40185 "2016-02-25T20:18:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fuerst](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuerst/32/120729_2.png) [@fuerst](https://meta.discourse.org/u/fuerst)\
**Post date:** [4 Noviembre, 2016 22:29 UTC](https://meta.discourse.org/t/unable-to-upgrade-discourse-with-separate-data-container/40185/4 "2016-11-04T22:29:47Z")

</div>

Looks like you need to add host and password to the multisite.yml configuration and you’ll be fine:

```plaintext
  before_bundle_exec:
    - file:
        path: $home/config/multisite.yml
        contents: |
         squadwars:
           adapter: postgresql
           database: squadwars
           host: data
           password: REDACTED
           pool: 25
           timeout: 5000
           db_id: 2
           host_names:
             - discourse.squadwars.org

```

See the sample multisite.yml at [https://raw.githubusercontent.com/discourse/discourse/master/config/multisite.yml.production-sample](https://raw.githubusercontent.com/discourse/discourse/master/config/multisite.yml.production-sample)

```plaintext
mlp:
  adapter: postgresql
  database: discourse_mlp
  username: discourse_mlp
  password: applejack
  host: dbhost
  pool: 5
  timeout: 5000
  db_id: 1	# ensure db_id is unique for each site
  ### If you change this setting you will need to
  ### - restart sidekiq if you change this setting
  ### - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake`
  host_names:
    - discourse.equestria.com
    - discourse.equestria.internal

drwho:
  adapter: postgresql
  database: discourse_who
  username: discourse_who
  password: "Up the time stream without a TARDIS"
  host: dbhost
  pool: 5
  timeout: 5000
  db_id: # ensure db_id is unique for each site
  ### If you change this setting you will need to
  ### - restart sidekiq if you change this setting
  ### - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake`
  host_names:
    - discuss.tardis.gallifrey

```

---

_[View the full topic](https://meta.discourse.org/t/unable-to-upgrade-discourse-with-separate-data-container/40185)._
