golang Service use GeoIP2-Country database, listen on port 8080 receive IP address and return country and country code
Download GeoIP2-Country.mmdb or GeoLite2-Country.mmdb file to ./GeoIP2-Country.mmdb,
Build:
docker build -t ip2country .
Run container:
docker run -p 8080:8080 ip2country
request and response example:
curl http://localhost:8080/8.8.8.8