Plausible

Plausible is a web analytics tool designed with privacy and simplicity in mind. Unlike traditional analytics platforms that often compromise user privacy with extensive data collection, Plausible prioritizes a minimalistic approach to deliver insightful information without infringing on user confidentiality.

The essence of Plausible lies in its commitment to ethical data practices. It doesn't rely on invasive tracking methods or utilize cookies that follow users across the web. This ethical foundation ensures that website owners can gather valuable data about their site's performance without compromising the privacy of their visitors.

What makes Plausible particularly good is its user-friendly interface and straightforward setup. The platform provides a clear and concise overview of key metrics, making it easy for users to interpret and act upon the data. With its emphasis on simplicity, Plausible offers a refreshing alternative for those seeking analytics solutions that respect user privacy while delivering meaningful insights for website improvement.

docker-compose.yml

version: "3.3"
services:
  mail:
    image: bytemark/smtp
    restart: always

  plausible_db:
    # supported versions are 12, 13, and 14
    image: postgres:14-alpine
    restart: always
    volumes:
      - db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=postgres
    networks:
      - web

  plausible_events_db:
    image: clickhouse/clickhouse-server:23.3.7.5-alpine
    restart: always
    volumes:
      - event-data:/var/lib/clickhouse
      - ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
      - ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
    ulimits:
      nofile:
        soft: 262144
        hard: 262144
    networks:
      - web

  plausible:
    image: plausible/analytics:v2.0
    restart: always
    command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
    depends_on:
      - plausible_db
      - plausible_events_db
      - mail
    networks:
      - web
    labels:
      - traefik.http.services.plausible.loadbalancer.server.port=8000
      - traefik.http.routers.plausible.rule=Host(`<DOMAIN>`)
      - traefik.http.routers.plausible.entrypoints=websecure
      - traefik.http.routers.plausible.tls=true
      - traefik.http.routers.plausible.tls.certresolver=leresolver
    env_file:
      - .env

volumes:
  db-data:
    driver: local
  event-data:
    driver: local

networks:
  web:
    external: true

.env

BASE_URL=https://<domain>
SECRET_KEY_BASE=<create a random key>
Emil Moe

Software- and Data Engineer

I created this website to help you empower your infrastructure and so you don't need to spend the same amount of hours as me on researching. I chose to make the site ad-free, so if you like what I do, please consider supporting my Patreon.

Leave a Reply

Your email address will not be published. Required fields are marked *