bandsintown / docker-geoip

Docker images for Maxmind GeoIP2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dockeri.co

Build status GitHub issues GitHub stars Docker layers

Maxmind GeoIP

Usage

Run the image

docker run -d bandsintown/geoip

The directory /usr/share/GeoIP containing the Maxmind GeoIP database is mounted by default as a volume.

Variables

The following environment variables might be passed to configure Maxmind GeoIP update:

  • GEOIP_USER_ID: The Maxmind User Id. Defaults to 999999 (free)
  • GEOIP_LICENCE_KEY: The Maxmind Licence Key. Defaults to 000000000000 (free)
  • GEOIP_PRODUCT_IDS: The Maxmind product ids. Defaults to 506 533 GeoLite2-City GeoLite2-Country
  • GEOIP_MAXMIND_HOST: The server to use. Defaults to updates.maxmind.com.
  • GEOIP_PROTOCOL: The desired protocol either https (default) or http.
  • GEOIP_SKIP_HOSTNAME_VERIFICATION: skip host name verification on HTTPS connections. Defaults to 0.
  • GEOIP_SKIP_PEER_VERIFICATION: skip peer verification on HTTPS connections. Defaults to 0.

Cron

The image is configured to run a cron daemon updating the Maxmind GeoIP database each day at 1AM.

If you don't want to have a daemon updating regularly the Maxmind GeoIP database you can just run the image to update the image once:

docker run -d bandsintown/geoip /usr/local/bin/geoipupdate.sh

The container will start and stop but the Maxmind GeoIP database will be updated in /usr/share/GeoIP directory.

About

Docker images for Maxmind GeoIP2


Languages

Language:Shell 100.0%