Skip to content

fo0/geolocation-service

Repository files navigation

geolocation-service

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

Updates?

Every Sunday, check CI/CD

Example

# 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

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"