-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (47 loc) · 1.11 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
version: "3"
services:
db:
hostname: matomo_db
image: mariadb:11.3
command: --max-allowed-packet=64MB
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MATOMO_DB_PASSWORD}
- MYSQL_DATABASE=${MATOMO_DB_DATABASE}
- MYSQL_USER=${MATOMO_DB_USER}
- MYSQL_PASSWORD=${MATOMO_DB_PASSWORD}
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- ./db.env
networks:
- game_node_app
# Uses Apache pointing to :80 internally
# TODO: Move config to Nginx/NPM
matomo:
hostname: matomo
image: matomo
restart: always
environment:
- MATOMO_DATABASE_HOST=matomo_db
- MATOMO_DATABASE_USERNAME=${MATOMO_DB_USER}
- MATOMO_DATABASE_PASSWORD=${MATOMO_DB_PASSWORD}
- MATOMO_DATABASE_DBNAME=${MATOMO_DB_DATABASE}
volumes:
- matomo:/var/www/html
env_file:
- ./db.env
networks:
- game_node_app
- game_node_app_public
networks:
game_node_app:
external: true
game_node_app_public:
external: true
volumes:
db:
matomo:
redis: