docker run -d bandsintown/geoip
The directory /usr/share/GeoIP containing the Maxmind GeoIP database is mounted by default as a volume.
The following environment variables might be passed to configure Maxmind GeoIP update:
GEOIP_USER_ID: The Maxmind User Id. Defaults to999999(free)GEOIP_LICENCE_KEY: The Maxmind Licence Key. Defaults to000000000000(free)GEOIP_PRODUCT_IDS: The Maxmind product ids. Defaults to506 533 GeoLite2-City GeoLite2-CountryGEOIP_MAXMIND_HOST: The server to use. Defaults toupdates.maxmind.com.GEOIP_PROTOCOL: The desired protocol eitherhttps(default) orhttp.GEOIP_SKIP_HOSTNAME_VERIFICATION: skip host name verification on HTTPS connections. Defaults to0.GEOIP_SKIP_PEER_VERIFICATION: skip peer verification on HTTPS connections. Defaults to0.
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.shThe container will start and stop but the Maxmind GeoIP database will be updated in /usr/share/GeoIP directory.