---
title: "Deploy Umami"
description: "Deploy and Host Umami with Railway"
category: "Analytics"
url: https://railway.com/deploy/umami-1
---

# Deploy Umami

Deploy and Host Umami with Railway

**[Deploy Umami on Railway](https://railway.com/template/umami-1)**

- **Creator:** Sendly
- **Category:** Analytics
- **Total deploys:** 20

## Template content

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

- **Image:** umamisoftware/umami:postgresql-latest
- **Health check:** /api/heartbeat
- **Public domain:** Yes

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

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

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

## Documentation

# Deploy and Host Umami on Railway

Umami is an open-source, privacy-focused alternative to Google Analytics. It collects essential website metrics without cookies or personal data tracking, making it GDPR-compliant by default. Lightweight, self-hosted, and beautifully simple to use.

## About Hosting Umami

Hosting Umami on Railway involves deploying a Next.js application backed by a PostgreSQL database and a Redis instance for caching and session management. The server processes page view and event data in real time, sent from a lightweight tracking script installed on your website. Railway makes this straightforward by provisioning both PostgreSQL and Redis as managed services, wiring them to your Umami instance via environment variables with minimal manual configuration required.

## Common Use Cases

- **Privacy-first website analytics**  Track visitors, page views, bounce rates, and referrers for any website without relying on Google Analytics or compromising user privacy.
- **Multi-site monitoring**  Manage analytics for multiple websites or clients from a single Umami dashboard using its built-in team and site management features.
- **Compliance-focused analytics**  Use Umami as a cookieless, GDPR/CCPA-compliant analytics solution for businesses operating in privacy-regulated environments.

## Dependencies for Umami Hosting

- **PostgreSQL**  Primary database for storing events, sessions, and website configuration.
- **Redis**  Used for caching and rate limiting to improve performance under load.
- **Node.js runtime**  Required to run the Next.js-based Umami server.

### Deployment Dependencies

- [Umami GitHub Repository](https://github.com/umami-software/umami)
- [Umami Official Documentation](https://umami.is/docs)
- [Railway PostgreSQL](https://railway.com/deploy/postgres)
- [Railway Redis](https://railway.app/template/redis)

### Implementation Details

Set the following environment variables in your Railway service before deploying:

```env
DATABASE_URL=postgresql://user:password@host:5432/umami
REDIS_URL=redis://default:password@redis.railway.internal:6379
APP_SECRET=your_random_secret_string
```

Railway automatically provides `DATABASE_URL` and `REDIS_URL` when you attach PostgreSQL
and Redis services to your project. After first deploy, log in with the default credentials
(`admin` / `umami`) and change them immediately.

## 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

- [Betterlytics](https://railway.com/deploy/betterlytics) — Betterlytics is a cookieless analytics platform GDPR-compliant.
- [Finance Tracker](https://railway.com/deploy/finance-tracker-1) — Private multi-user household finance ledger with budgets and CSV import.
- [Matomo Analytics + MariaDB](https://railway.com/deploy/matomo-analytics-mariadb) — Privacy-friendly analytics with MariaDB and persistent volumes.

Open this page in a browser: https://railway.com/deploy/umami-1
