forked from Haxxnet/Compose-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1.21 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "2"
services:
matomo:
container_name: matomo
image: matomo
ports:
- 8099: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
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:
container_name: matomo_db
image: mariadb
command: --max-allowed-packet=64MB
environment:
- MYSQL_ROOT_PASSWORD=makeitup
env_file:
- ./db.env
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/database:/var/lib/mysql