we earn commissions when you shop through the links below

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

OptionBest forCostHow
Railway (one click)No server to manage; HTTPS included.Hobby plan $5/month minimum, includes $5 of usageRailway's template runs Umami with PostgreSQL and Valkey: deploy Umami on Railway.
DigitalOcean DropletYour 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 CloudNot self-hosting at all.Hobby $0 up to 100K events/month (1 site); Pro $20/monthSign up at umami.is.

What you need

Step by step (your own server)

  1. Get the code.
    git clone https://github.com/umami-software/umami.git
    cd umami
  2. Create the secret. The Compose file reads APP_SECRET from a .env file and will not start without it. Generate a random value and save it:
    echo "APP_SECRET=$(openssl rand -hex 32)" > .env
  3. Start Umami and PostgreSQL. Umami then runs on port 3000.
    docker compose up -d
  4. Log in and change the password. Open Umami and log in with username admin and password umami. Since v3.5.0 Umami makes you replace this default password before you continue.
  5. 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
    }
  6. 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 -d

Backups

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
MemoryvCPUSSDPrice
512 MiB1 vCPU10 GiB$4/month
1 GiB1 vCPU25 GiB$6/month
2 GiB1 vCPU50 GiB$12/month
2 GiB2 vCPUs60 GiB$18/month
4 GiB2 vCPUs80 GiB$24/month
8 GiB4 vCPUs160 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

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.