Deploy Rybbit

Rybbit 2.9 privacy-friendly web analytics on ClickHouse, a GA alternative.

Deploy Rybbit

Just deployed

/var/lib/clickhouse

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host Rybbit on Railway

Rybbit is an open-source, privacy-friendly web and product analytics platform and a modern alternative to Google Analytics. A tiny script records pageviews, custom events, errors and web vitals without cookies, and dashboards show traffic, funnels, goals, journeys, retention, user profiles, session replay and real-time visitors.

About Hosting Rybbit

This template deploys Rybbit v2.9.0 as six services: the web client, the backend, ClickHouse for events, Railway Postgres, Railway Redis and a Caddy router that serves the client and API on one domain. On the very first start the backend creates the admin from environment variables, while public sign-up stays disabled. ClickHouse memory and threads are capped for Railway, and its system logs are off. The backend is built from a small wrapper repository because the large upstream image stalls when pulled at deploy time. ClickHouse is capped at 2 GB, so plan for about 3 GB across all services.

Common Use Cases

  • Cookieless website analytics for products, blogs and docs
  • Product analytics with custom events, funnels and goals
  • Replacing Google Analytics while keeping data in your own databases

Dependencies for Rybbit Hosting

  • ghcr.io/rybbit-io/rybbit-client:v2.9.0
  • aalfath/rybbit-railway-template (backend, built from ghcr.io/rybbit-io/rybbit-backend:v2.9.0)
  • clickhouse/clickhouse-server:26.3.17.4 with a volume
  • Railway Postgres (ghcr.io/railwayapp-templates/postgres-ssl:18) with a volume
  • Railway Redis with a volume
  • caddy:2.11.4-alpine router

Deployment Dependencies

Implementation Details

ServiceSourceNetworkingStorage
gatewaycaddy:2.11.4-alpinepublic domain on 8080none
clientghcr.io/rybbit-io/rybbit-client:v2.9.0private, 3002none
backendaalfath/rybbit-railway-templateprivate, 3001none
clickhouseclickhouse/clickhouse-server:26.3.17.4private, 8123volume at /var/lib/clickhouse
Postgres / RedisRailway databasesprivate onlyvolumes

Sign in, create an organization and a site, then add the script to your pages:

VariableServiceDefaultPurpose
RYBBIT_ADMIN_EMAIL / RYBBIT_ADMIN_PASSWORDbackendadmin@example.com / generatedAdmin, created on the first start
DISABLE_SIGNUPbackendtruePublic sign-up
CLICKHOUSE_MAX_MEMORY_BYTES / CLICKHOUSE_MAX_THREADSclickhouse2 GiB / 4ClickHouse limits

Notes:

  • The client calls /api on its own domain, so keep the router; put custom domains on the gateway service.
  • Invite teammates from the organization settings after signing in.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the Rybbit project or its maintainers.

Why Deploy Rybbit 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 Rybbit 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

More templates in this category

View Template
Typesense vs Meilisearch
self-hosted Typesense vs Meilisearch

onepush
0
View Template
Betterlytics
Betterlytics is a cookieless analytics platform GDPR-compliant.

OpenSource Templates
27
View Template
Finance Tracker
Private multi-user household finance ledger with budgets and CSV import.

wotonews
0