How To Install Plausible Analytics on Ubuntu 22.04
Plausible Analytics is an open-source, self-hosted web analytics application written in Elixir that focuses on privacy and mainly simplicity. You can track your website visitors and get valuable statistics that help to improve the user’s experience. It stores data in ClickHouse and PostreSQL Databases.
In this video i will show you how to install it on your ubuntu server.
Useful Links:
VPS/VDS – https://www.mivocloud.com/
WARNING – ANGLED BRACKETS AREN’T ALLOWED IN DESCRIPTION SO BE ATTENTIVE TO THE VIDEO IN NANO EDITOR
Commands Used:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo “deb [arch=$(dpkg –print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list /dev/null
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
curl -SL https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
docker compose –version
cd /opt
git clone https://github.com/plausible/hosting
cd hosting
openssl rand -base64 64
nano plausible-conf.env
ADMIN_USER_EMAIL= EmailGoesHGere
ADMIN_USER_NAME=Admin_Username_Here
ADMIN_USER_PWD=Admin_Password_Here
BASE_URL=Domain_Name_here
SECRET_KEY_BASE=Paste_Secret_Key_Here
docker-compose up
ubuntu