-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.58 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
services:
db:
image: mariadb:10.11
mem_limit: ${MEM_LIMIT}
memswap_limit: ${MEM_LIMIT}
cpus: ${CPU_LIMIT}
command: --max-allowed-packet=64MB
restart: unless-stopped
volumes:
- ./dbdata:/var/lib/mysql:Z
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MARIADB_AUTO_UPGRADE: ${MARIADB_AUTO_UPGRADE}
MARIADB_INITDB_SKIP_TZINFO: ${MARIADB_INITDB_SKIP_TZINFO}
MARIADB_DISABLE_UPGRADE_BACKUP: ${MARIADB_DISABLE_UPGRADE_BACKUP}
app:
image: matomo:fpm-alpine
mem_limit: ${MEM_LIMIT}
memswap_limit: ${MEM_LIMIT}
cpus: ${CPU_LIMIT}
restart: unless-stopped
links:
- db
volumes:
- ./config:/var/www/html/config:z
- ./logs:/var/www/html/logs:z
- ./www:/var/www/html:z
environment:
MATOMO_DATABASE_HOST: db
MATOMO_DATABASE_ADAPTER: ${MATOMO_DATABASE_ADAPTER}
MATOMO_DATABASE_TABLES_PREFIX: ${MATOMO_DATABASE_TABLES_PREFIX}
MATOMO_DATABASE_USERNAME: ${MATOMO_DATABASE_USERNAME}
MATOMO_DATABASE_PASSWORD: ${MATOMO_DATABASE_PASSWORD}
MATOMO_DATABASE_DBNAME: ${MATOMO_DATABASE_DBNAME}
PHP_MEMORY_LIMIT: 2048M
web:
image: nginx:alpine
mem_limit: ${MEM_LIMIT}
memswap_limit: ${MEM_LIMIT}
cpus: ${CPU_LIMIT}
restart: unless-stopped
volumes:
- ./www:/var/www/html:z,ro
# see https://github.com/matomo-org/matomo-nginx
- ./matomo.conf:/etc/nginx/conf.d/default.conf:z,ro
ports:
- ${MATOMO_WEB_PORT}:80