-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdocker-compose.yml
146 lines (146 loc) · 3.31 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
version: "2.0"
services:
mysql1:
image: mysql:8.0.30
container_name: mysql1
ports:
- "13306:3306"
volumes:
- ./conf/mysql/mysql1:/etc/mysql/conf.d
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD=root
mysql2:
image: mysql:8.0.30
container_name: mysql2
ports:
- "13307:3306"
volumes:
- ./conf/mysql/mysql2:/etc/mysql/conf.d
networks:
- backend
depends_on:
- mysql1
environment:
- MYSQL_ROOT_PASSWORD=root
mysql3:
image: mysql:8.0.30
container_name: mysql3
ports:
- "13308:3306"
volumes:
- ./conf/mysql/mysql3:/etc/mysql/conf.d
networks:
- backend
depends_on:
- mysql1
environment:
- MYSQL_ROOT_PASSWORD=root
proxysql:
image: proxysql/proxysql:latest
container_name: proxysql
ports:
- "16033:6033"
- "16032:6032"
- "16080:6080"
volumes:
- ./conf/proxysql/proxysql.cnf:/etc/proxysql.cnf
depends_on:
- mysql1
- mysql2
- mysql3
networks:
- frontend
- backend
orc1:
platform: linux/amd64
build: ./conf/orchestrator/
working_dir: /usr/local/orchestrator
container_name: orc1
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
- proxysql
networks:
- backend
orc2:
platform: linux/amd64
build: ./conf/orchestrator/
working_dir: /usr/local/orchestrator
container_name: orc2
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
- proxysql
networks:
- backend
orc3:
platform: linux/amd64
build: ./conf/orchestrator/
working_dir: /usr/local/orchestrator
container_name: orc3
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
- proxysql
networks:
- backend
environment:
- ORCHESTRATOR_API="http://orc1:3000/api http://orc2:3000/api http://orc3:3000/api"
pmm:
image: percona/pmm-server:2
container_name: pmm-server
restart: always
ports:
- "8081:80"
- "4431:443"
networks:
- frontend
- backend
volumes:
- pmm-data:/srv
depends_on:
- proxysql
environment:
- GF_AUTH_ANONYMOUS=true
pmm-client:
platform: linux/amd64
build: ./conf/pmm-client/
container_name: pmm-client
networks:
- backend
volumes:
- ./conf/pmm-client/entrypoint.bash:/entrypoint.bash
depends_on:
- pmm
environment:
- PMM_SERVER=https://pmm-server:443/
- PMM_AGENT_SERVER_USERNAME=admin
- PMM_AGENT_SERVER_PASSWORD=admin
- PMM_AGENT_SERVER_INSECURE_TLS=1
networks:
frontend:
backend:
volumes:
pmm-data:
name: pmm-data
external: false