-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-tars.yml
263 lines (254 loc) · 7.62 KB
/
docker-compose-tars.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
version: "3.8"
services:
tars-develop:
image: lsqtzj/tars-develop
restart: always
container_name: tars-develop
hostname: tars-develop
networks:
network:
ipv4_address: 7.1.0.10
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
TARS_BENCHMARK: True # 编译安装TARS_BENCHMARK
WEBHOST: "http://7.1.0.3:3000"
TARS_TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJhZG1pbiIsImlhdCI6MTY0MzgyMTE3MSwiZXhwIjoxNzM4NDI5MTcxfQ.oDR_4cw1IaXD2W2_FVi2DjsnZHvlk8KLLRVKdUkv1xk
ADMINSIP: "7.1.0.20"
NODEIP: "7.1.0.21"
TarsGateway: True # 编译安装TarsGateway
GATEWAY_SERVER_IP: 7.1.0.9
MYSQL_HOST: 7.1.0.2
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: root
MYSQL_PORT: 3306
DCACHE: True # 编译安装DCACHE,第一次开机需要一些时间
DCACHE_MYSQL_IP: 7.1.0.2
DCACHE_MYSQL_PORT: 3306
DCACHE_MYSQL_USER: root
DCACHE_MYSQL_PASSWORD: 123456
DCACHE_NODE_IP: 7.1.0.4
volumes:
- ./develop:/develop
- ./data/install:/install
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-dcache-node
- tars-node
- tars-benchmark-node-server
- tars-benchmark-admin-server
tars-mysql:
image: lsqtzj/openeuler_mysql:8.0
restart: always
container_name: tars-mysql
hostname: tars-mysql
volumes:
- ./data/tars-mysql:/var/lib/mysql
privileged: true
ports:
- 3306:3306
networks:
network:
ipv4_address: 7.1.0.2
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
MYSQL_ROOT_PASSWORD: 123456
MYSQL_ROOT_HOST: '%'
command: --skip_ssl --default-authentication-plugin=mysql_native_password #--lower_case_table_names=0 --socket=/tmp/mysql.sock --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
tars-framework:
image: tarscloud/framework
restart: always
ipc: shareable
container_name: tars-framework
hostname: tars-framework
ports:
- 3000-3099:3000-3099
networks:
network:
ipv4_address: 7.1.0.3
volumes:
- ./data/tars-framework:/data/tars
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
MYSQL_HOST: 7.1.0.2
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: root
MYSQL_PORT: 3306
REBUILD: "false"
INET: eth0
SLAVE: "false"
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-mysql
tars-framework-slave:
image: tarscloud/framework
restart: always
ipc: container:tars-framework
container_name: tars-framework-slave
hostname: tars-framework-slave
networks:
network:
ipv4_address: 7.1.0.4
ports:
- 4000-4099:4000-4099
volumes:
- ./data/tars-framework-slave:/data/tars
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
MYSQL_HOST: 7.1.0.2
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: root
MYSQL_PORT: 3306
REBUILD: "false"
INET: eth0
SLAVE: "true"
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-framework
tars-node:
image: tarscloud/tars-node
restart: always
ipc: container:tars-framework
container_name: tars-node
hostname: tars-node
networks:
network:
ipv4_address: 7.1.0.5
ports:
- 5000-5099:5000-5099
volumes:
- ./data/tars-node:/data/tars
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
INET: eth0
WEB_HOST: "http://tars-framework:3000"
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-framework
tars-gateway-server:
image: tarscloud/tars-node
restart: always
ipc: container:tars-framework
container_name: tars-gateway-server
hostname: tars-gateway-server
networks:
network:
ipv4_address: 7.1.0.9
ports:
- 8200:8200
volumes:
- ./data/tars-gateway-server:/data/tars
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
INET: eth0
WEB_HOST: "http://tars-framework:3000"
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-framework
tars-benchmark-admin-server:
image: tarscloud/tars-node
restart: always
ipc: container:tars-framework
container_name: tars-benchmark-admin-server
hostname: tars-benchmark-admin-server
networks:
network:
ipv4_address: 7.1.0.20
volumes:
- ./data/tars-benchmark-admin-server:/data/tars
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
INET: eth0
WEB_HOST: "http://tars-framework:3000"
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-framework
tars-benchmark-node-server:
image: tarscloud/tars-node
restart: always
ipc: container:tars-framework
container_name: tars-benchmark-node-server
hostname: tars-benchmark-node-server
networks:
network:
ipv4_address: 7.1.0.21
volumes:
- ./data/tars-benchmark-node-server:/data/tars
environment:
TZ: Europe/Rome #Asia/Shanghai 时区
INET: eth0
WEB_HOST: "http://tars-framework:3000"
extra_hosts:
- "tars-develop:7.1.0.10"
- "tars-mysql:7.1.0.2"
- "tars-framework:7.1.0.3"
- "tars-framework-slave:7.1.0.4"
- "tars-node:7.1.0.5"
- "tars-benchmark-admin-server:7.1.0.20"
- "tars-benchmark-node-server:7.1.0.21"
- "tars-gateway-server:7.1.0.9"
depends_on:
- tars-framework
networks:
network:
driver: bridge
ipam:
config:
- subnet: 7.1.0.0/16
gateway: 7.1.0.1