---
title: "Self-hosted web analytics: Umami, Matomo or Plausible CE · CloudSat"
description: "Compare Umami, Matomo and Plausible CE for self-hosted web analytics, then deploy Umami v3 with Docker Compose, PostgreSQL and HTTPS on your server."
url: https://cloudsat.io/learn/self-hosted-web-analytics-umami-matomo-plausible
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

# Self-hosted web analytics: Umami, Matomo or Plausible CE

Compare Umami, Matomo and Plausible CE for self-hosted web analytics, then deploy Umami v3 with Docker Compose, PostgreSQL and HTTPS on your server.

CloudSat team November 18, 2026 7 min read

A hosted analytics script sends every page view to someone else's servers. Self-hosting flips that: the raw data sits in a database you control, you decide how long it is kept, and one third-party processor disappears from your privacy policy. In exchange, you now operate a small data service. This guide compares the three open-source tools most teams shortlist, Umami, Matomo and Plausible Community Edition (CE), then walks through a Umami v3 install with Docker Compose and PostgreSQL.

## The shortlist at a glance

|  | Umami | Matomo | Plausible CE |
| --- | --- | --- | --- |
| Written in | Node.js (Next.js) | PHP | Elixir |
| Database | PostgreSQL only (v3) | MySQL or MariaDB | PostgreSQL plus ClickHouse |
| License | MIT | GPL-3.0 | AGPL-3.0 |
| Cookies by default | None | Yes, can be disabled | None |
| Release rhythm | Frequent 3.x releases | Regular 5.x releases | Twice a year |
| Strongest at | Clean dashboards, events, product questions | Depth: e-commerce, goals, tag manager | A one-page traffic overview |

Two smaller options are worth knowing. GoatCounter is a single Go binary that stores data in SQLite or PostgreSQL, licensed under a lightly modified EUPL 1.2, and it suits personal sites. Fathom Lite, the open-source edition of Fathom, is MIT-licensed but in maintenance mode: its maintainers fix bugs and add no features, which makes it a weak base for a new project.

## Three questions that decide it

### What do you need to measure?

For page views, referrers, campaigns and a few custom events, all three tools are enough. Umami has grown well past that in its v3 line: segments, cohorts, retention, funnels, goals, attribution and revenue reports, plus session replays (from 3.1) and heatmaps (from 3.2) through an optional recorder script you enable per website.

Matomo goes deepest on e-commerce and marketing work, with goals and a built-in tag manager. Heatmaps, session recording, funnels and A/B testing are paid premium plugins for the self-hosted edition, so price those before you commit.

Plausible CE keeps its dashboard deliberately small. Plausible reserves funnels, path exploration, e-commerce revenue goals, SSO and its Sites API for the cloud plans, and CE ships new features in two releases a year.

### How much do you want to operate?

Umami is one container plus one PostgreSQL database, and it is the lightest of the three to upgrade. Matomo is a classic PHP application: you run a web server, PHP-FPM and MariaDB, keep PHP patched, and schedule a cron job for report archiving once traffic grows. Plausible CE needs ClickHouse next to PostgreSQL; its README asks for at least 2 GB of RAM and a CPU with SSE 4.2 or NEON. ClickHouse is excellent at aggregating events, but it is one more database to back up and patch.

### What does consent require on your site?

Umami and Plausible set no cookies, and Matomo can run cookieless with one tracker setting. That is why many site owners run these tools without a consent banner, but the rules depend on your jurisdiction and on everything else your pages load. Settle it with whoever owns your privacy compliance. The tool makes a cookieless setup possible; it does not make the legal call for you.

## Umami v3 in practice

Umami v3 arrived in November 2025 with a rebuilt interface and one breaking change: MySQL support was dropped, and PostgreSQL 12.14 or newer is now the only database. If you still run Umami 2.x on MySQL, the project's migration guide moves your data into PostgreSQL on v2 first, then you upgrade. The current release at the time of writing, 3.5.0, makes the `APP_SECRET` variable mandatory, requires Node.js 20.19 or newer for source installs, and forces the default admin password to be changed at first login.

The dashboard opens on visitors, visits, views, bounce rate and visit duration, with breakdowns by page, referrer, country, browser and device. Filters live in the URL, so a filtered view can be bookmarked or shared, and saved segments make repeat questions quick. Links and pixels give you tracked short URLs and image beacons for places where JavaScript cannot run, such as email.

## Deploy Umami with Docker Compose

You need a Linux server with Docker Engine and the Compose plugin, plus a DNS record such as `analytics.example.com` pointing at it. A small [Cloud VPS](https://cloudsat.io/cloud-vps) handles a few low-traffic sites, and CloudSat also lists [Umami](https://cloudsat.io/apps/deploy-umami) and [Matomo](https://cloudsat.io/apps/deploy-matomo) as one-click apps if you would rather skip the setup.

### 1. Create the project and its secrets

```bash
mkdir -p ~/umami && cd ~/umami
printf 'APP_SECRET=%s\nPOSTGRES_PASSWORD=%s\n' \
  "$(openssl rand -hex 32)" "$(openssl rand -hex 24)" > .env
chmod 600 .env
```

Hex strings are safe inside a connection URL, which is why the database password is generated the same way. Compose reads `.env` from the project folder automatically.

### 2. Write the Compose file

Save this as `compose.yaml` in the same folder:

```yaml
services:
  umami:
    image: ghcr.io/umami-software/umami:latest
    ports:

      - "127.0.0.1:3000:3000"

    environment:
      DATABASE_URL: postgresql://umami:${POSTGRES_PASSWORD}@db:5432/umami
      APP_SECRET: ${APP_SECRET}
    depends_on:
      db:
        condition: service_healthy
    init: true
    restart: always
  db:
    image: postgres:17-alpine
    environment:
      POSTGRES_DB: umami
      POSTGRES_USER: umami
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    volumes:

      - umami-db-data:/var/lib/postgresql/data

    restart: always
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U umami -d umami"]
      interval: 5s
      timeout: 5s
      retries: 5
volumes:
  umami-db-data:
```

Publishing the port on `127.0.0.1` matters. Docker writes its own firewall rules, so a port published on all interfaces can be reachable even when `ufw` reports it closed. Bound to loopback, Umami is only reachable through the reverse proxy.

### 3. Add HTTPS with Caddy

Caddy is in Ubuntu's archive and requests certificates on its own. Open ports 80 and 443 in your firewall, then:

```bash
sudo apt install caddy
sudo tee /etc/caddy/Caddyfile > /dev/null <<'EOF'
analytics.example.com {
    reverse_proxy 127.0.0.1:3000
}
EOF
sudo systemctl reload caddy
```

### 4. Start it and add your site

```bash
docker compose up -d
docker compose logs -f umami
```

Wait for the database migrations to finish, then open `https://analytics.example.com`, sign in as `admin` with the password `umami`, and set a new password when prompted. Add your website in the dashboard, copy the tracking code it generates and paste it into the `<head>` of your pages:

```html
<script defer src="https://analytics.example.com/script.js"
  data-website-id="your-website-id"></script>
```

If content blockers filter the default script name, set `TRACKER_SCRIPT_NAME` and `COLLECT_API_ENDPOINT` in the `environment` block to rename the script and the collection route.

## Keep it healthy

- **Back up the database, not the container.** `docker compose exec -T db pg_dump -U umami -Fc umami > umami.dump` writes a compressed dump you can restore with `pg_restore`. Copy it off the server; the [backup plan in this guide](https://cloudsat.io/learn/business-data-on-a-vps-access-and-backups) shows one way.
- **Upgrade deliberately.** `docker compose pull && docker compose up -d` fetches the new image, and Umami applies schema migrations when it starts. Read the release notes first: 3.5.0 changed the required variables.
- **Pin a version** once you are stable. Replace `latest` with the release tag you tested, so a host reboot never upgrades you by surprise.
- **Watch disk growth.** Event tables grow with traffic. `docker system df -v` shows the volume size, and it is easier to move up a plan before the disk fills than after.

## When self-hosting is the wrong call

Self-hosting fits poorly when nobody on the team will apply updates, when you depend on an ad platform's conversion tracking, or when traffic is large enough that tuning PostgreSQL or ClickHouse becomes a job of its own. In those cases, the hosted editions from the same projects (Umami Cloud, Matomo Cloud and Plausible's own service) run the same software without the operations work. If your main goal is to stop feeding visitor data to an advertising company, any of the three solves it; self-hosting adds control over where the data lives and how long it stays.

## FAQ

### Is self-hosted Umami free?

Yes. The code is MIT-licensed, so you can run it for any number of sites at no license cost. What you pay for is the server and the time to maintain it. Umami also sells a hosted version for people who would rather not operate it.

### Do I still need a cookie banner?

Umami sets no cookies and does not collect personal data automatically, which is why many sites run it without a banner. Whether you need consent also depends on your jurisdiction and on everything else your pages load, so treat the analytics tool as one input to that decision, not the answer.

### Can Umami v3 use MySQL or MariaDB?

No. Version 3 supports PostgreSQL only. Existing MySQL installs follow the official path: bring v2 up to date, move the data into PostgreSQL, then upgrade to v3.

### How much server does each tool need?

A small VPS is plenty for Umami plus PostgreSQL when only a handful of quiet sites report to it; as events pile up, add memory and disk for the database. Plausible CE asks for at least 2 GB of RAM because of ClickHouse, and Matomo's needs scale with traffic and with how often you archive reports.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

- [Business data on a VPS: access, encryption and backups](https://cloudsat.io/learn/business-data-on-a-vps-access-and-backups): Self-hosting Business data on a VPS: access, encryption and backups 6 min read
- [Adminer on a VPS: manage databases without exposing them](https://cloudsat.io/learn/adminer-on-a-vps-without-exposing-it): Databases Adminer on a VPS: manage databases without exposing them 6 min read
- [A self-hosted developer stack on one VPS: layout and limits](https://cloudsat.io/learn/developer-tool-stack-on-one-vps): Self-hosting A self-hosted developer stack on one VPS: layout and limits 6 min read
- [Stream your own music library with Navidrome](https://cloudsat.io/learn/self-host-your-music-with-navidrome): Self-hosting Stream your own music library with Navidrome 6 min read
