> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host Uptime Kuma (MariaDB) with Docker

> Uptime Kuma with a MariaDB sidecar provisioned, for the setups that opt out of its default SQLite file.

Uptime Kuma with a MariaDB sidecar provisioned, for the setups that opt out of its default SQLite file.

This page describes the Levelrail template for Uptime Kuma (MariaDB) (Monitoring). It deploys the services below as one Docker Compose app on your own server. Project site: [https://github.com/louislam/uptime-kuma/wiki](https://github.com/louislam/uptime-kuma/wiki).

Recommended memory: about 512 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `mariadb` | `mariadb:11` | none | `uptime_kuma_mariadb_data -&#62; /var/lib/mysql` |
| `uptime-kuma` | `louislam/uptime-kuma:2` | 3001 | `uptime_kuma_mariadb_app_data -&#62; /app/data` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `mariadb` | `MYSQL_DATABASE` | Preset in the template |
| `mariadb` | `MYSQL_PASSWORD` | Generated at deploy |
| `mariadb` | `MYSQL_ROOT_PASSWORD` | Generated at deploy |
| `mariadb` | `MYSQL_USER` | Generated at deploy |
| `uptime-kuma` | `TZ` | Preset in the template |

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

## Deploy Uptime Kuma (MariaDB) with Levelrail

In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select Uptime Kuma (MariaDB). Review the Compose body and deploy.

With the CLI:

```bash theme={"dark"}
levelrail-cli templates deploy uptime-kuma-mariadb --name my-uptime-kuma-mariadb
```

See the [service template catalog](/templates-and-registry) for how templates work, and [Getting started](/getting-started) if you have not installed Levelrail yet.

## More Monitoring templates

* [Beszel](/self-host/beszel)
* [Bugsink](/self-host/bugsink)
* [Changedetection.io](/self-host/changedetection)
* [Checkmate](/self-host/checkmate)
* [Diun](/self-host/diun)

All templates are listed in the [self-host gallery](/self-host).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.