Two databases under one domain

How can you add two databases under one domain? Something like

      db_name: one
      db_password: example_dbpassword
      db_name: two
      db_password: example_dbpassword
      # the development environment uses the defaults set in group_vars/all/vault.yml

but then working. The way shown here one of the two will be skipped.

What’s the use case for this?

As far as I know — without additional modification — you can only connect WordPress to one database and the env var is used for configuring just one WordPress application. So, out of the box, Trellis can only support one database per WordPress instance, but like many things, if you do some modification, you probably can get it to support two.

1 Like