deploy.ccSelf-hosting deploy handbook

Plausible CE deployment: Docker Compose + reverse proxy

Lightweight cookie-less web analytics (Community Edition) on PostgreSQL + ClickHouse.

In short: Lightweight cookie-less web analytics (Community Edition) on PostgreSQL + ClickHouse. A multi-service stack: this page shows the official install commands.

Server
Official: CPU must support SSE 4.2 or NEON (ClickHouse); at least 2GB RAM recommended; our generic suggestion: 2 vCPU / 2 GB RAM and up
Ports
80 / 443 或 HTTP_PORT (Built-in HTTP / auto-HTTPS (see docs))
Install
Official steps
Official source
github.com/plausible/community-edition#quick-start
Last verified
2026-11-13 · Official method
Monitoring & analyticsOfficial methodWebSocket2 vCPU / 2 GB RAM and up

Overview & official links

About
Lightweight cookie-less web analytics (Community Edition) on PostgreSQL + ClickHouse.
Repository
github.com/plausible/community-edition
Docs
github.com/plausible/community-edition/wiki
Deploy source
github.com/plausible/community-edition#quick-start checked 2026-11-13
Verification
Official method Complex stack: we show the official commands as-is, not modified or run by us
Ports
80 / 443 或 HTTP_PORT Built-in HTTP / auto-HTTPS (see docs)

Server requirements

Official requirements

CPU must support SSE 4.2 or NEON (ClickHouse); at least 2GB RAM recommended. — source

Suggested VPS size

2 vCPU / 2 GB RAM and up, Debian 12 / Ubuntu 24.04 with Docker.
Generic suggestion, not official.

VPS recommendation slot (reserved, inactive)

Install (official steps)

This app is a multi-service stack, so we do not ship our own compose or script; the commands below are taken from the official docs — follow the latest official docs. Official source
bash
git clone -b v3.2.1 --single-branch https://github.com/plausible/community-edition /opt/plausible
cd /opt/plausible
touch .env
echo "BASE_URL=https://plausible.example.com" >> .env
echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
docker compose up -d
  • README pins v3.2.1 (checked 2026-11-13); follow the README for newer versions.
  • Behind a host Nginx, set HTTP_PORT and expose it via compose.override.yml as described in the wiki.

Reverse proxy & HTTPS

The app listens on 127.0.0.1:8000; expose it with Nginx or Caddy over HTTPS. This app needs WebSocket; the config handles the Upgrade header. For rate limiting, caching and more, use the nginx.cc generator.

/etc/nginx/conf.d/plausible.confNginx
# Plausible CE 反向代理 / reverse proxy — generated by deploy.cc
# 把 example.com 换成你的域名,证书路径按实际修改(certbot / acme.sh 签发)。
# Replace example.com and the certificate paths. More options: https://nginx.cc/zh/gen
# 放到 /etc/nginx/conf.d/<name>.conf,然后 nginx -t && systemctl reload nginx

map $http_upgrade $connection_upgrade_plausible {
    default upgrade;
    ''      close;
}

server {
    listen 80;
    listen [::]:80;
    server_name example.com;

    location /.well-known/acme-challenge/ {
        root /var/www/html;
    }

    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    http2 on;  # nginx < 1.25.1: 删除此行,改为 listen 443 ssl http2;
    server_name example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;

    client_max_body_size 10m;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade_plausible;
        proxy_read_timeout 3600s;
    }
}

Or Caddy (automatic certificates)

/etc/caddy/CaddyfileCaddy
# Plausible CE — Caddyfile (deploy.cc). Caddy 会自动申请 HTTPS 证书 / automatic HTTPS
example.com {
    reverse_proxy 127.0.0.1:8000
}

Update, backup & uninstall

Update (official)source
# 按官方 Release 说明升级:切换到新的 tag 后 docker compose up -d

For backup and removal follow the official docs; volume locations depend on the official compose.

FAQ

What is Plausible CE?

Lightweight cookie-less web analytics (Community Edition) on PostgreSQL + ClickHouse. Repository: https://github.com/plausible/community-edition

What server do I need for Plausible CE?

Official: CPU must support SSE 4.2 or NEON (ClickHouse); at least 2GB RAM recommended; our generic suggestion: 2 vCPU / 2 GB RAM and up (source: https://github.com/plausible/community-edition#requirements)

Which ports does Plausible CE use?

80 / 443 或 HTTP_PORT (Built-in HTTP / auto-HTTPS (see docs))

How do I update Plausible CE?

# 按官方 Release 说明升级:切换到新的 tag 后 docker compose up -d. Back up and read the release notes before major upgrades.

Plain-text version (for copying or AI tools): /en/apps/plausible.md

Related apps