I am trying to enable GeoIP 2 City database GeoLite2-City.mmdb
with my docker compose/stack yaml file but so far no working so wanted to come here to get help
so how do i enable the GeoIP 2 to work?
here is my current docker stack yaml file
matomo:
image: matomo:5.1.2-apache
volumes:
- matomo-data:/var/www/html:z
- /mnt/matomo/GeoLite2-City.mmdb:/var/www/html/misc/GeoLite2-City.mmdb:z
networks:
- app
env_file:
- ./.env.matomo
deploy:
placement:
constraints:
- node.labels.node == server-1
labels:
- "traefik.enable=true"
- "traefik.docker.network=app"
- "traefik.http.services.matomo.loadbalancer.server.port=80"
- "traefik.http.routers.matomo-http.entrypoints=http"
- "traefik.http.routers.matomo-http.rule=Host(`matomo.app.dev`)"
- "traefik.http.routers.matomo-https.entrypoints=https"
- "traefik.http.routers.matomo-https.rule=Host(`matomo.app.dev`)"
- "traefik.http.routers.matomo-https.tls=true"
- "traefik.http.routers.matomo-http.middlewares=matomo-http-redirect"
- "traefik.http.middlewares.matomo-http-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.matomo-http-redirect.redirectscheme.permanent=true"
here is my env file content
.env.matomo
MATOMO_DATABASE_HOST=matomo-mariadb
MYSQL_PASSWORD=matomo-password
MYSQL_DATABASE=matomo-db
MYSQL_USER=matomo-user
MATOMO_DATABASE_ADAPTER=mysql
MATOMO_DATABASE_TABLES_PREFIX=matomo_
MATOMO_DATABASE_USERNAME=matomo-user
MATOMO_DATABASE_PASSWORD=matomo-password
MATOMO_DATABASE_DBNAME=matomo-db
MARIADB_AUTO_UPGRADE=1
MARIADB_INITDB_SKIP_TZINFO=1
REAL_IP_HEADER=X-Forwarded-For
TZ=Europe/Berlin
so how do i enable the GeoIP 2 to work?