-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
80 lines (77 loc) · 1.61 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
version: "2.0"
services:
# Master SQL instance
mysqlmaster:
image: mysql:5.7
ports:
- "13306:3306"
volumes:
- ./conf/mysql/mysqlmaster:/etc/mysql/conf.d
networks:
- lan
depends_on:
- pmm-server
environment:
- MYSQL_ROOT_PASSWORD=root
# Slave 1 SQL instance
mysqlslave1:
image: mysql:5.7
ports:
- "13307:3306"
volumes:
- ./conf/mysql/mysqlslave1:/etc/mysql/conf.d
networks:
- lan
depends_on:
- mysqlmaster
- pmm-server
environment:
- MYSQL_ROOT_PASSWORD=root
# Slave 1 SQL instance
mysqlslave2:
image: mysql:5.7
ports:
- "13308:3306"
volumes:
- ./conf/mysql/mysqlslave2:/etc/mysql/conf.d
networks:
- lan
depends_on:
- mysqlmaster
- pmm-server
environment:
- MYSQL_ROOT_PASSWORD=root
# proxysql instance
proxysql:
build:
context: ./
dockerfile: ./docker/proxysql/Dockerfile
ports:
- "16033:6033"
- "16032:6032"
- "16080:6080"
environment:
- ENABLE_PMM_MONITORING=true
- PMM_SERVER=pmm-server
- PROXYSQL_STATS_PORT=6032
volumes:
- ./conf/proxysql/proxysql.cnf:/etc/proxysql.cnf
- ./conf/pmm-client/supervisord.conf:/etc/supervisord.conf
- ./conf/pmm-client/pmm-client-conf.sh:/pmm-client-conf.sh
depends_on:
- mysqlmaster
- mysqlslave1
- mysqlslave2
- pmm-server
networks:
- lan
# PMM server
pmm-server:
image: percona/pmm-server
restart: always
ports:
- "8080:80"
networks:
- lan
networks:
lan: