Deploy Umami
Deploy and Host Umami with Railway
umami-software/umami
Just deployed
Just deployed
/var/lib/postgresql/data
Redis
Just deployed
/data
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
Implementation Details
Set the following environment variables in your Railway service before deploying:
DATABASE_URL=postgresql://user:password@host:5432/umami
REDIS_URL=redis://default:[email protected]: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.
Template Content
umami-software/umami
umamisoftware/umami:postgresql-latestRedis
redis:8.2.1