mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-30 15:31:12 +00:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
services:
|
|
|
|
matomo:
|
|
image: matomo:5-fpm-alpine
|
|
container_name: matomo
|
|
ports:
|
|
- 8099:80
|
|
expose:
|
|
- 80
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/apache/apache2.conf:/etc/apache2/apache2.conf:ro
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/html:/var/www/html
|
|
environment:
|
|
- MATOMO_DATABASE_HOST=matomo_db
|
|
#- VIRTUAL_HOST=matomo.example.com
|
|
#- LETSENCRYPT_HOST=stats.mysite.ext
|
|
#- LETSENCRYPT_EMAIL=email@something.ext
|
|
env_file:
|
|
- ./db.env
|
|
depends_on:
|
|
- matomo_db
|
|
restart: unless-stopped
|
|
#labels:
|
|
# - traefik.enable=true
|
|
# - traefik.http.routers.matomo.rule=Host(`matomo.example.com`)
|
|
# - traefik.http.services.matomo.loadbalancer.server.port=80
|
|
# - traefik.docker.network=proxy
|
|
# # Part for local lan services only
|
|
# # - traefik.http.routers.matomo.middlewares=local-ipwhitelist@file
|
|
|
|
|
|
matomo_db:
|
|
image: mariadb:11.5
|
|
container_name: matomo_db
|
|
command: --max-allowed-packet=64MB
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=makeitup
|
|
env_file:
|
|
- ./db.env
|
|
expose:
|
|
- 3306
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/database:/var/lib/mysql
|