Dockerized script for downloading MaxMind databases:
- GeoLite2-ASN.mmdb
- GeoLite2-City.mmdb
- Install Docker
- Signup for GeoLite2 access (https://www.maxmind.com/en/geolite2/signup)
Replace credentials with your own, and then run:
docker pull athlon1600/maxmind-download:latest
docker run --rm -v /usr/share/GeoIP:/maxmind -e ACCOUNT_ID=xxx -e LICENSE_KEY=xxx maxmind-download
✔️ Database files will be downloaded to /usr/share/GeoIP
directory.
You are limited to 30 downloads in a 24-hour period as per:
https://support.maxmind.com/hc/en-us/articles/4408216129947-Download-and-Update-Databases#h_01G3XX4YD33TBJ66DYEW7XF707
databases
directory of this repo will always contain up-to-date database files, which you can download directly via CDN:
https://github.com/Athlon1600/maxmind-download/raw/master/databases/GeoLite2-ASN.mmdb
https://github.com/Athlon1600/maxmind-download/raw/master/databases/GeoLite2-City.mmdb
jsDelivr CDN:
https://cdn.jsdelivr.net/gh/athlon1600/maxmind-download@master/databases/GeoLite2-ASN.mmdb
https://cdn.jsdelivr.net/gh/athlon1600/maxmind-download@master/databases/GeoLite2-City.mmdb
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.