mirror of
https://github.com/plausible/community-edition.git
synced 2026-09-21 11:10:20 -04:00
11
Maxmind Integration
ruslandoga edited this page 2024-09-24 14:00:08 +07:00
Warning
Using city-level databases like MaxMind's GeoLite2-City requires ~1GB more RAM.
This guide shows how to add city-level geolocation to Plausible in three easy steps!
-
Create an account: https://www.maxmind.com/en/geolite2/signup
-
Add MAXMIND_LICENSE_KEY and MAXMIND_EDITION environmental variables to your environment file restart the container.
$ cd plausible-ce $ echo "MAXMIND_LICENSE_KEY=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" >> .env $ echo "MAXMIND_EDITION=GeoLite2-City" >> .env $ docker compose up -d $ docker compose exec plausible env | grep MAXMIND_LICENSE_KEY MAXMIND_LICENSE_KEY=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
Done! Now the geolocation databases would be automatically downloaded and kept up to date.