The default stack uses MySQL for the db service while the pantheon and platformsh stacks use MariaDB.
Docksal has also defined PostreSQL as a db service option. You do not have to make any
configuration changes to use MySQL, but if you want to specify the use of MariaDB or PostreSQL,
you will need to modify your docksal.yml
file.
Docksal has defined a db service with a MariaDB image. To set your db service to use MariaDB
instead of MySQL, set the db service in your docksal.yml
file.
version: "2.1"
services:
db:
extends:
file: ${HOME}/.docksal/stacks/services.yml
service: mariadb
Docksal has defined a db service with a PostreSQL image. To set your db service to use PostreSQL instead of MySQL,
set the db service in your docksal.yml
file.
version: "2.1"
services:
db:
extends:
file: ${HOME}/.docksal/stacks/services.yml
service: pgsql
Remember to run fin project start
(fin p start
) to apply the configuration.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Docksal, ask it in Discussions on GitHub. Open an issue if you want to report a problem or suggest an improvement. You can also contribute changes to this page using the link in the top right corner.