Try describing what you need:

Rybbit logo

Rybbit

★ 13.3k

A self-hosted alternative to Google Analytics

GNU Affero General Public License v3.0Open Source — No Paywall6 Containers — 6 containers — moderate hosting footprintDocker · Compose · SourceNeeds Postgres15+ active committers (12mo)

About

Rybbit is an open source web and product analytics platform positioned as a privacy-friendly alternative to Google Analytics. It is designed for teams that want detailed insight into website and...

Community Ratings

No ratings yet
Screenshot 2025-10-16 at 7 25 20 PMScreenshot 2025-10-16 at 7 27 12 PMScreenshot 2025-10-16 at 7 30 39 PMScreenshot 2025-10-16 at 7 30 00 PMScreenshot 2025-10-16 at 7 30 23 PMScreenshot 2025-10-16 at 7 29 18 PMScreenshot 2025-10-16 at 7 34 13 PMScreenshot 2025-10-16 at 7 34 05 PMScreenshot 2025-10-16 at 7 28 26 PMScreenshot 2025-10-16 at 7 28 54 PM

Features

  • sessions
  • unique users
  • pageviews
  • bounce rate
  • session duration
  • session replays
  • custom goals
  • retention analysis
  • funnels
  • real-time dashboard

Details

Last Updated
Nov 23, 2026
Created
Jan 14, 2025
Install Methods
dockerdocker-composesource
Runtime / Stack
Docker
Privacy & Independence
Cloud: Optional
User Model
Multi-UserMulti-Tenant
Deployment

Deployment: Docker Compose ✓6 Containers — moderate hosting footprintRuns as 6 containers

Run Rybbit yourself

Pick how much you want to manage.

2 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host.

Is this your project? Sponsor a listing

Run Rybbit with Docker Compose

Compose file from the Rybbit project repository.

6 services · database: postgres · infra: caddy, postgres, redis · 1 unclassified (clickhouse-server)

no resource limits declared

needs persistent storage (6 volumes)

docker-compose.yml · @ 54486ad · scanned Nov 3, 2026

services:
  caddy:
    profiles: ["with-webserver"]
    image: caddy:2.10.0
    container_name: caddy
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp" # Needed for HTTP/3
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile # Mount Caddy config file
      - caddy_data:/data # Mount persistent data volume for certs etc.
      - caddy_config:/config # Mount persistent config volume
    environment:
      # Pass domain name for use in Caddyfile
      # Email is configured via Caddyfile global options
      - DOMAIN_NAME=${DOMAIN_NAME}
    depends_on:
      - backend
      - client

  clickhouse:
    container_name: clickhouse
    image: clickhouse/clickhouse-server:25.4.2
    volumes:
      - clickhouse-data:/var/lib/clickhouse
    configs:
      - source: clickhouse_network
        target: /etc/clickhouse-server/config.d/network.xml
      - source: clickhouse_json
        target: /etc/clickhouse-server/config.d/enable_json.xml
      - source: clickhouse_logging
        target: /etc/clickhouse-server/config.d/logging_rules.xml
      - source: clickhouse_user_logging
        target: /etc/clickhouse-server/config.d/user_logging.xml
    environment:
      - CLICKHOUSE_DB=${CLICKHOUSE_DB:-analytics}
      - CLICKHOUSE_USER=${CLICKHOUSE_USER:-default}
      - CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-frog}
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8123/ping"]
      interval: 3s
      timeout: 5s
      retries: 5
      start_period: 10s
    restart: unless-stopped

  postgres:
    image: postgres:17.4
    container_name: postgres
    environment:
      - POSTGRES_USER=${POSTGRES_USER:-frog}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-frog}
      - POSTGRES_DB=${POSTGRES_DB:-analytics}
    volumes:
      - postgres-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
      interval: 3s
      timeout: 5s
      retries: 5
      start_period: 10s
    restart: unless-stopped
    ports:
      - "5432:5432"

  redis:
    image: redis:7-alpine
    container_name: redis
    volumes:
      - redis-data:/data
    healthcheck:
      test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-changeme}", "--no-auth-warning", "ping"]
      interval: 3s
      timeout: 5s
      retries: 5
      start_period: 5s
    restart: unless-stopped
    # Backs session tracking and the BullMQ queues. noeviction is required by
    # BullMQ (evicting job keys corrupts queues); session keys carry a 30-minute
    # TTL so memory stays bounded by active-user count. AOF (everysec) keeps
    # queues durable across restarts.
    command:
      - redis-server
      - --requirepass
      - ${REDIS_PASSWORD:-changeme}
      - --appendonly
      - "yes"
      - --appendfsync
      - everysec
      - --maxmemory-policy
      - noeviction

  backend:
    image: ghcr.io/rybbit-io/rybbit-backend:${IMAGE_TAG:-latest}
    container_name: backend
    build:
      context: .
      dockerfile: ./server/Dockerfile
    ports:
      - "${HOST_BACKEND_PORT:-127.0.0.1:3001:3001}"
    environment:
      - NODE_ENV=production
      - CLICKHOUSE_HOST=http://clickhouse:8123
      - CLICKHOUSE_DB=${CLICKHOUSE_DB:-analytics}
      - CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-frog}
      - POSTGRES_HOST=postgres
      - POSTGRES_PORT=5432
      - POSTGRES_DB=${POSTGRES_DB:-analytics}
      - POSTGRES_USER=${POSTGRES_USER:-frog}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-frog}
      - REDIS_HOST=redis
      - REDIS_PORT=6379
      - REDIS_PASSWORD=${REDIS_PASSWORD:-changeme}
      - BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
      - BASE_URL=${BASE_URL}
      - DISABLE_SIGNUP=${DISABLE_SIGNUP}
      - DISABLE_TELEMETRY=${DISABLE_TELEMETRY}
      - MAPBOX_TOKEN=${MAPBOX_TOKEN}
      - CLUSTER_WORKERS=${CLUSTER_WORKERS:-4}
      - DEPLOYMENT=${DEPLOYMENT}
      - LITE_DASHBOARD=${LITE_DASHBOARD}
      - OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
      - OPENROUTER_MODEL=${OPENROUTER_MODEL}
    depends_on:
      clickhouse:
        condition: service_healthy
      postgres:
        condition: service_started
      redis:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3001/api/health"]
      interval: 3s
      timeout: 5s
      retries: 5
      start_period: 10s
    restart: unless-stopped

  client:
    image: ghcr.io/rybbit-io/rybbit-client:${IMAGE_TAG:-latest}
    container_name: client
    build:
      context: .
      dockerfile: ./client/Dockerfile
      args:
        NEXT_PUBLIC_BACKEND_URL: ${BASE_URL}
        NEXT_PUBLIC_DISABLE_SIGNUP: ${DISABLE_SIGNUP}
        NEXT_PUBLIC_LITE_DASHBOARD: ${LITE_DASHBOARD}
    ports:
      - "${HOST_CLIENT_PORT:-127.0.0.1:3002:3002}"
    environment:
      - NODE_ENV=production
      - NEXT_PUBLIC_BACKEND_URL=${BASE_URL}
      - NEXT_PUBLIC_DISABLE_SIGNUP=${DISABLE_SIGNUP}
      - NEXT_PUBLIC_DEPLOYMENT=${DEPLOYMENT}
      - NEXT_PUBLIC_LITE_DASHBOARD=${LITE_DASHBOARD}
    depends_on:
      - backend
    restart: unless-stopped

volumes:
  clickhouse-data:
  postgres-data:
  redis-data:
  caddy_data: # Persistent volume for Caddy's certificates and state
  caddy_config: # Persistent volume for Caddy's configuration cache (optional but good practice)

configs:
  clickhouse_network:
    content: |
      <clickhouse>
          <listen_host>0.0.0.0</listen_host>
      </clickhouse>

  clickhouse_json:
    content: |
      <clickhouse>
          <settings>
              <enable_json_type>1</enable_json_type>
          </settings>
      </clickhouse>

  clickhouse_logging:
    content: |
      <clickhouse>
        <logger>
            <level>warning</level>
            <console>true</console>
        </logger>
        <query_thread_log remove="remove"/>
        <query_log remove="remove"/>
        <text_log remove="remove"/>
        <trace_log remove="remove"/>
        <metric_log remove="remove"/>
        <asynchronous_metric_log remove="remove"/>
        <session_log remove="remove"/>
        <part_log remove="remove"/>
        <latency_log remove="remove"/>
        <processors_profile_log remove="remove"/>
      </clickhouse>

  clickhouse_user_logging:
    content: |
      <clickhouse>
        <profiles>
          <default>
            <log_queries>0</log_queries>
            <log_query_threads>0</log_query_threads>
            <log_processors_profiles>0</log_processors_profiles>
          </default>
        </profiles>
      </clickhouse>

This file may be out of date. Check the Rybbit documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Aug 19, 2026

Alternatives to Rybbit

Umami logo

Umami

40.3k
Umami is a simple, fast, privacy-focused alternative to Google Analytics.
Analytics ToolsSelf Hosting SolutionsPermissive License+1
Fully FOSS
Details
Prisme Analytics logo

Prisme Analytics

136
An open source, privacy-focused analytics service for websites and web applications.
Analytics ToolsPermissive LicenseCopyleft License+1
Open Core
Details
Medama Analytics logo

Medama Analytics

646
Cookie-free, privacy-focused website analytics that can be self-hosted.
Analytics ToolsSelf Hosting SolutionsPermissive License
Details
Matomo logo

Matomo

22.0k
Matomo is a self-hosted, open source web analytics platform that tracks website usage and provides real-time reports.
Analytics ToolsSelf Hosting SolutionsConsent Management+1
Details
Swetrix logo

Swetrix

76
Swetrix is a privacy-focused, cookieless, open-source alternative to Google Analytics for tracking traffic, performance, sessions, and user flows.
Analytics ToolsSelf Hosting SolutionsCopyleft License
Details
GoatCounter logo

GoatCounter

6.2k
GoatCounter is an open source, privacy-friendly web analytics platform for self-hosting or hosted use.
Analytics ToolsCopyleft LicenseSelf Hosting Solutions
Details
Offen logo

Offen

984
Offen Fair Web Analytics is a self-hosted, privacy-focused web analytics platform that lets site owners collect insights while giving users access to their own data.
Analytics ToolsSelf Hosting SolutionsConsent Management+1
Details
Vince logo

Vince

2.0k
Vince is a self-hosted analytics alternative to Google Analytics.
Analytics ToolsCopyleft LicenseSelf Hosting Solutions
Details
Plausible Analytics logo

Plausible Analytics

29.9k
An open source, privacy-first web analytics tool for tracking website traffic and conversions.
Analytics ToolsCopyleft LicenseSelf Hosting Solutions+2
Open CoreFOSS with Issues
Details
Liwan logo

Liwan

232
Liwan is a privacy-first web analytics tool that provides real-time visitor and pageview tracking for websites.
Analytics ToolsPermissive LicenseSelf Hosting Solutions
Details
Litlyx logo

Litlyx

1.7k
Litlyx is a cookie-free analytics tool for tracking website and web app visitors, page visits, and custom events.
Analytics ToolsPermissive LicenseSelf Hosting Solutions
Open Core
Details
Aptabase logo

Aptabase

1.9k
Aptabase is an open-source, privacy-first analytics platform for mobile, desktop, and web apps.
Analytics ToolsCopyleft LicenseSelf Hosting Solutions
Details

Related Software

bit logo

bit

114
A lightweight self-hosted tracking service that records basic request metadata like country, browser, OS, referer, and forwarded IP information.
URL ShortenersPermissive LicenseAnalytics Tools+1
Details
oxitraffic logo

oxitraffic

21
Self-hosted, simple and privacy respecting website traffic tracker
Self Hosting SolutionsAnalytics Tools
Details
Ziit logo

Ziit

261
Ziit is a self-hostable, open-source alternative to WakaTime for tracking coding activity and viewing developer productivity statistics.
Time TrackingCopyleft LicenseAnalytics Tools+2
Details
Metabase logo

Metabase

50.5k
Metabase is an open-source business intelligence and analytics platform that lets people ask questions, build dashboards, and explore data without needing SQL.
Analytics ToolsSelf Hosting SolutionsCopyleft License+1
2 ContainersOpen CoreOpen Core
Details
YOURLS logo

YOURLS

12.3k
YOURLS is a self-hosted PHP URL shortener that runs on your own server.
URL ShortenersSelf Hosting SolutionsAnalytics Tools+1
Details
Flagsmith logo

Flagsmith

8.9k
Flagsmith is an open-source feature flagging and remote config platform for controlling feature rollouts and releases.
Feature TogglesSelf Hosting SolutionsAnalytics Tools+1
Open Core
Details
Operational.co logo

Operational.co

478
Operational.co is an open-source event tracking tool for monitoring signups, webhooks, cron jobs, and other critical events.
Miscellaneous ToolsCopyleft LicenseAnalytics Tools+2
Details
Rejourney logo

Rejourney

283
Lightweight session replay and observability for mobile and web apps, with pixel-perfect capture and real-time incident detection.
15 ContainersSource Available
Details