I'm trying to run matomo in a dokku instance with https://github.com/rclement/dokku-matomo
This dokku setup is using a docker image: https://github.com/crazy-max/docker-matomo
The above dokku setup uses quite an old version of the docker-matomo image (3.5.1). I attempted to update the Dockerfile to pull crazymax/matomo:latest
(3.13.4-RC1), which seemed to work but now my Dokku container returns an nginx 404.
From what I understand from this issue: https://github.com/crazy-max/docker-matomo/issues/14 there needs to be an update to the configuration of the traefik.frontend.rule=Host:matomo.example.com
variable in docker-compose.yml
to point to my Dokku hostname.
I've tried editing and placing the docker-compose.yml
file in the root of my Dokku repository, but it seems to have no effect. My confusion lies in how to use docker-compose
with Dokku?
You do not need to use
docker-compose.yml
to deploy to Dokku. Here is a run through on how to set updocker-matomo
on Dokku by pulling the image directly from Docker Hub. You should be able to re-use your old database, by using this different deploy method.I also created a pull request to update rclement/dokku-matomo: https://github.com/rclement/dokku-matomo/pull/2