How to download GeoIP database via code?

I’m running Matomo via docker-compose, using the official Docker image. Here’s my compose file:

Upon startup, the GeoIP database is missing. I can log in and start a fresh download, but that’s error prone. I failed to detect where that database is downloaded to, in order to provide a persistent volume. Could somebody help with that? Or, suggest a way to trigger the download upon container startup?




The database (and a few other things) are stored in misc/