Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DB Tech Matomo Analytics Container
version: '2.1'
services:
matomo:
image: matomo
restart: always
ports:
- 8384:80
environment:
- MATOMO_DATABASE_HOST=db
- MATOMO_DATABASE_TABLES_PREFIX=mat_
- MATOMO_DATABASE_USERNAME=matomo
- MATOMO_DATABASE_PASSWORD=matomo
- MATOMO_DATABASE_DBNAME=matomo
volumes:
- /srv/dev-disk-by-uuid-0d4a201c-b292-412d-ade6-cc5561e54f1f/Configs/Matomo:/var/www/html
links:
- db:db
db:
image: yobasystems/alpine-mariadb:latest
restart: always
environment:
MYSQL_DATABASE: matomo
MYSQL_USER: matomo
MYSQL_PASSWORD: matomo
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- /srv/dev-disk-by-uuid-0d4a201c-b292-412d-ade6-cc5561e54f1f/Configs/Matomodb:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment