Stacks/Matomo/Databases

Databases for the Matomo stack

This page shows both database modes supported by the stack: container-based databases that run as services in the stack and managed database services that keep the database outside it.

MariaDB are already available inside the stack. You can also add managed database services when you want the database to run outside the stack.

Container databases in this stack

Database providers and services

Keep the same stack-specific connection model whether you run the database inside the stack or connect to a managed provider.

Azure

Use Azure Databases as the managed database target for this stack.

DigitalOcean

Use DigitalOcean Managed databases as the managed database target for this stack.

Google Cloud Platform

Use Google Cloud Platform Cloud SQL as the managed database target for this stack.

Container databases stay close to the app

MariaDB can run inside the stack when you want a self-contained app and database setup.

Managed database connections stay reusable

Managed database services can be added without rebuilding the app-side connection logic.

Move between the two models

Start with a container database or move to a managed one later without rethinking how the app is configured in the stack.