Deploy swetrix
Open source, privacy-first web analytics
redis
Just deployed
/data
frontend
Just deployed
clickhouse
Just deployed
gateway
Just deployed
Just deployed
Deploy and Host swetrix on Railway
Swetrix is an open-source, privacy-first web analytics platform — a cookieless Google Analytics alternative with built-in error tracking, performance monitoring, funnels, and custom events. Community Edition is self-hostable so you keep full ownership of your traffic data.
About Hosting swetrix
This template deploys Swetrix Community Edition as five services: a public nginx gateway, the web UI, the analytics API, Redis for caching, and ClickHouse for analytics storage. Only the gateway is exposed; UI and API share one origin via /backend/ routing (Swetrix v5). You get a working dashboard after deploy — register the first admin account, then further sign-ups stay blocked when registration is disabled. Optional SMTP unlocks password resets and invites; Google/OIDC integrations can be added later via env vars.
Common Use Cases
- Self-host privacy-friendly analytics for marketing sites and product apps without cookies or consent banners
- Replace Google Analytics with cookieless traffic, funnels, custom events, and real-user performance metrics you control
- Run GDPR-oriented analytics on your own infrastructure with exportable data and no third-party tracking vendor
Dependencies for swetrix Hosting
- Redis — session/caching layer for the API
- ClickHouse — analytics and transactional store for events and dashboard queries
Deployment Dependencies
- Swetrix — main application
- Swetrix selfhosting — official Docker Compose reference
- osbytes/template-swetrix — Railway template source
- Self-hosting docs — setup and configuration guide
Why Deploy swetrix 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 swetrix 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
redis
redis:8.2.1frontend
osbytes/template-swetrixclickhouse
osbytes/template-swetrixgateway
osbytes/template-swetrix