Skip to content

Maxmind Integration

ruslandoga edited this page Sep 13, 2024 · 11 revisions
  1. Create an account here.

  2. Navigate to your license keys after-account-create

  3. Generate a new license key before-generate generate after-generate

  4. Add MAXMIND_LICENSE_KEY and MAXMIND_EDITION environmental variables to your .env and restart the container.

$ echo "MAXMIND_LICENSE_KEY=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" >> .env
$ docker compose up -d

Done! Now the geolocation databases would be automatically downloaded and kept up to date.

Note that using city-level databases like MaxMind's GeoLite2-City requires ~1GB more RAM.

Clone this wiki locally