islandora/matomo

Sponsored OSS

By islandora

Updated 6 months ago

Web analytics.

Image
Security
Integration & delivery
Web analytics
1

50K+

islandora/matomo repository overview

Matomo

Docker image for Matomo version 4.15.1

Built from Islandora-DevOps/isle-buildkit matomo

Please refer to the Matomo Documentation for more in-depth information.

Dependencies

Requires islandora/nginx docker image to build. Please refer to the Nginx Image README for additional information including additional settings, volumes, ports, etc.

Additionally it requires a database backend to run, and website to aggregate metrics for.

Ports

PortDescription
80HTTP

Settings

Confd Settings
Environment VariableDefaultDescription
MATOMO_ASSUME_SECURE_PROTOCOL1https://matomo.org/faq/how-to-install/faq_98/
MATOMO_DEFAULT_HOSThttps://islandora.traefik.meThe URL of the default site for which to gather metrics for
MATOMO_DEFAULT_NAMEIslandoraThe name of the default site
MATOMO_DEFAULT_TIMEZONEAmerica/HalifaxThe timezone where the default site is hosted
MATOMO_FORCE_SSL1https://matomo.org/faq/how-to/faq_91/
MATOMO_PROXY_CLIENT_HEADERSHTTP_X_FORWARDED_FORhttps://matomo.org/faq/how-to-install/faq_98/
MATOMO_PROXY_HOST_HEADERSHTTP_X_FORWARDED_HOSThttps://matomo.org/faq/how-to-install/faq_98/
MATOMO_PROXY_URI_HEADER1https://matomo.org/faq/how-to-install/faq_98/
MATOMO_USER_EMAIL[email protected]The matomo administrator email
MATOMO_USER_NAMEadminThe matomo administrator user
MATOMO_USER_PASSpasswordThe matomo administrator's password (See how to generate below)

To regenerate a the MATOMO_USER_PASS you must use the following snippet of PHP.

php -r 'echo password_hash(md5("password"), PASSWORD_DEFAULT) . "\n";'

On production sites generate your own MATOMO_SALT with the following snippet of PHP it is important you keep it secret along with your passwords.

php -r 'echo md5(uniqid(rand(), true));'
Database Settings

Matomo unlike many of our services can only use MySQL as a backend. Please see the documentation in the base image for more information about the default database connection configuration.

Environment VariableDefaultDescription
MATOMO_DB_NAMEmatomoThe name of the database
MATOMO_DB_USERmatomoThe user to connect to the database
MATOMO_DB_PASSWORDpasswordThe password of the user used to connect to the database

Additionally the DB_DRIVER variable is hard-coded to be mysql as no other value is supported.

Multi-site Settings

Additional multi-sites can be defined by adding more environment variables, following the above conventions, only the MATOMO_SITE_{SITE}_HOST is required to create an additional site:

Environment VariableDefaultDescription
MATOMO_SITE_{SITE}_HOSTThe URL of the site for which to gather metrics for
MATOMO_SITE_{SITE}_NAME{SITE}The name of the site
MATOMO_SITE_{SITE}_TIMEZONEAmerica/HalifaxThe timezone the site is hosted in
MATOMO_SITE_{SITE}_TIMEZONEAmerica/HalifaxThe timezone the site is hosted in
MATOMO_SITE_{SITE}_USER_EMAIL[email protected]The site administrator email
MATOMO_SITE_{SITE}_USER_NAME{SITE}_adminThe site administrator user
MATOMO_SITE_{SITE}_USER_PASS$2y$10$S38e7HPM9LI3aOIvcnRsfuMCm4ipNP572QsvbCK60upoHVJ61hMrSThe site administrator's password (See how to generate above)

Tag summary

Content type

Image

Digest

sha256:ec6dcece6

Size

176.6 MB

Last updated

6 months ago

docker pull islandora/matomo:3

This week's pulls

Pulls:

96

Jun 29 to Jul 5