Skip to content
/ atlas Public

A GeoIP lookup service written in Go using go-chi.

Notifications You must be signed in to change notification settings

apoclyps/atlas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas

A simple GeoIP lookup service written in Golang.

Download the free database

wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -O GeoLite2-City.tar.gz && tar -zxvf GeoLite2-City.tar.gz -C tmp/ --strip 1 && rm GeoLite2-City.tar.gz

Build and run the service

docker-compose build service
docker-compose run --service-ports service

Querying the service

curl -s "http://http://localhost:8080/ip/197.135.113.222" | jq .

About

A GeoIP lookup service written in Go using go-chi.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages