ip to location finder using maxmind database (with auto database update functionality)
880
docker pull moinologics/ip2location:latest
docker run --rm \
-e MAXMIND_ACCOUNT_ID=your-maxmind-user-id \
-e MAXMIND_LICENSE_KEY=your-maxmind-license-key \
-e MAXMIND_EDITION_IDS=GeoLite2-City \
-p 8080:8080 \
moinologics/ip2location:latest
curl --location 'http://localhost:8080/location/38.152.13.107
curl --location 'http://localhost:8080/location/2001:4860:4860::8888'
| ENV | DESCRIPTION | Required |
|---|---|---|
| MAXMIND_ACCOUNT_ID | your maxmind account id (can we found on license key page) | YES |
| MAXMIND_LICENSE_KEY | your maxmind license key (can we found/generate on license key page) | YES |
| MAXMIND_EDITION_IDS | space seprated GEOIP EDITION IDs for example GeoLite2-City | YES |
| ALLOWED_API_KEY | API key which should we provided in API-KEY header for Authentication if not provided, no authentication will be used | NO |
if you provided ALLOWED_API_KEY env in docker container with a non empty string, than you have to send this api key in header API-KEY with same value
example request
curl --location 'http://localhost:8080/location/38.152.13.107' --header 'API-KEY: yourapikey'
one cronjob is also scheduled for running every night at 12:00 (UTC)
https://github.com/moinologics/ip2location
Content type
Image
Digest
sha256:aff928b38…
Size
9.5 MB
Last updated
about 3 years ago
docker pull moinologics/ip2location