How to self-host Umami
Umami is a cookie-free web analytics app that needs only itself and a PostgreSQL database. Its official Docker Compose file includes both, so a working install takes a few commands.
Steps and prices checked Nov 19, 2026 against the official docs (sources below). Umami on GitHub: 40.5k stars, MIT license, active, latest release v3.5.0 on Nov 12, 2026 (as of Nov 30, 2026).
Three ways to run it
| Option | Best for | Cost | How |
|---|---|---|---|
| Railway (one click) | No server to manage; HTTPS included. | Hobby plan $5/month minimum, includes $5 of usage | Railway's template runs Umami with PostgreSQL and Valkey: deploy Umami on Railway. |
| DigitalOcean Droplet | Your own server for Umami and other small apps. | From $6/month (1 GiB) | Create a Droplet with Docker at DigitalOcean, then follow the steps below. |
| Umami Cloud | Not self-hosting at all. | Hobby $0 up to 100K events/month (1 site); Pro $20/month | Sign up at umami.is. |
What you need
- A server with Docker and Docker Compose (or Node.js 20.19+ if you install from source).
- PostgreSQL v12.14 or newer. The Docker Compose file creates one for you.
- A domain or subdomain with HTTPS in front of Umami (for example with Caddy or Nginx), so the tracking script loads on your HTTPS site.
Step by step (your own server)
- Get the code.
git clone https://github.com/umami-software/umami.git cd umami - Create the secret. The Compose file reads
APP_SECRETfrom a.envfile and will not start without it. Generate a random value and save it:echo "APP_SECRET=$(openssl rand -hex 32)" > .env - Start Umami and PostgreSQL. Umami then runs on port 3000.
docker compose up -d - Log in and change the password. Open Umami and log in with username
adminand passwordumami. Since v3.5.0 Umami makes you replace this default password before you continue. - Put it behind HTTPS. Point a subdomain at the server and proxy it to port 3000. With Caddy installed on the server, a two-line Caddyfile is enough, and Caddy gets the certificate automatically:
stats.example.com { reverse_proxy localhost:3000 } - Add your website and the tracking code. Click Websites → Add website, enter a name and your domain, and save. Then click Edit on the site, copy the code under Tracking code, and paste it into the
<head>of your site. Visits should show up right away.
Updating
Pull the latest image and recreate the containers:
docker compose pull
docker compose up --force-recreate -dBackups
Everything Umami records lives in PostgreSQL, so back up the database regularly (for example with pg_dump) and keep a copy off the server.
What it costs
| 1 GiB DigitalOcean Droplet | $6/month |
|---|---|
| 2 GiB DigitalOcean Droplet | $12/month |
| Railway Hobby plan | $5/month minimum, includes $5 of usage |
| Umami Cloud (for comparison) | Hobby $0 up to 100K events/month; Pro $20/month |
DigitalOcean Basic Droplet sizes and list prices
| Memory | vCPU | SSD | Price |
|---|---|---|---|
| 512 MiB | 1 vCPU | 10 GiB | $4/month |
| 1 GiB | 1 vCPU | 25 GiB | $6/month |
| 2 GiB | 1 vCPU | 50 GiB | $12/month |
| 2 GiB | 2 vCPUs | 60 GiB | $18/month |
| 4 GiB | 2 vCPUs | 80 GiB | $24/month |
| 8 GiB | 4 vCPUs | 160 GiB | $48/month |
List prices checked Nov 19, 2026; they can change. Some hosting links on this page are affiliate links, which never change what we recommend.
FAQ
What is the default Umami login?
Username admin, password umami. Umami creates it the first time it sets up the database, and since v3.5.0 it requires you to change the password after your first login.
Does Umami still support MySQL?
Umami's current install docs list PostgreSQL (v12.14 or newer) as the supported database.
Should I self-host Umami or use Umami Cloud?
For one small site under 100K events a month, Umami Cloud's free Hobby plan is hard to beat. Self-host when you have several sites, want longer data retention than the Hobby plan's 6 months, or want the data on your own server.
Related
Sources
- Umami docs: Installation
- Umami docs: Getting updates
- Umami docs: Add a website
- Umami docs: Collect data
- Umami pricing
- Railway Umami template
- Railway pricing
- DigitalOcean Droplet pricing
Commands are adapted from the official docs linked above (example domains replaced with placeholders). Spot something out of date? Tell us at hello@opensourceswap.com.