What is MariaDB?
MariaDB is the community-developed fork of MySQL, drop-in compatible for the vast majority of applications and a popular default across CMSes, frameworks, and self-hosted apps. This template is a single MariaDB 11.8 node configured through the official image’s environment variables, with data on a volume.
It runs internal-only on Lyngbak - apps connect at mariadb:3306, and an app database and user are created on first boot. Lyngbak offers managed MySQL for hands-off operation; run this when you specifically want MariaDB or full control of the configuration.
MariaDB has a rich HA story, and the catalogue covers all of it: this standalone node, mariadb-replication (asynchronous primary/replica), and mariadb-galera (synchronous multi-primary cluster).
What you get
- MariaDB 11.8, the community MySQL fork
- Drop-in compatible with MySQL for most apps
- Configured entirely by environment variables
- App database + user created on first boot
- Internal-only - reached at mariadb:3306
- GPLv2
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
mariadb | relational database (:3306) | no (internal) |
Before you deploy
MARIADB_ROOT_PASSWORDroot password
MARIADB_PASSWORDpassword for the app user
Sizing and billing
1 GiB suits typical workloads; raise for larger buffer pools. A single node is not HA - see mariadb-replication or mariadb-galera.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 9.77 GiB of volumes cost $0.15 per GiB a month ($1.47/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| AWS RDS for MariaDB | db.t4g.micro | $15/mo | smallest single-AZ instance/mo + storage |
| Aiven for MySQL | Startup | $31/mo | smallest managed plan/mo |
Managed MariaDB/MySQL bills per instance; self-hosted is billed for the compute it reserves. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Is MariaDB compatible with MySQL?
For the large majority of applications, yes - same SQL, same wire protocol, same clients. There are version-specific differences in newer features, but typical CMS/app workloads run unchanged on either.
What HA options does the catalogue offer?
Three modes: this standalone node, mariadb-replication (asynchronous primary/replica for read-scaling and hot standby), and mariadb-galera (synchronous multi-primary cluster where any node accepts writes).
Managed MySQL or this?
Managed MySQL is simpler to operate. Choose this MariaDB template when you specifically want MariaDB, a particular version, or custom server configuration.