forked from crazy-max/docker-matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
119 lines (111 loc) · 3.02 KB
/
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: matomo
services:
traefik:
image: traefik:2.5
command:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
- "--log=true"
- "--log.level=INFO"
- "--entrypoints.http=true"
- "--entrypoints.http.address=:80"
- "--entrypoints.http.http.redirections.entrypoint.to=https"
- "--entrypoints.http.http.redirections.entrypoint.scheme=https"
- "--entrypoints.https=true"
- "--entrypoints.https.address=:443"
- "--certificatesresolvers.letsencrypt"
- "--certificatesresolvers.letsencrypt.acme.storage=acme.json"
- "--certificatesresolvers.letsencrypt.acme.email=webmaster@example.com"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
- "--providers.docker"
- "--providers.docker.watch=true"
- "--providers.docker.exposedbydefault=false"
ports:
- target: 80
published: 80
protocol: tcp
- target: 443
published: 443
protocol: tcp
volumes:
- "./acme.json:/acme.json"
- "/var/run/docker.sock:/var/run/docker.sock"
restart: always
db:
image: mariadb:10
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- "--max_allowed_packet=256M"
volumes:
- "db:/var/lib/mysql"
environment:
- "TZ"
- "MARIADB_RANDOM_ROOT_PASSWORD=yes"
- "MYSQL_DATABASE"
- "MYSQL_USER"
- "MYSQL_PASSWORD"
restart: always
redis:
image: redis:4.0-alpine
restart: always
msmtpd:
image: crazymax/msmtpd:latest
env_file:
- "./msmtpd.env"
environment:
- "TZ"
restart: always
geoip-updater:
image: crazymax/geoip-updater:latest
volumes:
- "geoip-updater:/data"
env_file:
- "./geoip-updater.env"
environment:
- "TZ"
restart: always
matomo:
image: crazymax/matomo:latest
depends_on:
- db
- redis
- msmtpd
volumes:
- "matomo:/data"
- "geoip-updater:/data/geoip"
labels:
- "traefik.enable=true"
- "traefik.http.routers.matomo.entrypoints=https"
- "traefik.http.routers.matomo.rule=Host(`matomo.example.com`)"
- "traefik.http.routers.matomo.tls=true"
- "traefik.http.routers.matomo.tls.certresolver=letsencrypt"
- "traefik.http.routers.matomo.tls.domains[0].main=matomo.example.com"
- "traefik.http.services.matomo.loadbalancer.server.port=8000"
env_file:
- "./matomo.env"
environment:
- "TZ"
restart: always
cron:
image: crazymax/matomo:latest
depends_on:
- matomo
volumes:
- "matomo:/data"
- "geoip-updater:/data/geoip"
env_file:
- "./matomo.env"
environment:
- "TZ"
- "SIDECAR_CRON=1"
- "CRON_ARCHIVE=0 * * * *"
- "ARCHIVE_OPTIONS=--concurrent-requests-per-website=3"
healthcheck:
disable: true
restart: always
volumes:
db:
geoip-updater:
matomo: