All posts

Self-Host Rybbit Analytics on a VPS with Docker: Domain to Dashboard

Self-host Rybbit analytics on your own VPS with Docker: point a domain, run the official setup script, and reach a live cookieless dashboard. Updated Nov 2026.

This page contains affiliate links. If you buy through them we may earn a commission — it never affects our rankings or scores. How we make money

You can self-host Rybbit on a small VPS in about 20 minutes: point a subdomain at the server, install Docker, clone the official repository, and run one setup script — Rybbit's Docker Compose stack (app, database, ClickHouse and a Caddy web server with automatic HTTPS) comes up on its own, and you finish by creating your admin account. This guide walks the exact official path, step by step, from a blank VPS to a live dashboard. Updated November 2026.

We may earn a commission when you buy through links on this page — at no extra cost to you.

TL;DR / Quick Verdict

  • What you need: a VPS with at least 2GB of RAM (the official minimum), a domain or subdomain, and Docker Engine. Ubuntu 24 LTS is the tested OS.
  • What it costs: the software is free — Rybbit is open source under the AGPL-3.0 license. Your only cost is the VPS itself, roughly $5/month.
  • How long it takes: about 20 minutes, most of it waiting for DNS and the first image pull.
  • The catch: you own updates, backups and uptime. If that sounds like chores, the hosted version starts at $13/month billed annually (checked Nov 26, 2026) and is the same product without the sysadmin work.

What Is Rybbit?

Rybbit is an open-source, cookieless web analytics platform that works as a modern Google Analytics replacement: one script tag gives you pageviews, sessions, user journeys, funnels, goals, retention, Web Vitals and error tracking, with optional session replay — and because it sets no cookies, most sites need no consent banner. It comes in two forms that share the same codebase: an EU-hosted cloud service billed by monthly pageviews, and a free self-hosted edition you run with Docker on your own server. The public repository (github.com/rybbit-io/rybbit, 13.4K stars, latest release v2.9.3 as of Nov 26, 2026) ships a setup.sh installer and a docker-compose.yml, which is what this tutorial uses.

If you are still deciding between Rybbit and the default, our Rybbit vs Google Analytics (GA4) honest comparison covers the feature gaps in both directions.

Rybbit official homepage describing the cookieless Google Analytics replacement

The Rybbit homepage, captured Nov 26, 2026 from rybbit.com.

Before You Start: Requirements

The official self-hosting quick start lists exactly two prerequisites, and both matter:

Requirement

Official guidance

Why

A VPS

At least 2GB of RAM

The stack runs ClickHouse, which is memory-hungry; ARM servers must be ARMv8.2-A or newer

A domain name

A subdomain such as tracking.yourdomain.com pointed at the VPS

HTTPS is required — browsers block tracking scripts served over plain HTTP

Operating system

Guide tested on Ubuntu 24 LTS (x86_64)

Other distros work, but the docs' commands assume this baseline

For the VPS itself, any honest 2GB+ box works. The plans we use for these tutorials start at $5/month at VPSDime (4GB of RAM at that tier, double the minimum), which leaves comfortable headroom for ClickHouse. Do not try to squeeze this onto a 512MB or 1GB micro instance — the install will complete and then struggle under real traffic.

Step-by-Step: Domain to Dashboard

Step 1: Point your domain at the VPS

  1. Find your VPS's public IPv4 address in your hosting panel.
  2. At your DNS provider, add an A record: host tracking (or your chosen subdomain), value = the VPS IPv4 address.
  3. If you use Cloudflare, set the record to DNS only (the official recommendation). If you insist on keeping the orange-cloud proxy on, set SSL/TLS mode to Full or Full (strict) — anything less breaks the certificate Caddy is about to issue.
  4. Wait for propagation and verify with a DNS checker before continuing; the setup script cannot fix DNS that has not landed yet.

Step 2: Install Docker Engine

  1. SSH into the VPS as root or a sudo user.
  2. Install Docker Engine using Docker's official Ubuntu instructions (the Rybbit docs have an "Install Docker Engine" step in the same guide — follow it if you don't have a preferred method).
  3. Verify with docker --version and docker compose version; both must answer before you move on.

Step 3: Clone the Rybbit repository

  1. Clone the project from GitHub (Git is pre-installed on most server images):
git clone https://github.com/rybbit-io/rybbit.git
cd rybbit
  1. Make the helper scripts executable — the docs call this out explicitly, and skipping it is the most common first-run failure:
chmod +x *.sh
Rybbit GitHub repository showing setup scripts, docker-compose files and the AGPL-3.0 license

The rybbit-io/rybbit repository (13.4K stars, AGPL-3.0), captured Nov 26, 2026. The setup.sh, update.sh and docker-compose.yml files are all in the repo root.

Step 4: Run the setup script with your domain

  1. Run the installer, substituting your real subdomain:
./setup.sh your.domain.name
  1. Optionally, add --mapbox-token YOUR_MAPBOX_TOKEN if you want the 3D map visualizations enabled.
  2. Wait while it works: the script generates a .env file (including a secure secret), pulls the prebuilt images, and starts the containers — including Caddy — via docker compose --profile with-webserver up -d. The first pull takes a few minutes.
  3. Leave the default Caddy web server in place unless you already run a reverse proxy; if you do, the project publishes a separate Manual Docker Compose guide and an advanced Nginx guide for that case.
Rybbit official self-hosting quick start with prerequisites and setup steps

The official self-hosting quick start at rybbit.com/docs/self-hosting, captured Nov 26, 2026 — prerequisites (2GB RAM VPS, domain, HTTPS) and the setup steps this tutorial follows.

Step 5: Create your admin account

  1. Once the containers are up and DNS has propagated, Caddy automatically obtains an SSL certificate for your domain.
  2. Open https://your.domain.name/signup in a browser.
  3. Create the admin account — this first account owns the instance, so use a strong password and a real email you control.

Step 6: Add your first website and the tracking script

  1. Log in and add your website from the dashboard; Rybbit generates a small script tag for it.
  2. Paste the script into your site's <head> (or use one of the 30+ documented integrations — WordPress, Next.js, Shopify, Webflow and others are listed on the homepage).
  3. Visit your site in a second browser window, then check the Rybbit realtime view: your own visit should appear within seconds. That live hit is the "dashboard is real" moment — the install is done.

Step 7: Do the three first-hour hardening tasks

  1. Close signups if your instance allows it in settings — a public analytics instance with open registration attracts abuse.
  2. Snapshot or back up the server now, while it is in a known-good state; the data lives in Docker volumes (ClickHouse + Postgres), so a VPS snapshot is the simplest restore point.
  3. Note the update path: the repo ships update.sh for pulling newer releases. Self-hosting means updates are your job — put a monthly reminder on it.

Self-Hosted vs Cloud: What Actually Changes

The code is the same, but three things move:

  • Cost shape. Self-hosted is $0 in license fees at any traffic level; the cloud bills per pageview band — our Rybbit pricing breakdown does that math in detail.
  • A few cloud-only surfaces. The project's own README labels Web Vitals as "Cloud only", and hosted extras like the managed MCP server are cloud products. Check the current docs if one specific feature is your reason for switching.
  • Operations. EU hosting, retention management, backups and uptime are Rybbit's problem on cloud plans (3-year retention on Standard, 5 years on Pro, checked Nov 26, 2026) and yours on a VPS.

There is no wrong answer here, only an honest one: if the VPS is already sitting there for your other projects, self-hosting is nearly free. If analytics is the only thing the VPS would run, a $13/month cloud plan is cheaper than your time. You can start on Rybbit's cloud free trial (7 days, no card charged until it ends) and migrate later — your historical data export is available via the API either way.

Rybbit official pricing page with the pageview slider and Standard and Pro plans

The Rybbit cloud pricing page (100K pageview band selected), captured Nov 26, 2026 from rybbit.com/pricing.

Black Friday 2026 Deal

As of Nov 26, 2026, Rybbit runs no public Black Friday discount on its cloud plans — we checked the official pricing page directly, and the standing offer is the regular one: annual billing works out to "4 months free" versus monthly billing. For the self-hosted edition the question is moot: it is free all year. If a Black Friday code appears, it will be on rybbit.com/pricing first; anything on a coupon site should be treated as unverified.

FAQ

Is self-hosted Rybbit really free? Yes. The self-hosted edition is the open-source repository (AGPL-3.0) and carries no license fee at any traffic level. Your only cost is the VPS — the official minimum is 2GB of RAM — plus your own time for updates and backups.

How much RAM does Rybbit need on a VPS? The official quick start says to get a VPS with at least 2GB of RAM, because the stack includes ClickHouse. In practice, 4GB leaves comfortable headroom if the same box runs anything else.

Do I need my own domain to self-host Rybbit? Yes. The docs require a domain or subdomain pointed at the VPS, because HTTPS is mandatory — browsers block tracking scripts served over insecure HTTP, and the bundled Caddy server issues the certificate automatically once DNS resolves.

What is the difference between self-hosted and cloud Rybbit? Same core product, different operating model: cloud plans bill by monthly pageviews (from $13/month billed annually at 100K pageviews, checked Nov 26, 2026) and include EU hosting and managed retention, while a few surfaces such as Web Vitals are labelled cloud-only in the project README. Self-hosting removes the pageview meter entirely.

Can I migrate from self-hosted Rybbit to the cloud later? Rybbit exposes a full REST API and data export on both editions, so your data is not trapped. Many teams prototype self-hosted and move to the hosted version once traffic — or the maintenance burden — grows.

Keep Exploring

Last updated: November 26, 2026. Prices and product details verified against rybbit.com, the official documentation and the GitHub repository on the same date.

Discussion

No comments yet