Analytics & Monitoring3 GB RAM (Pro or Scale)· Port 8000

Deploy Plausible Analytics CE with Docker Compose

Lightweight open-source web analytics powered by Elixir, PostgreSQL, and ClickHouse.

1. Production docker-compose.yml Configuration

Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.

docker-compose.yml
yaml
services:
  plausible:
    image: ghcr.io/plausible/community-edition:v2.1.4
    restart: unless-stopped
    ports:
      - "8000:8000"
    environment:
      - BASE_URL=${BASE_URL:-https://analytics.yourdomain.com}
      - SECRET_KEY_BASE=${SECRET_KEY_BASE:-64-byte-random-base64-secret}
    volumes:
      - app_data:/var/lib/clickhouse
    depends_on:
      - postgres

  postgres:
    image: postgres:16-alpine
    restart: unless-stopped
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-change-me-db-password}
      - POSTGRES_DB=plausible
    volumes:
      - postgres_data:/var/lib/postgresql/data

volumes:
  app_data:
  postgres_data:

2. Required Environment Variables

VariableDefault / ExampleDescription
BASE_URLhttps://analytics.yourdomain.comPublic URL where Plausible CE is served.
SECRET_KEY_BASE64-byte-random-base64-secretPhoenix secret key base used to sign session cookies.

Plausible Analytics CE Self-Hosting FAQs

How much RAM is required to self-host Plausible Analytics CE in production?

Plausible Analytics CE requires a minimum of 3 GB RAM (Pro or Scale). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.

How do I expose Plausible Analytics CE with automatic HTTPS/SSL on Vexlo Cloud?

Deploy the ghcr.io/plausible/community-edition:v2.1.4 container on Vexlo Cloud, set the exposed port to 8000, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.

How is persistent data backed up for Plausible Analytics CE?

Mount /var/lib/clickhouse to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.

More 1-Click Docker Templates

View all 25 templates →