{"id":18289862,"url":"https://github.com/tiredofit/docker-matomo","last_synced_at":"2025-04-05T09:31:49.272Z","repository":{"id":88407600,"uuid":"101132485","full_name":"tiredofit/docker-matomo","owner":"tiredofit","description":"Dockerized web analytics","archived":false,"fork":false,"pushed_at":"2024-01-26T20:48:30.000Z","size":50,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-21T02:22:03.177Z","etag":null,"topics":["alpine","analytics","docker","nginx","php-fpm","piwik"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiredofit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["tiredofit"]}},"created_at":"2017-08-23T03:15:04.000Z","updated_at":"2024-03-11T14:41:09.000Z","dependencies_parsed_at":"2024-01-26T21:47:50.704Z","dependency_job_id":null,"html_url":"https://github.com/tiredofit/docker-matomo","commit_stats":null,"previous_names":["tiredofit/docker-piwik"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-matomo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-matomo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-matomo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-matomo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiredofit","download_url":"https://codeload.github.com/tiredofit/docker-matomo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318313,"owners_count":20919457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","analytics","docker","nginx","php-fpm","piwik"],"created_at":"2024-11-05T14:08:36.012Z","updated_at":"2025-04-05T09:31:47.881Z","avatar_url":"https://github.com/tiredofit.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/tiredofit"],"categories":[],"sub_categories":[],"readme":"# tiredofit/matomo\n\n## About\n\nDockerfile to build a [matomo](https://www.matomo.org/) container image. It is an Open Source Google Analytics Replacement.\n\nIt will automatically download the latest Piwik release upon build, and if you have set correct environment variables, will autocreate a database if you wish.\n\n\n[Changelog](CHANGELOG.md)\n\n## Maintainer\n\n- [Dave Conroy][https://github.com/tiredofit]\n\n## Table of Contents\n\n- [About](#about)\n- [Maintainer](#maintainer)\n- [Table of Contents](#table-of-contents)\n- [Prerequisites and Assumptions](#prerequisites-and-assumptions)\n- [Installation](#installation)\n  - [Quick Start](#quick-start)\n- [Configuration](#configuration)\n  - [Persistent Storage](#persistent-storage)\n  - [Database](#database)\n  - [Environment Variables](#environment-variables)\n  - [Networking](#networking)\n- [Maintenance](#maintenance)\n  - [Shell Access](#shell-access)\n- [References](#references)\n\n## Prerequisites and Assumptions\n\nThis image relies on an external MySQL Server, external SMTP Server, external Redis Server and is meant to be run behind a reverse SSL Proxy such as nginx-proxy.\n\n\n## Installation\n\nAutomated builds of the image are available on [Registry](https://hub.docker.com/r/tiredofit/matomo)\n\n\n```bash\ndocker pull docker.io/tiredofit/matomo\n```\n\n### Quick Start\n\n* The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [docker-compose.yml](examples/docker-compose.yml) that can be modified for development or production use.\n\n* Set various [environment variables](#environment-variables) to understand the capabilities of this image.\n* Map [persistent storage](#data-volumes) for access to configuration and data files for backup.\n\n## Configuration\n\n### Persistent Storage\n\nThe following directories are used for configuration and can be mapped for persistent storage.\n\n| Directory     | Description                |\n| ------------- | -------------------------- |\n| `/www/matomo` | Root matomo Directory      |\n| `/var/log/unit`   | Nginx Unit logfiles |\n\n### Database\n\nThis container requires the usage of an external database. Set one up accordingly.\n\n```sql\nCREATE USER 'matomo'@'%.%.%.%' IDENTIFIED BY 'password';\nCREATE DATABASE IF NOT EXISTS `matomo` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;\nGRANT ALL PRIVILEGES ON `matomo`.* TO 'matomo'@'%.%.%.%';\n```\n\n### Environment Variables\n\nBelow is the complete list of available options that can be used to customize your installation.\n\n| Parameter | Description                                         | Default | `_FILE` |\n| --------- | --------------------------------------------------- | ------- | ------- |\n| `DB_HOST` | MySQL external container hostname (e.g. matomo1-db) |         | x       |\n| `DB_NAME` | MySQL database name i.e. (e.g. matomo)              |         | x       |\n| `DB_USER` | MySQL username for database (e.g. matomo)           |         | x       |\n| `DB_PASS` | MySQL password for database (e.g. userpassword)     |         | x       |\n\n\n### Networking\n\nThe following ports are exposed.\n\n| Port | Description |\n| ---- | ----------- |\n| `80` | HTTP        |\n\n## Maintenance\n### Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell.\n\n```bash\ndocker exec -it (whatever your container name is e.g. matomo) bash\n```\n\n## References\n\n* https://www.matomo.org\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiredofit%2Fdocker-matomo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiredofit%2Fdocker-matomo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiredofit%2Fdocker-matomo/lists"}