1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/matomo/docker-compose.yml

33 lines
689 B
YAML
Raw Normal View History

2021-02-01 09:52:26 +02:00
version: "3.8"
x-matomo-environment: &matomo_environment
- MATOMO_DATABASE_HOST=mysql
- MATOMO_DATABASE_ADAPTER=mysql
- MATOMO_DATABASE_TABLES_PREFIX=matomo_
- MATOMO_DATABASE_USERNAME=matomo
- MATOMO_DATABASE_PASSWORD=matomo
- MATOMO_DATABASE_DBNAME=matomo
x-mysql-environment: &mysql_environment
- MYSQL_PASSWORD=matomo
- MYSQL_DATABASE=matomo
- MYSQL_USER=matomo
services:
matomo:
image: matomo
ports:
- "8000:80"
environment: *matomo_environment
depends:
- mysql
restart: unless-stopped
mysql:
image: mysql
volumes:
- ./data/mysql:/var/lib/mysql
environment: *mysql_environment
restart: unless-stopped