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
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_PORTBuilt-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.
Install (official steps)
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.
# 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)
# Plausible CE — Caddyfile (deploy.cc). Caddy 会自动申请 HTTPS 证书 / automatic HTTPS
example.com {
reverse_proxy 127.0.0.1:8000
}
Update, backup & uninstall
# 按官方 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
Easy self-hosted uptime monitoring with dozens of notification channels and status pages.
Monitoring & analyticsRun-tested UmamiPrivacy-focused open-source web analytics (Google Analytics alternative).
Monitoring & analyticsRun-tested GrafanaOpen-source dashboards and visualisation for Prometheus, Loki, SQL and more.
Monitoring & analyticsRun-tested BeszelLightweight server monitoring hub + agent: CPU, memory, disk, network and Docker stats.
Monitoring & analyticsRun-tested