-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-mxs.yml
executable file
·104 lines (97 loc) · 1.95 KB
/
docker-compose-mxs.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
version: '3'
services:
pm1:
image: ${MCS_IMAGE_NAME}
shm_size: '512mb'
hostname: ${PM1}
container_name: ${PM1}
volumes:
- data1:/var/lib/columnstore/data1
- data2:/var/lib/columnstore/data2
- data3:/var/lib/columnstore/data3
- storagemanager:/var/lib/columnstore/storagemanager
env_file:
- .env
depends_on:
- "pm3"
links:
- "pm2"
- "pm3"
ports:
- 3307:3306
pm2:
image: ${MCS_IMAGE_NAME}
shm_size: '512mb'
hostname: ${PM2}
container_name: ${PM2}
volumes:
- data1:/var/lib/columnstore/data1
- data2:/var/lib/columnstore/data2
- data3:/var/lib/columnstore/data3
- storagemanager:/var/lib/columnstore/storagemanager
env_file:
- .env
depends_on:
- "pm3"
links:
- "pm3"
ports:
- 3308:3306
pm3:
image: ${MCS_IMAGE_NAME}
shm_size: '512mb'
hostname: ${PM3}
container_name: ${PM3}
volumes:
- data1:/var/lib/columnstore/data1
- data2:/var/lib/columnstore/data2
- data3:/var/lib/columnstore/data3
- storagemanager:/var/lib/columnstore/storagemanager
env_file:
- .env
ports:
- 3309:3306
mx1:
image: ${MX_IMAGE_NAME}
hostname: ${MX1}
container_name: ${MX1}
volumes:
- maxscale1:/var/lib/maxscale
- ${PWD}/etc/maxscale.cnf:/etc/maxscale.cnf
depends_on:
- "pm1"
env_file:
- .env
links:
- "pm1"
- "pm2"
- "pm3"
ports:
- 3310:3306
- 8989:8989
mx2:
image: ${MX_IMAGE_NAME}
hostname: ${MX2}
container_name: ${MX2}
volumes:
- maxscale2:/var/lib/maxscale
- ${PWD}/etc/maxscale.cnf:/etc/maxscale.cnf
depends_on:
- "pm1"
env_file:
- .env
links:
- "mx1"
- "pm1"
- "pm2"
- "pm3"
ports:
- 3311:3306
- 8990:8989
volumes:
data1:
data2:
data3:
maxscale1:
maxscale2:
storagemanager: