---
title: "Deploy Umami Analytics (Privacy-First)"
description: "Privacy-first Google Analytics alternative. Umami v3 + Postgres 17."
category: "Analytics"
url: https://railway.com/deploy/umami-analytics-privacy-first
---

# Deploy Umami Analytics (Privacy-First)

Privacy-first Google Analytics alternative. Umami v3 + Postgres 17.

**[Deploy Umami Analytics (Privacy-First) on Railway](https://railway.com/template/umami-analytics-privacy-first)**

- **Creator:** Nick K's Projects
- **Category:** Analytics
- **Total deploys:** 2

## Template content

### umami https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/umami.svg

- **Image:** ghcr.io/umami-software/umami:3.2.0
- **Health check:** /api/heartbeat
- **Public domain:** Yes

### Postgres https://devicons.railway.com/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

## Documentation

# Deploy and Host Umami Analytics on Railway

Self-host Umami — the privacy-first, cookieless Google Analytics alternative — in one click. This template runs the current Umami v3 (many older templates are stuck on the discontinued v2 tag scheme) with PostgreSQL 17, generated secrets, and telemetry disabled.

## About Hosting Umami

Umami is a lightweight web analytics platform: add one small script tag to your site and get pageviews, referrers, devices, and events in a clean dashboard — no cookies, no personal data collection, GDPR-friendly without consent banners. This template pins `ghcr.io/umami-software/umami:3.2.0` (the PostgreSQL build of the current major version), stores all data in a private-only Postgres 17 with a persistent volume, generates the `APP_SECRET` per deploy, and turns off telemetry and update checks. Umami itself is stateless — everything lives in the database, making backups a single `pg_dump` or a Railway volume backup.

## Common Use Cases

- Replace Google Analytics with cookieless, GDPR-friendly analytics you own
- Track unlimited websites from one instance (Umami supports multi-site out of the box)
- Product and marketing event tracking without shipping visitor data to third parties

## Dependencies for Umami Hosting

- PostgreSQL 17 (included, private-only, persistent volume)

### Deployment Dependencies

- [Umami documentation](https://umami.is/docs)
- [Umami on GitHub](https://github.com/umami-software/umami)

### Implementation Details

- **First login:** username `admin`, password `umami` — change it immediately (the README and this overview both insist)
- `APP_SECRET` auto-generated via Railway's secret(); Postgres password generated and private-only
- Healthcheck on `/api/heartbeat`; pinned version — no silent major-version jumps
- Umami v3 note: the old `postgresql-v*` image tags are discontinued upstream; this template already uses the current scheme

**Getting started:** deploy, log in, change the admin password, add your website, and paste the tracking snippet into your site's ``.

## Why Deploy Umami on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Umami on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Matomo Analytics + MariaDB](https://railway.com/deploy/matomo-analytics-mariadb) — Privacy-friendly analytics with MariaDB and persistent volumes.
- [Bugsink](https://railway.com/deploy/bugsink) — Self-hosted Error Tracking. Sentry-SDK compatible
- [SubTrackr](https://railway.com/deploy/bscottsubtrackr) — Self-hosted Subscription Tracker

Open this page in a browser: https://railway.com/deploy/umami-analytics-privacy-first
