Self-host Plausible Analytics on a VPS
Lightweight, privacy-friendly, cookie-free web analytics with no consent banner required.
levelrail-cli templates deploy plausible --name my-plausibleSpecification
- Status
- Verified on arm64 with image tag 24.12-alpine
- Category
- Analytics
- Services
- clickhouse, db, plausible
- Ports
- 8000
- Volumes
- 2
- Memory
- about 1 GiB
- arm64
- tested
- amd64
- image published
- Settings to fill in
- none
About Plausible Analytics
Lightweight, privacy-friendly, cookie-free web analytics with no consent banner required. Runs 3 containers (clickhouse, db, plausible), with plausible listening on port 8000 and keeps its data in named volumes.
What it deploys
Plausible Analytics runs as 3 services in a single Compose app, listening on port 8000, with 2 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| clickhouse | clickhouse/clickhouse-server | 24.12-alpine | none | plausible_clickhouse_data -> /var/lib/clickhouse |
| db | postgres | 16-alpine | none | plausible_db_data -> /var/lib/postgresql/data |
| plausible | ghcr.io/plausible/community-edition | v3.0.1 | 8000 | none |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Verified. Verified on arm64 with image tag 24.12-alpine. Verified means our CI ran this exact image version and it answered on its health path. Evidence
- Host ports. It publishes port 8000 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 3 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| clickhouse | CLICKHOUSE_SKIP_USER_SETUP | Preset by the template |
| db | POSTGRES_DB | Preset by the template |
| db | POSTGRES_PASSWORD | Generated at deploy |
| db | POSTGRES_USER | Preset by the template |
| plausible | BASE_URL | Preset by the template |
| plausible | CLICKHOUSE_DATABASE_URL | Preset by the template |
| plausible | DATABASE_URL | Generated at deploy |
| plausible | SECRET_KEY_BASE | Generated at deploy |
Install Plausible Analytics on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get plausible -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy plausible --name my-plausible
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Plausible Analytics.
Docs and upstream
More in Analytics
- RedashConnect data sources, write SQL and build shareable dashboards. Runs the Redash web server, a query worker and a scheduler with a bundled PostgreSQL and Redis, persistent volumes and generated secrets. Create the first admin account on first visit.
- Metabase with PostgresMetabase business intelligence with its own application data kept in a bundled Postgres database instead of the built in file, so dashboards and questions survive upgrades and scale past a single user. Create the admin on first open.
- MetabaseAsk questions of your data and share dashboards, no SQL required.
- TianjiAn all-in-one insight hub that combines website analytics, uptime monitoring and server status in one dashboard.
- MatomoA privacy-friendly, self-hosted alternative to Google Analytics with full data ownership.
- UmamiSimple, privacy-focused website analytics without tracking cookies or ad-tech.