forked from tiredofit/docker-matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (81 loc) · 1.72 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.7'
services:
matomo-app:
image: tiredofit/matomo
container_name: matomo-app
links:
- matomo-db
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:matomo.example.com
- traefik.port=80
- traefik.protocol=http
- traefik.docker.network=proxy
- traefik.backend=matomo-app
volumes:
- ./data:/www/html
- ./logs:/www/logs
environment:
- CONTAINER_NAME=matomo-app
- DB_HOST=matomo-db
- DB_NAME=matomo
- DB_USER=matomo
- DB_PASS=userpassword
- CRON_PERIOD=60
networks:
- proxy
- services
restart: always
matomo-db:
image: tiredofit/mariadb
container_name: matomo-db
volumes:
- /var/local/db/matomo:/var/lib/mysql
environment:
- ROOT_PASS=password
- DB_NAME=matomo
- DB_USER=matomo
- DB_PASS=userpassword
- CONTAINER_NAME=matomo-db
networks:
- internal
- services
restart: always
matomo-db-redis:
image: tiredofit/redis:latest
container_name: matomo-db-redis
volumes:
- ./redis:/data:Z
environment:
- CONTAINER_NAME=matomo-db-redis
networks:
- internal
- services
restart: always
matomo-db-backup:
image: tiredofit/db-backup
container_name: matomo-db-backup
links:
- matomo-db
volumes:
- ./dbbackup:/backup
environment:
- CONTAINER_NAME=matomo-db-backup
- DB_HOST=matomo-db
- DB_TYPE=mysql
- DB_NAME=matomo
- DB_USER=matomo
- DB_PASSWORD=userpassword
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- MD5=TRUE
- COMPRESSION=BZ
networks:
- services
restart: always
networks:
proxy:
external: true
services:
external: true