-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
69 lines (61 loc) · 1.26 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
version: '3.6'
services:
web:
image: nginx:latest
ports:
- "${NGINX_PORT}:80"
volumes:
- type: volume
source: matomo-app
target: /matomo
- type: bind
source: ./matomo_nginx.conf
target: /etc/nginx/conf.d/default.conf
networks:
- matomo-network
depends_on:
- matomo_database
- matomo
matomo:
image: luongbui/matomo:3.5.1
volumes:
- type: volume
source: matomo-app
target: /matomo
networks:
- matomo-network
depends_on:
- matomo_database
matomo_database:
image: mysql:5.7.22
ports:
- "${MYSQL_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: matomo_db
MYSQL_USER: matomo
MYSQL_PASSWORD: matomo
volumes:
- type: volume
source: matomo-database
target: /var/lib/mysql
networks:
- matomo-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: matomo_database
PMA_PORT: ${MYSQL_PORT}
ports:
- "${PHPMYADMIN_PORT}:80"
networks:
- matomo-network
depends_on:
- matomo_database
- matomo
networks:
matomo-network:
driver: bridge
volumes:
matomo-app:
matomo-database: