---
title: "Deploy Rybbit"
description: "Web analytics that shows who visits your site and what they do"
category: "Analytics"
url: https://railway.com/deploy/rybbit-web-analytics
---

# Deploy Rybbit

Web analytics that shows who visits your site and what they do

**[Deploy Rybbit on Railway](https://railway.com/template/rybbit-web-analytics)**

- **Creator:** A3A
- **Category:** Analytics
- **Total deploys:** 1

## Template content

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

- **Source:** https://github.com/gridalpha/rybbit-railway
- **Health check:** /healthz
- **Public domain:** Yes

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

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

### backend https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rybbit-dark.svg

- **Image:** ghcr.io/rybbit-io/rybbit-backend:v2.8.0
- **Health check:** /api/health

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

- **Image:** redis:8.2
- **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"`

### client https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rybbit-dark.svg

- **Image:** ghcr.io/rybbit-io/rybbit-client:v2.8.0
- **Health check:** /login

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

- **Source:** https://github.com/gridalpha/rybbit-railway
- **Health check:** /ping

## Documentation

# Deploy and Host Rybbit on Railway

Rybbit is an open-source, privacy-friendly analytics platform that answers the questions Google Analytics makes hard: which pages people actually read, where they came from, and where they give up. It is cookieless, needs no consent banner, and goes well past a pageview counter — sessions, funnels, retention cohorts, user journeys, session replay, Core Web Vitals and error tracking all ship in the open-source build. Product teams, indie developers and agencies self-host Rybbit for the depth of a product-analytics tool without handing visitor data to a third party.

Self-host Rybbit on Railway and you get the full production topology, not a single container. The template runs six services: a **Caddy** front door on the public domain, the **backend** API and ingest service, the **client** dashboard, **ClickHouse** for event storage, **Postgres** for accounts and site configuration, and **Redis** for session resolution and bot scoring. Caddy is what lets one domain serve both halves — it routes `/api/*` and the OAuth discovery documents to the backend and everything else to the dashboard, so the browser talks to a single origin and the login cookie behaves.

![Rybbit services on Railway behind a Caddy front door](https://res.cloudinary.com/rroe4rtk/image/upload/v1787605911/rybbit-architecture.png)

## Getting Started with Rybbit on Railway

Open the public URL once the deploy finishes and you land on a signup screen. There are no default credentials — Rybbit makes the **first account to register the admin**, so create yours immediately. The second step asks for the domain you want to track and an organisation name; both can be changed later.

You then land on the dashboard with an installation snippet waiting. Paste that `
```

Railway skips the host, the Docker install and the certificate — the same six services, provisioned and connected.

## Is Rybbit Free to Self-Host?

Yes. Rybbit is AGPL-3.0, and the self-hosted build has no seat limit, no event cap and no paywalled features — session replay, funnels and retention are all included. Rybbit Cloud starts around $13/month billed annually for up to five sites. Self-hosting on Railway costs only the compute and storage the six services use, so cost scales with event volume rather than a pricing tier.

## FAQ

**What is Rybbit?**
Rybbit is an open-source, cookieless web and product analytics platform — a Google Analytics alternative that adds funnels, retention, session replay and error tracking, and that you host yourself.

**What does this Railway template deploy?**
Six services: Caddy on the public domain, the Rybbit backend and dashboard, ClickHouse, Postgres and Redis — already connected with private networking, volumes and health checks.

**Why does Rybbit need ClickHouse as well as Postgres?**
They store different things. ClickHouse suits enormous append-only event tables scanned by time range, which is what analytics queries are. Postgres holds the relational data — users, organisations, sites, funnels, goals — where transactions and joins matter more than scan speed.

**How do I create the first admin account in self-hosted Rybbit?**
Visit the public URL and register. The first account to sign up is promoted to admin automatically; there is no default username or password. Set `DISABLE_SIGNUP` to `true` afterwards.

**Does Rybbit need a cookie consent banner?**
Rybbit sets no cookies and stores no personal data, so most deployments do not need one. Check the regulations that apply to you before removing an existing banner.

**Why don't my test events show up on the dashboard?**
Rybbit scores incoming traffic for bot behaviour and files automated events separately, so a burst of scripted requests from one IP returns `200` and still never appears. Test with a real browser loading a real page.

**Can I keep using my existing reverse proxy or CDN?**
Yes. Attach a custom domain to the Caddy service and put Cloudflare or another CDN in front. Visitor IPs are read from forwarded headers, so geolocation keeps working.


## 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/rybbit-web-analytics
