mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
.. | ||
docker-compose.yml | ||
Dockerfile | ||
freegeoip.service | ||
README.md |
freegeoip
docker-compose.yml
freegeoip:
image: vimagick/freegeoip
ports:
- "8080:8080"
- "8888:8888"
restart: always
up and running
$ docker-compose up -d
$ curl -s http://localhost:8080/json/8.8.8.8 | jq .
{
"ip": "8.8.8.8",
"country_code": "US",
"country_name": "United States",
"region_code": "",
"region_name": "",
"city": "",
"zip_code": "",
"time_zone": "",
"latitude": 37.751,
"longitude": -97.822,
"metro_code": 0
}