abdulaziz-git / plausible-cloudflare-tunnel

docker-compose setups for hosting Plausible Analytics with cloudflare tunnel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plausible Analytics setup examples with Cloudflare Tunnel from Cloudflare Zero Trust

This repository acts as a template to get up and running with Plausible Analytics. with cloudflare tunnel.

How to use

Find instructions on how to run Plausible Analytics Self Hosted in our docs. Make sure you have cloudflare account with domain added and already sign up for Cloudflare Zero Trust.

  1. Go to cloudflare zero trust dasboard
  2. Create new tunnel by go to Access > Tunnel > Create Tunnel, give your tunnel a name for example, tunnel-VPC-01
  3. Copy tunnel token and paste in .env file (CLOUDFLARED_TOKEN=yourtunneltoken)
  4. Start plausible with docker compose
docker-compose up -d
  1. Still in tunnel page, create Public Hostname, select Subdomain (optional) and Domain and make sure to choose Service Type HTTP and URL plausible:8000
  2. Go to https://yourdomain

Contributing

We are always looking to expand on the options and setups provided here. Feel free to open an issue or PR if you feel something could be improved.

Upgrade guides

About

docker-compose setups for hosting Plausible Analytics with cloudflare tunnel


Languages

Language:Shell 100.0%