Umami analytics self-hosted: the server it needs and what it costs
Published
Umami is an open-source web analytics tool that you can run on your own server for free under the MIT license; all it needs is Docker and a PostgreSQL database. A small VPS is enough to start: on our price list, 1 vCPU, 2 GB of memory and 40 GB of NVMe cost $6.67 a month, against $20 a month for Umami Cloud Pro.
The Umami facts below come from its documentation, its pricing page and its GitHub repository as we read them on 4 December 2026, when the latest release was v3.5.1, published on 2 December. Our prices are per month and without tax.
What you get when you host it yourself
Self-hosted Umami is the same program as Umami Cloud: page views, events, referrers, countries and devices, for as many websites as you add. Umami says it uses no cookies and collects no personal data, so on its own reading you do not need a cookie banner for it. Check that with whoever handles privacy for your site, because the banner also depends on everything else the site loads.
What you take on is the work Umami Cloud does for you: updates, the database, backups and HTTPS. The data stays on your server, and there is no limit on events or on how long you keep them, other than the disk.
When Umami Cloud is the better deal
Umami Cloud's Hobby plan is free for 100,000 events a month on one website, with 6 months of data. For a personal blog or a single small site that is less work and costs nothing, so stay there.
Hosting it yourself pays off in three cases. You have more than one site, or more than 100,000 events a month: Pro is $20 a month for 1 million events and up to 20 websites, with 2 years of data. You have a lot of traffic: Business is $200 a month for 10 million events. Or you want the data on a server you control, in a location you choose. In each case a VPS costs less per month than the Cloud plan it replaces, as long as you count your own time for upkeep.
The server it needs
Umami publishes no CPU, memory or disk minimum. It needs Node.js 20.19 or newer if you build it from source, and PostgreSQL 12.14 or newer; with Docker both come in containers. These sizes are our suggestion, not Umami's:
| VPS size | For | Per month |
|---|---|---|
| 1 vCPU, 2 GB, 40 GB NVMe | A few websites with modest traffic | $6.67 |
| 2 vCPU, 4 GB, 80 GB NVMe | Many websites, or a few million events a month | $13.34 |
| 4 vCPU, 8 GB, 160 GB NVMe | Heavy traffic and long data retention | $26.68 |
Umami does not say how much disk each event takes, so watch the database volume grow for a month and add disk before it fills. On our VPS you can add NVMe without changing the rest of the plan.
Install it with Docker Compose
Install Docker Engine from Docker's own instructions, clone the Umami repository, and create a .env file with APP_SECRET set to a random string, for example the output of openssl rand -hex 32. Since v3.5.0 the Compose file will not start without it. Then run docker compose up -d. The file starts two containers: Umami from ghcr.io/umami-software/umami:latest, and PostgreSQL 15 with its data in a Docker volume.
Before you start it, change three things in the Compose file. Replace the database password, which is umami in the example. Set TWO_FACTOR_ENCRYPTION_KEY to a 64-character hex string if you want two-factor login. And pin the Umami image to a version tag instead of latest, so an update happens when you choose.
The first login is admin with the password umami. Since v3.5.0 Umami makes you replace that password before you can continue.
Close port 3000
The example Compose file publishes Umami as 3000:3000. Our servers start with a firewall that lets in only SSH, but that does not protect a Docker port: Docker's documentation says published container ports are routed before ufw's rules apply. So Umami is on the internet over plain HTTP as soon as it starts. Change the line to 127.0.0.1:3000:3000 and put a reverse proxy with HTTPS in front of it, such as Caddy or Nginx, on ports 80 and 443. Open those two in ufw, and in the Console firewall if you use it.
Then add the tracking script to your sites. If ad blockers hide it, Umami lets you rename the script with TRACKER_SCRIPT_NAME and move the endpoint that receives the data with COLLECT_API_ENDPOINT. DISABLE_TELEMETRY=1 turns off the anonymous usage data Umami sends.
Backups and updates
Each of our servers has a single NVMe drive with no RAID, so a backup on the same drive does not survive the drive. All your statistics are in PostgreSQL: run pg_dump inside the database container on a schedule and copy the file off the server. Take one before every update too.
To update, pull the new image and recreate the container. Releases are frequent, four between 17 September and 2 December 2026, and the v3.5.1 notes ask you to rebuild or re-pull the image to get the fix.
Questions
Is Umami analytics free?
Self-hosted Umami is free and open source under the MIT license; you pay only for the server. Umami Cloud has a free Hobby plan for 100,000 events a month on one website, then Pro at $20 a month and Business at $200 a month.
What database does Umami use?
PostgreSQL, version 12.14 or newer. The official Docker Compose file runs PostgreSQL 15 next to Umami, with the data in a Docker volume.
What port does Umami use?
Port 3000. The example Compose file publishes it on every address, and Docker ports bypass ufw, so bind it to 127.0.0.1 and serve Umami through a reverse proxy with HTTPS on 443.
What is the default Umami login?
Username admin and password umami. Since v3.5.0 Umami asks you to change the password at the first login.
Sources, read on 4 December 2026: Umami installation, environment variables, Umami pricing, Umami repository, Umami releases, Docker and ufw.
Written and checked by the VPS Provider team.