Skip to main content

Overview

Plausible Community Edition is lightweight, cookie-free web analytics (AGPL-3.0). One Plausible workload serves the dashboard, the tracker script and the event API on one port. Events and sessions are stored in a bundled single-node ClickHouse, and accounts, sites and goals in a bundled PostgreSQL. The install is private by default: you register the owner account first, then publish it.
This template deploys into an existing GVC that you already have — it does not create one. The GVC must have exactly one location, and clickhouse.locations[0].name must be that location.

What Gets Created

Prerequisites

Three secrets must exist before you install; the chart never creates them. They hold credentials, so they are prerequisite secrets rather than values. Secrets are org-level, so no GVC flag is involved.
1

Signing key

An opaque secret of at least 32 bytes. It signs sessions and derives the two-factor encryption key, so keep it for the life of the install:
Set app.secretKeyBaseSecretName to this name.
2

PostgreSQL credentials

A dictionary secret with keys username, password and database. Use URL-safe values, because Plausible puts them in its connection URL:
Set postgres.config.credentialsSecretName to this name.
3

ClickHouse credentials

A dictionary secret with password (URL-safe, no quotes) and database (a bare identifier):
Set clickhouse.database.credentialsSecretName to this name.
If a prerequisite secret is missing, the install reports success and then waits silently: cpln logs shows nothing, and the missing secret is named only in status.versions[].message of cpln workload get-deployments RELEASE_NAME-plausible --gvc GVC_NAME -o yaml. After you create the secret, each paused deployment recovers on its own within about 10 minutes. To skip the wait, run cpln workload force-redeployment RELEASE_NAME-plausible --gvc GVC_NAME for every workload whose message names it (RELEASE_NAME-clickhouse-server for the ClickHouse secret).
Optional: an SMTP relay (see Email) and a bucket with a cloud account for PostgreSQL backups (see Backing Up).

Installation

A default install needs the three secret names and the location of your GVC:
Or install using your preferred method:

UI

Browse, install, and manage templates visually

CLI

Manage templates from your terminal

Terraform

Declare templates in your Terraform configurations

Pulumi

Declare templates in your Pulumi programs

Configuration

Application

  • registration: the first account can always register. After that, invite_only admits only users invited from the dashboard.
  • baseUrl: Plausible builds links from it and accepts browser connections only from its host. Empty means the canonical endpoint when public access is on, otherwise http://localhost:8000 (the port-forward address). Set it, with https://, when you serve Plausible on your own domain.

Email

Without SMTP, Plausible sends no invitations, password resets or email reports.
Create the relay credentials secret before installing with it set:

Access

Bundled Stores

Every knob of the postgres template is available under postgres. ClickHouse is limited to one location with one replica, and stores its data on its volume, so no bucket is needed.

Connecting

Once a site exists in the dashboard, send a test pageview to the event API (the domain must match the site you added):
A 202 response means the event was accepted; it then appears in the site’s dashboard. Plausible drops events from bot-like user agents and events whose domain does not exactly match a site you added, and still answers 202, so use a browser user agent and the domain as entered.

First Run

Until the first account exists, anyone who can open Plausible can register as its owner. Register over a private tunnel first:
  1. Install with publicAccess.enabled: false (the default).
  2. Run cpln port-forward RELEASE_NAME-plausible 8000:8000 --gvc GVC_NAME and open http://localhost:8000. Plausible redirects to /register; create the owner account and add your first site.
  3. Run cpln helm upgrade with publicAccess.enabled: true. Firewall changes take a few minutes to propagate.
  4. Log in again at the canonical URL. Your account and sites are kept. Then add the tracker snippet to your site.
Use http://localhost:8000 in step 2, not another host name: Plausible accepts browser connections only from the host of its base URL.

Operations

Backing Up

Backups are off by default. They cover PostgreSQL (accounts, sites, goals), not the analytics events in ClickHouse. Set postgres.backup.enabled: true and configure one provider. To restore, follow the restore steps on the postgres page; analytics events in ClickHouse are not covered.
Create the bucket, a Control Plane cloud account, and an IAM policy scoped to the bucket, then set postgres.backup.aws.bucket, region, cloudAccountName and policyName:

Backup retention

The backup job only uploads; it never deletes old backups. To keep a fixed window, add a lifecycle rule on the bucket that expires objects under the backup prefix. Each backup is a complete, standalone copy, so expiring old ones never affects restoring a newer one. Set the window to at least your retention plus one backup interval, and note that an age rule keeps no minimum: if backups stop running, the last ones expire too. The rules below use the default prefix plausible/backups/; change it if you changed postgres.backup.<provider>.prefix. AWS S3. put-bucket-lifecycle-configuration replaces every existing rule on the bucket, so check for existing rules first and add them to the file:
Google Cloud Storage. --lifecycle-file also replaces the bucket’s existing rules; check with gcloud storage buckets describe gs://BUCKET_NAME --format='json(lifecycle_config)' first:
MinIO (adds a rule alongside existing ones; the access key needs s3:PutLifecycleConfiguration, which the built-in readwrite policy grants):
Lifecycle rules run in the background; objects are removed within about a day of reaching the age. The Noncurrent parts matter only on a versioned bucket, where expiry otherwise just adds a delete marker.

Scaling and Availability

Plausible runs as one replica, and ClickHouse as one node in one location. Upgrades start the new Plausible replica before the old one stops. A restart of the replica is a short outage, and tracker hits during it are lost.

Troubleshooting

A prerequisite secret is missing. Read status.versions[].message with cpln workload get-deployments RELEASE_NAME-plausible --gvc GVC_NAME -o yaml, create the named secret, then run cpln workload force-redeployment WORKLOAD_NAME --gvc GVC_NAME for every workload whose message names it.
clickhouse.locations[0].name is not your GVC’s location, or the GVC has more than one location. Set it to the GVC’s only location. Check the location with cpln gvc get GVC_NAME -o yaml.
Plausible accepts browser connections only from the host of its base URL. Use http://localhost:8000 through the port-forward, the canonical endpoint when public access is on, or set app.baseUrl to your custom domain.
SMTP is off by default. Enable smtp and set its host, sender address and credentials secret.

Upgrading from 1.x

New installs run PostgreSQL 19. The database of a 1.x release was created by PostgreSQL 18 (or the major of the image it ran), and a PostgreSQL data directory only opens with its own major. The chart never converts data in place: before PostgreSQL starts, a guard compares the data’s major with the image’s, and on a mismatch it does not start the server and changes nothing on the volume. Plausible then waits for the database and restarts until it comes up. ClickHouse and its events are not affected. A refused upgrade leaves RELEASE_NAME-postgres not ready, and the logs repeat [pg-guard] REFUSING TO START with the exact fix every 30 seconds:
Stay on PostgreSQL 18 with this chart. Run the upgrade again with the image pinned, and keep postgres.image: postgres:18 in your values file for every later upgrade (cpln helm upgrade does not reuse the installed values). The Console upgrade wizard keeps the installed image for you.
Move the PostgreSQL data to 19, side by side (accounts, sites and goals only):
  1. Install this version as a NEW release in the same GVC with the same three secrets. The dump carries the old role’s password hash, and the signing key keeps sessions and two-factor logins valid.
  2. Stop writes to the old release (turn its publicAccess off).
  3. Replace the new database with the old one, from inside the new PostgreSQL container (the PostgreSQL 19 pg_dump reads the old server; --clean drops the tables the new Plausible created at first boot):
  4. Restart the new app with cpln workload force-redeployment NEW_RELEASE-plausible --gvc GVC_NAME, log in, and check your sites and goals. Then point the tracker snippet at the new release’s endpoint.
These steps do not copy the analytics events, which live in the old release’s ClickHouse: the new release starts with an empty event history. If you need the history, stay on PostgreSQL 18.

Important Notes

  • Register the owner before publishing. Until the first account exists, anyone who can reach the URL can register as owner. See First Run.
  • Tracking needs publicAccess.enabled: true. Visitors’ browsers must reach the tracker script and /api/event.
  • The GVC needs exactly one location, and clickhouse.locations[0].name must be it. A GVC with more than one location makes Plausible refuse to start.
  • Visitor locations are country-level, from the DB-IP database bundled in the image.
  • Analytics events have no scheduled backup or snapshot. They live only on the ClickHouse volume. PostgreSQL is backed up only when postgres.backup.enabled is on.
  • Upgrading a 1.x release needs postgres.image: postgres:18 in your values, on that upgrade and every later one; without it PostgreSQL refuses to start on the existing data. See Upgrading from 1.x.
  • Uninstalling deletes both volumes. Each keeps one final snapshot for 7 days; after that the data is gone.
  • Do not change the signing key. A new one logs everyone out and breaks two-factor logins for every enrolled user.
  • Community Edition has no funnels, ecommerce revenue goals, SSO or Sites API; those are Plausible Cloud features. The Stats API and shared dashboard links are available.

External References