Geolocation not working

I’ve successfully installed the dockerized version of Plausible. To add geolocation support, I followed the docs:

  1. registered at MaxMind and generated a license key for GeoIP Update > 3.1.1
  2. added account ID and license key to geoip/geoip.conf
  3. docker-compose -f docker-compose.yml -f geoip/docker-compose.geoip.yml up

Unfortunately, nothings is showing on the map. How can I enable geolocation support properly?

Without mounting the geoip volume to the plausible service, the countries will not show on the map inside the Plausible dashboard. Hovering on the map to reveal the country names and the purple shades also do not appear too without doing this change. Please try using this docker-compose.geoip.yml file instead:

version: "3.3"
services:
  plausible:
    depends_on:
      - geoip
    environment:
      - GEOLITE2_COUNTRY_DB=/geoip/GeoLite2-Country.mmdb
    volumes:
      - geoip:/geoip:ro  

  geoip:
    image: maxmindinc/geoipupdate
    environment:
      - GEOIPUPDATE_EDITION_IDS=GeoLite2-Country
      - GEOIPUPDATE_FREQUENCY=168 # update every 7 days
    env_file:
      geoip/geoip.conf
    volumes:
      - geoip:/usr/share/GeoIP

volumes:
  geoip:
    driver: local
2 Likes

Thank you, that makes sense! :slight_smile: I still have to learn a lot about Docker.

1 Like

thanks a lot. i had the same problem. this answer helped me. works! :blue_heart:

2 Likes