Self-hosted Plausible Community Edition deployment for Dokploy.
- Fork this repository to your GitHub account
- In Dokploy, create a new
Composeservice from your forked repository - In your service settings, add environment variables from
.env.example. Thedocker-compose.ymlautomatically loads these variables - Set a domain on port
8000
- BASE_URL: Domain where Plausible will be accessible (e.g.,
https://analytics.example.com) - SECRET_KEY_BASE: Encryption key (generate with:
openssl rand -base64 48) - TOTP_VAULT_KEY: 2FA vault key (generate with:
openssl rand -base64 24)
⚠️ Important: If migrating from an existing deployment, use your existingSECRET_KEY_BASEandTOTP_VAULT_KEYvalues. Regenerating these will break encrypted data and disable 2FA.
For additional features, see .env.example for configuration options:
- Email/SMTP (send notifications and password resets)
- Google OAuth (allow users to sign in with Google)
- Geolocation (GeoIP database setup)
- Performance tuning (Erlang VM optimization)
For comprehensive documentation on all configuration options, visit the official Plausible Community Edition (CE).
To update the Plausible version:
- Edit
docker-compose.yml - Update the image tag:
ghcr.io/plausible/community-edition:vX.X.X - Commit and push
- Dokploy will redeploy automatically (if webhook enabled)