Skip to content

Instantly share code, notes, and snippets.

@AlejandroAkbal
Created February 10, 2024 16:53
Show Gist options
  • Save AlejandroAkbal/fe4e5ecbf2af6e9cc493e1c1016f7251 to your computer and use it in GitHub Desktop.
Save AlejandroAkbal/fe4e5ecbf2af6e9cc493e1c1016f7251 to your computer and use it in GitHub Desktop.
Matomo 5 docker compose
version: '3'
services:
matomo:
image: 'bitnami/matomo:latest'
depends_on:
- db
volumes:
- 'matomo:/bitnami'
environment:
- MATOMO_DATABASE_HOST=db
- MATOMO_DATABASE_NAME=matomo
- MATOMO_DATABASE_USER=matomo
- MATOMO_DATABASE_PASSWORD=matomo
- MATOMO_PROXY_CLIENT_HEADER=HTTP_X_FORWARDED_FOR
- MATOMO_ENABLE_FORCE_SSL=yes
- MATOMO_ENABLE_ASSUME_SECURE_PROTOCOL=yes
restart: unless-stopped
db:
image: 'bitnami/mariadb:10.11'
volumes:
- 'db:/bitnami/mariadb'
environment:
- MARIADB_DATABASE=matomo
- MARIADB_USER=matomo
- MARIADB_PASSWORD=matomo
- 'MARIADB_ROOT_PASSWORD=${SERVICE_PASSWORD_MYSQL_ROOT}'
- MARIADB_SKIP_TEST_DB=yes
- MARIADB_EXTRA_FLAGS=--max_allowed_packet=256MB
restart: unless-stopped
volumes:
matomo: null
db: null
@AlejandroAkbal
Copy link
Author

AlejandroAkbal commented Feb 10, 2024

Ready for Coolify PaaS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment