Run geoipupdate periodically by using crond.
Note: Need an account to get the GeoLite2 Databases. See the blog post: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/
docker pull tkrs/maxmind-geoipupdate
Simply run docker run. You can also customize the behaviour by passing environment variables. Available variables are here.
docker run -d -e ACCOUNT_ID=${YOUR_ACCOUNT_ID} -e LICENSE_KEY=${YOUR_LICENSE_KEY} -e GEOIP_DB_DIR=/data/GeoIP tkrs/maxmind-geoipupdate
Be able to run /usr/local/bin/run-geoipupdate directly if you want to one-shot.
docker run --rm -it \
-e ACCOUNT_ID=${YOUR_ACCOUNT_ID} \
-e LICENSE_KEY=${YOUR_LICENSE_KEY} \
-e GEOIP_DB_DIR=/data/GeoIP \
-v "${PWD}":/data/GeoIP \
tkrs/maxmind-geoipupdate \
/usr/local/bin/run-geoipupdate
Content type
Image
Digest
Size
9.1 MB
Last updated
almost 5 years ago
docker pull tkrs/maxmind-geoipupdate