Self-Host Plausible CE with Docker Compose
Plausible Analytics is an intuitive, lightweight and open-source web analytics tool. No cookies and fully compliant with GDPR, CCPA and PECR. Made and hosted in the EU.
Minimum Hardware Requirements
version: '3.8'
services:
plausible-ce:
image: ghcr.io/plausible/community-edition:latest
container_name: plausible-ce
restart: unless-stopped
ports:
- "8000:8000"
environment:
- NODE_ENV=production
- TZ=UTC
volumes:
- plausible-ce_data:/data
volumes:
plausible-ce_data:
driver: local
docker-compose.yml and run:
docker compose up -d
Key Environment Variables
Recommended baseline environment configuration for this container
| Variable Name | Default / Recommended Value |
|---|---|
| BASE_URL | https://stats.example.com |
| SECRET_KEY_BASE | generate_64_byte_random_string |
| CLICKHOUSE_DATABASE_URL | http://clickhouse:8123/plausible_events_db |
VPS RAM & Server Sizing Calculator
Planning to run Plausible CE alone or alongside other self-hosted containers on one VPS? Toggle apps to calculate your exact RAM needs with a 25% safety buffer.
Matched Cloud VPS Tiers for Selected Workload:
Replaces Google Analytics 4
Complex cookie-based tracking requiring cookie banners, triggering GDPR fines and cross-device user profiling.
More Analytics Apps View All →
Compare Plausible CE
Benchmark specs head-to-head with other open-source alternatives
Compare Plausible CE Side-by-Side
Select any open-source tool from the dropdown to run a hardware, memory, and popularity benchmark against Plausible CE.