An open API service indexing awesome lists of open source software.

https://github.com/fo0/geolocation-service


https://github.com/fo0/geolocation-service

docker geolocation spring spring-boot

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# geolocation-service
Spring Rest Service based on MaxMind & GH Repo https://github.com/geoacumen/geoacumen-country

# Updates?
Every Sunday, check [CI/CD](https://github.com/fo0/geolocation-service/blob/master/.github/workflows/update_db.yml)

# Example
```bash
# simple
curl -X GET localhost:8080/?ip=8.8.8.8

# or with details
curl -X GET localhost:8080/details?ip=8.8.8.8
```

# docker-compose
```yml
version: "3"
services:
geolocation-service:
image: ghcr.io/fo0/geolocation-service
environment:
SPRING_APPLICATION_NAME: geolocation
SERVER_PORT: 8080
MAXMIND_GEOIP_DATABASE: classpath:Geoacumen-Country.mmdb
LOGGING_LEVEL_ME_FO0: ERROR
ports:
- "8080:8080"
expose:
- "8080"
```