Hey, @mpalmer, this seems like the problem I am having.
Ok, finally got it figured out. For those struggling with mulitsite + multicontainer setup please note the sample in the first post is not complete. You do need host and password specified in your secondsite section
before_bundle_exec: - file: path: $home/config/multisite.yml contents: | secondsite: adapter: postgresql database: b_discourse host: data password: <DiscourseUserPGPassword> pool: 25 timeout: 5000 db_id: 2 host_names: - b.discourse.example.com
Hope that helps someone.
After quite some time, I can report that this worked!
The correct order seems to be:
- Create and migrate the DB with my script above and @pfaffman’s bugfix.
- Restart the container.
The difference is multisite vs multisite+multicontainer. If you are just running multiple sites in the same container then you don’t need the host/password.