Deploy Umami
Open-source, privacy-focused web analytics. Umami 3.5 with PostgreSQL
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host Umami on Railway
Umami is an open-source, privacy-focused web analytics app and a simple alternative to Google Analytics. It counts page views, visitors, referrers, events and errors without cookies, and stores everything in your own database. One small tracking script works on any website, and every site gets its own dashboard.
About Hosting Umami
Umami is a Next.js app that keeps all of its data in PostgreSQL. This template runs the official Umami 3.5.0 image, built from a public GitHub repo, next to Railway's PostgreSQL service, which stores the data on a volume. At each start Umami checks the database and runs its migrations, and Railway checks /api/heartbeat before routing traffic. The template generates APP_SECRET, which signs logins, and ADMIN_PASSWORD, which replaces Umami's seeded default password on first start, so a fresh instance is never open with admin / umami. Railway gives the app a public HTTPS domain. You can add your own domain in the service settings.
Common Use Cases
- Privacy-friendly website analytics without cookie banners
- One dashboard for many websites, apps or clients, with teams and shared links
- Custom event, goal, funnel and JavaScript error tracking that you own
Dependencies for Umami Hosting
- PostgreSQL (Railway's PostgreSQL service, included)
- The official Umami Docker image (
ghcr.io/umami-software/umami)
Deployment Dependencies
- Umami: https://umami.is
- Umami docs: https://umami.is/docs
- Environment variables: https://umami.is/docs/environment-variables
- Umami 3.5.0 release: https://github.com/umami-software/umami/releases/tag/v3.5.0
- Template repo: https://github.com/aalfath/umami-analytics-railway-template
Implementation Details
First login: open the Umami service's public URL and log in as admin with the ADMIN_PASSWORD value from the service's Variables tab. The password is applied only while the account still has Umami's seeded password, so a password you later change in Settings → Profile is never overwritten.
To track a site, add it under Settings → Websites, open its Tracking code tab and paste the script into the head section of your site. The script loads from https://YOUR-DOMAIN/script.js.
Optional settings (add them to the Umami service only if you need them): TRACKER_SCRIPT_NAME to rename the tracker against ad blockers, REDIS_URL for Redis caching, DISABLE_TELEMETRY=1 to turn off Umami's anonymous telemetry. Updates: the service builds from the template repo, so Railway offers each new Umami version as an update you apply when you choose. Read the repo's CHANGELOG first.
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.
Template Content

