Matomo
Google Analytics alternative that protects your data and your customers’ privacy.
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml
version: "3"
services:
db:
image: mariadb:10.11
command: --max-allowed-packet=64MB
restart: always
volumes:
- ./db:/var/lib/mysql:Z
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- ./.env
app:
image: matomo:fpm-alpine
restart: always
links:
- db
volumes:
# - ./config:/var/www/html/config:z
# - ./logs:/var/www/html/logs:z
- ./matomo:/var/www/html:z
environment:
- MATOMO_DATABASE_HOST=db
- PHP_MEMORY_LIMIT=2048M
env_file:
- ./.env
web:
image: nginx:alpine
restart: always
volumes:
- matomo:/var/www/html:z,ro
# see https://github.com/matomo-org/matomo-nginx
- ./matomo.conf:/etc/nginx/conf.d/default.conf:z,ro
ports:
- 8080:80.env
MYSQL_PASSWORD=password
MYSQL_DATABASE=matomo
MYSQL_USER=matomo
MATOMO_DATABASE_ADAPTER=mysql
MATOMO_DATABASE_TABLES_PREFIX=matomo_
MATOMO_DATABASE_USERNAME=matomo
MATOMO_DATABASE_PASSWORD=
MATOMO_DATABASE_DBNAME=matomo
MARIADB_AUTO_UPGRADE=1
MARIADB_INITDB_SKIP_TZINFO=1Resources
Website: https://matomo.org/
GitHub: https://github.com/matomo-org/matomo
Docker Hub: https://hub.docker.com/_/matomo
Docker Hub (Bitnami): https://hub.docker.com/r/bitnami/matomo
Configuration: https://github.com/matomo-org/docker