forked from pondix/docker-mysql-proxysql
-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
157 lines (157 loc) · 3.48 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: "2.0"
services:
mysql1:
image: mysql:5.7
ports:
- "13306:3306"
volumes:
- ./conf/mysql/mysql1:/etc/mysql/conf.d
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD=root
mysql2:
image: mysql:5.7
ports:
- "13307:3306"
volumes:
- ./conf/mysql/mysql2:/etc/mysql/conf.d
networks:
- backend
depends_on:
- mysql1
environment:
- MYSQL_ROOT_PASSWORD=root
mysql3:
image: mysql:5.7
ports:
- "13308:3306"
volumes:
- ./conf/mysql/mysql3:/etc/mysql/conf.d
networks:
- backend
depends_on:
- mysql1
environment:
- MYSQL_ROOT_PASSWORD=root
binlog_reader1:
image: renecannao/proxysql_mysqlbinlog:ubuntu18
ports:
- "14306:6020"
volumes:
- ./entrypoint/reader/reader1:/etc/proxysql_binlog_reader
entrypoint: /etc/proxysql_binlog_reader/entrypoint.sh
networks:
- backend
depends_on:
- mysql1
binlog_reader2:
image: renecannao/proxysql_mysqlbinlog:ubuntu18
ports:
- "14307:6020"
volumes:
- ./entrypoint/reader/reader2:/etc/proxysql_binlog_reader
entrypoint: /etc/proxysql_binlog_reader/entrypoint.sh
networks:
- backend
depends_on:
- mysql2
binlog_reader3:
image: renecannao/proxysql_mysqlbinlog:ubuntu18
ports:
- "14308:6020"
volumes:
- ./entrypoint/reader/reader3:/etc/proxysql_binlog_reader
entrypoint: /etc/proxysql_binlog_reader/entrypoint.sh
networks:
- backend
depends_on:
- mysql3
proxysql1:
image: proxysql/proxysql:latest
ports:
- "16033:6033"
- "16032:6032"
- "16080:6080"
volumes:
- ./conf/proxysql/proxysql.cnf:/etc/proxysql.cnf
depends_on:
- mysql1
- mysql2
- mysql3
networks:
- frontend
- backend
proxysql2:
image: proxysql/proxysql:latest
ports:
- "16043:6033"
- "16042:6032"
volumes:
- ./conf/proxysql/proxysql.cnf:/etc/proxysql.cnf
depends_on:
- mysql1
- mysql2
- mysql3
networks:
- frontend
- backend
proxysql3:
image: proxysql/proxysql:latest
ports:
- "16053:6033"
- "16052:6032"
volumes:
- ./conf/proxysql/proxysql.cnf:/etc/proxysql.cnf
depends_on:
- mysql1
- mysql2
- mysql3
networks:
- frontend
- backend
orc1:
build: ./conf/orchestrator/
ports:
- "23101:3000"
volumes:
- ./conf/orchestrator/orc1/orchestrator.conf.json:/etc/orchestrator.conf.json
- ./conf/orchestrator/remove-proxysql-host.bash:/root/remove-proxysql-host.bash
depends_on:
- mysql1
- mysql2
- mysql3
- proxysql1
networks:
- backend
orc2:
build: ./conf/orchestrator/
ports:
- "23102:3000"
volumes:
- ./conf/orchestrator/orc2/orchestrator.conf.json:/etc/orchestrator.conf.json
- ./conf/orchestrator/remove-proxysql-host.bash:/root/remove-proxysql-host.bash
depends_on:
- mysql1
- mysql2
- mysql3
- proxysql1
networks:
- backend
orc3:
build: ./conf/orchestrator/
ports:
- "23103:3000"
volumes:
- ./conf/orchestrator/orc3/orchestrator.conf.json:/etc/orchestrator.conf.json
- ./conf/orchestrator/remove-proxysql-host.bash:/root/remove-proxysql-host.bash
depends_on:
- mysql1
- mysql2
- mysql3
- proxysql1
networks:
- backend
networks:
frontend:
backend: