Skip to content

Instantly share code, notes, and snippets.

@macghriogair
Last active January 26, 2021 11:50
Show Gist options
  • Save macghriogair/f2258dc37790a3a44c8f1c1ed4d32ec7 to your computer and use it in GitHub Desktop.
Save macghriogair/f2258dc37790a3a44c8f1c1ed4d32ec7 to your computer and use it in GitHub Desktop.
[Matomo bitnami docker] #matomo #analytics #docker
# Kudos: https://github.com/bitnami/bitnami-docker-matomo
version: "2"
services:
mariadb:
image: "docker.io/bitnami/mariadb:10.3-debian-10"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_matomo
- MARIADB_DATABASE=bitnami_matomo
# Flag necessary for the database max allowed packet check
# https://matomo.org/faq/troubleshooting/faq_183/
- MARIADB_EXTRA_FLAGS=--max_allowed_packet=64MB
volumes:
- "mariadb_data:/bitnami/mariadb"
matomo:
image: "docker.io/bitnami/matomo:4-debian-10"
ports:
- "8090:8080"
environment:
- MATOMO_DATABASE_HOST=mariadb
- MATOMO_DATABASE_PORT_NUMBER=3306
- MATOMO_DATABASE_USER=bn_matomo
- MATOMO_DATABASE_NAME=bitnami_matomo
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- "matomo_data:/bitnami/matomo"
depends_on:
- mariadb
volumes:
mariadb_data:
driver: local
matomo_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment