Home PageSocialsBlog MetaPoetryTechThoughts/RantsProjectsVPS SetupGit ReposFriends of STUTS

VPS Setup

×

Plausible Analytics

Prerequisites

yum install docker docker-compose

systemctl enable docker
systemctl start docker

Install

git clone https://github.com/plausible/hosting /var/www/stats.stuts.uk
cd /var/www/stats.stuts.uk

# Update plausible-conf.env with user details & secret keys
## server URL to https://stats.stuts.uk:8888
## Add DISABLE_REGISTRATION=true to prevent others signing up

# Prevent port conflicts by changing docker-compose.yml
## Change 5432:5432 -> 6543:6543 for events_db
## Change 80:8000 to 8888:8000 for plausible

# Start server
docker-compose up -d

Add Sites

Same javascript stuff as Matamo… At least this looks nicer and can be included in my multi-site template

Ref - https://docs.plausible.io/self-hosting/