> ## Documentation Index
> Fetch the complete documentation index at: https://blog.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Plausible: lightweight, cookie-free website analytics on your VPS

> Self-host a cookie-free Google Analytics alternative: install Plausible Community Edition on a VPS with Docker Compose and automatic HTTPS, by OnetSolutions.

![Plausible: dashboard with unique visitors, visits, pageviews, bounce rate, visit duration, a 91-day chart, traffic sources and top pages](https://mintcdn.com/onetsolutions-blog/GT4FS6Qyx_GWYjW-/images/2026/12/plausible.webp?fit=max\&auto=format\&n=GT4FS6Qyx_GWYjW-\&q=85\&s=fc5a5b60fc36299389092e368e9d01e5)

*Published on December 5, 2026*

Knowing who reads your pages should not mean tracking every visitor or handing that data to an ad company: Plausible Community Edition measures your sites' traffic without cookies, on your own VPS.

## What Plausible does for you

* **Read** the essentials on a single page: unique visitors, pageviews, bounce rate, visit duration, traffic sources and top pages.
* **Measure** without cookies or persistent identifiers: Plausible stores no personal data and no IP addresses.
* **Keep** your pages fast with a very small tracking script, released under the MIT license.
* **Track** your goals: custom events, outbound link clicks, form submissions, file downloads and 404 pages.
* **Own** your data: CSV export, a stats API, and direct access to the raw data in ClickHouse.

## At a glance

| | |
| - | - |
| License | AGPL-3.0 (the tracking script embedded in your sites is MIT) |
| Language | Elixir |
| Latest release | v3.2.2, published on November 23, 2026 |
| GitHub stars | 30,007 as of December 5, 2026 |
| Minimum resources | 2 GB of RAM recommended, a CPU with SSE 4.2 or NEON (required by ClickHouse). The docs give no disk figure |
| Repository | [github.com/plausible/analytics](https://github.com/plausible/analytics) |

## Install Plausible on your VPS

Prerequisites: a Debian or Ubuntu VPS with [Docker](https://help.onetsolutions.net/tutorials/how-to-install-docker) and Docker Compose, ports 80 and 443 free, and a DNS `A` record pointing your domain to the VPS. Replace `plausible.example.com` with your domain.

Become root and clone the official guide at tag `v3.2.2`. It ships the `compose.yml`, which pins the Plausible image to that release:

```bash theme={null}
sudo -i
cd /opt
git clone -b v3.2.2 --single-branch https://github.com/plausible/community-edition plausible-ce
cd plausible-ce
```

Create the `.env` file with the two required settings. `SECRET_KEY_BASE` is a key of at least 64 bytes, generated by `openssl`:

```bash theme={null}
echo "BASE_URL=https://plausible.example.com" >> .env
echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
```

`BASE_URL` must be the instance's real domain. DNS must already point to the VPS: Plausible needs it to obtain its certificate.

Add the web ports, then publish them with a `compose.override.yml` file. With 80 and 443, Plausible obtains and renews a Let's Encrypt certificate on its own:

```bash theme={null}
echo "HTTP_PORT=80" >> .env
echo "HTTPS_PORT=443" >> .env

cat > compose.override.yml << EOF
services:
  plausible:
    ports:
      - 80:80
      - 443:443
EOF
```

Leave `compose.yml` untouched: the docs route every setting through `.env` and `compose.override.yml`, which avoids conflicts when you upgrade.

Start the three services, Plausible, PostgreSQL and ClickHouse:

```bash theme={null}
docker compose up -d
```

On first start, Plausible creates its databases and runs its migrations before it answers.

> [!TIP]
>
> Before upgrading, read the release notes: each one carries its own instructions. For a minor release, the docs say to run `git pull origin <new version>` in the `plausible-ce` folder, then `docker compose up -d`. Security fixes are not backported, so stay current.

## First steps

1. **Create your account.** Open `https://plausible.example.com` and create the first user. This account administers the instance.

2. **Add a site.** Enter its domain without `https://` or `www.`, for example `example.com`. A subdomain tracked on its own is entered in full, such as `blog.example.com`.

3. **Install the script.** Plausible shows the site's snippet. Paste it into the `<head>` section of your pages, or once in the shared layout if you use a static site generator. The snippet stays available in the site settings, under **Site installation**.

Then open your site in a browser: the visit shows up on the dashboard in real time.

## Check that it works

List the containers and their state:

```bash theme={null}
docker compose ps
```

`plausible_db` and `plausible_events_db` show `(healthy)`, and `plausible` is `Up`.

Then query Plausible's readiness check through your public domain:

```bash theme={null}
curl https://plausible.example.com/api/system/health/ready
```

A ready instance answers with status 200 and `"ok"` for `postgres`, `clickhouse`, `sites_cache` and `sessions`. Status 500 means a check failed: the value that is not `"ok"` tells you which. Read the logs with `docker compose logs plausible`.

## Secure access

Sign-ups are restricted by default: only people you invite can create an account. If you are the only user, close them entirely, then recreate the container:

```bash theme={null}
echo "DISABLE_REGISTRATION=true" >> .env
docker compose up -d
```

In the [console firewall](https://help.onetsolutions.net/vps/firewall), allow only SSH, 80 and 443 inbound. PostgreSQL and ClickHouse publish no ports: they stay internal to Docker.

Already serving sites with Nginx on this VPS? Let Nginx handle HTTPS and keep Plausible local to the machine. In `.env`, replace `HTTP_PORT=80` with `HTTP_PORT=8000` and delete the `HTTPS_PORT=443` line.

This `compose.override.yml`, taken from the wiki, then publishes the port on `127.0.0.1` only:

```bash theme={null}
cat > compose.override.yml << EOF
services:
  plausible:
    ports:
      - 127.0.0.1:8000:8000
EOF

docker compose up -d
```

This Nginx block, taken from the wiki, forwards the site and the WebSocket used by the live dashboard:

```nginx theme={null}
# /etc/nginx/sites-available/plausible
server {
    server_name plausible.example.com;

    listen 80;
    listen [::]:80;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    location /live/websocket {
        proxy_pass http://127.0.0.1:8000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }
}
```

Enable it and restart Nginx:

```bash theme={null}
ln -s /etc/nginx/sites-available/plausible /etc/nginx/sites-enabled/plausible
systemctl restart nginx
```

Then add the HTTPS certificate with your usual tool, for example [Certimate](https://blog.onetsolutions.net/en/certimate-vps-automate-ssl-certificates.md). The wiki notes that this Nginx configuration comes from the community and is not tested by the Plausible team.

## Limits and alternatives

Community Edition does not include funnels, ecommerce revenue goals, SSO or the sites API, and its bot filtering is simpler than the cloud version's. It ships twice a year, and support goes through the [community forum](https://github.com/plausible/analytics/discussions/categories/self-hosted-support).

| Alternative | Difference |
| - | - |
| [Umami](https://github.com/umami-software/umami) | Cookie-free analytics on a shorter stack: Node.js and PostgreSQL, no ClickHouse (MIT). |
| [Matomo](https://github.com/matomo-org/matomo) | A full analytics platform in PHP and MySQL, which also installs on regular web hosting (GPL-3.0). |
| [Rybbit](https://github.com/rybbit-io/rybbit) | Adds session replays, funnels, retention and user journeys (AGPL-3.0). |

## Going further

* [Plausible Community Edition install guide](https://github.com/plausible/community-edition) and its wiki: [configuration](https://github.com/plausible/community-edition/wiki/configuration), [reverse proxy](https://github.com/plausible/community-edition/wiki/reverse-proxy) and [upgrades](https://github.com/plausible/community-edition/wiki/upgrade)
* [Plausible documentation](https://plausible.io/docs): adding a site, the tracking script and goals
* [VPS firewall](https://help.onetsolutions.net/vps/firewall): open only the ports you need
* [VPS backup](https://help.onetsolutions.net/vps/backup): protect the PostgreSQL and ClickHouse databases

No VPS at OnetSolutions yet? [Pick yours](https://onetsolutions.net) and keep your sites' analytics in your own hands.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.