# Multisite, 2 contenedores y error "PG::ConnectionBad: could not connect to server"

**URL:** <https://meta.discourse.org/t/multisite-2-containers-and-pg-could-not-connect-to-server-error/91877>\
**Category:** Self-hosting\
**Created:** [9 Julio, 2018 12:05 UTC](https://meta.discourse.org/t/multisite-2-containers-and-pg-could-not-connect-to-server-error/91877 "2018-07-09T12:05:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CamilleRoux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camilleroux/32/119575_2.png) [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)\
**Post date:** [9 Julio, 2018 16:31 UTC](https://meta.discourse.org/t/multisite-2-containers-and-pg-could-not-connect-to-server-error/91877/2 "2018-07-09T16:31:27Z")

</div>

Ok, I’ve to had some fields:

```plaintext
before_bundle_exec:
    - file:
        path: $home/config/multisite.yml
        contents: |
         secondsite:
           adapter: postgresql
           username: discourse
           password: SECRET
           host: data
           database: rs_discourse
           pool: 25
           timeout: 5000
           db_id: 2
           host_names:
             - test.test.com

```

---

_[View the full topic](https://meta.discourse.org/t/multisite-2-containers-and-pg-could-not-connect-to-server-error/91877)._
