# Self-host Umami

> Simple, privacy-focused website analytics without tracking cookies or ad-tech.

- Page: https://levelrail.com/templates/umami/
- JSON: https://levelrail.com/templates/umami.json
- Category: Analytics
- Licence: MIT (Permissive license)
- Source: https://github.com/umami-software/umami
- Upstream docs: https://umami.is/docs

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: postgresql-v2.19.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | umami_db_data -> /var/lib/postgresql/data |
| umami | ghcr.io/umami-software/umami | postgresql-v2.19.0 | 3000 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| umami | APP_SECRET | generated |
| umami | DATABASE_TYPE | preset |
| umami | DATABASE_URL | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy umami --name my-umami
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/umami/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Umami on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id umami for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, ghcr.io/umami-software/umami:postgresql-v2.19.0 is what you deploy there.

Self-host Umami, Umami docker compose file, deploy Umami on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
