Additional database configurations #3926
Replies: 2 comments 2 replies
-
It's a bit more complex than that - You have to run the separate containers for each database type, and the assumption of a single database container is built in everywhere. However, it wouldn't be hard to do all the things you want by running all the containers and versions you want as 3rd-party services, just using the official images. The only thing that has to be done is manual configuration of the settings files. See https://ddev.readthedocs.io/en/latest/users/extend/additional-services/ and https://ddev.readthedocs.io/en/latest/users/extend/custom-compose-files/ I'd be happy to help you with this for your tests. It doesn't require a re-architecture of DDEV. |
Beta Was this translation helpful? Give feedback.
-
Thank you. This is a good workaround for migrating from one infrastructure to another. It does not address the (common) situation where an application genuinely is working with more than one sql engine on an ongoing basis. But I suppose one could fake that scenario also using the above idea. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
There are times when a single project needs to be able to connect to multiple database types/versions at the same time.
For example, Craft CMS supports both MySQL/MariaDB and PostgreSQL, and we need to be able to run tests across both simultaneously.
It would be awesome if this was possible out of the box with DDEV. Perhaps configured using a new
additional_databases
setting, like so:The keys would define the additional databases’ names, which could be used in place of
db
for the container name (e.g.ddev-myproject-pg
), and perhaps for the username/password as well.Beta Was this translation helpful? Give feedback.
All reactions