-
Notifications
You must be signed in to change notification settings - Fork 11
GeoIPupdate installation
smilebasti edited this page Jun 7, 2023
·
2 revisions
To use npmGrafStats the GeoLite2-City.mmdb is a requirement! A complete installation example is available with the docker-compose.yml file.
You can download it manually for free from your maxmind.com account or you can use their auto-updater docker-image.
The GeoLite2-City.mmdb must be in ./geolite
directory.
Use this Docker Compose file to automatically update the GeoLite2-City.mmdb
Set your ID and Key from your maxmind.com account.
This example assumes that your npmGrafStats container also uses the /home/docker
directory
version: '3'
services:
geoipupdate:
image: maxmindinc/geoipupdate
environment:
- GEOIPUPDATE_ACCOUNT_ID=<replace>
- GEOIPUPDATE_LICENSE_KEY=<replace>
- GEOIPUPDATE_EDITION_IDS=GeoLite2-City
- GEOIPUPDATE_FREQUENCY=24
volumes:
- /home/docker/geolite:/usr/share/GeoIP
A complete installation example is available with the docker-compose.yml file.
For original installation instructions see: https://dev.maxmind.com/geoip/updating-databases