Matomo - The leading open-source analytics platform

Docker Matomo - The leading open-source analytics platform

Screenshot 2020-12-11 at 18.01.19.png

Matomo (formerly Piwik) is the leading open-source analytics platform that gives you more than just powerful analytics:
  • Free open-source software
  • 100% data ownership
  • User privacy protection
  • User-centric insights
  • Customisable and extensible

For Matomo in Docker we'll use 3 docker images:
  • Matomo official image
  • Linuxserver MariaDB (database)
  • phpMyAdmin (web UI for MariaDB)


First, install MariaDB and phpMyAdmin. Create a database for Matomo in phpMyAdmin (for database collation use utf8mb4_general_ci). Set the username name for the database and password (you'll need them later in Matomo installation).

Once that's done, let's go to Matomo installation in Docker.


In DSM go to Docker -> Registry and search for matomo:

Screenshot 2020-12-11 at 18.19.28.png



Download the matomo image. Pick the latest image, when asked.

Once downloaded, go to the Image tab and double click on matomo:latest.

Click Advanced settings and Enable auto-restart (optional) in next screen.


In the Volume tab click on Add folder and create a folder on your NAS where the files will be located and set the Mount path to /var/www/html like this:

Screenshot 2020-12-11 at 18.22.41.png



Skip the Network tab.


In Port Settings tab set the local port number to any number (for instance, set it to 7777):

Screenshot 2020-12-11 at 18.22.58.png



Skip the Links and Environment tabs.


Apply changes and save everything.


Go to http://yourNASip:localMatomoPort to start the installation:

Screenshot 2020-12-11 at 18.31.58.png



Follow the steps.


* To connect to your Matomo from outside, you can use Reverse Proxy. Check this tutorial.
Related resources



Top