Skip to content

MariaDB

MariaDB is a relational database that’s compatible with MySQL, and adds performance and tooling improvements. You can use MariaDB when your project requires a db compatible with MySQL or if you are migrating existing MySQL workloads.

Paste this entry into the addons list in diploi.yaml to add MariaDB to your project.

addons:
- name: MariaDB
identifier: mariadb
package: https://github.com/diploi/addon-mariadb#v1.0.0-url

What MariaDB defines in a deployment.

MariaDB sets these values in every deployment. Components can import them with env.include as mariadb.*. Defaults marked generated are unique to each deployment.

Parameters are set on the deployment’s Setup tab.

Connection

Connection & user configuration.

Variable Type Default Description
MARIADB_HOST string generated Host
MARIADB_PORT integer 3306 Port
MARIADB_USER string root User
MARIADB_PASSWORD secret root Password
MARIADB_DATABASE string app Database
DATABASE_URL string generated

Other variables

Set by the package. Override them on the deployment’s Environment tab or in diploi.yaml.

Variable Default
MARIADB_USER root

Uses the official mariadb Docker image.