-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.multi-cluster.yml
234 lines (218 loc) · 5.35 KB
/
docker-compose.multi-cluster.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
version: "2.2"
services:
mysql:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/mariadb:10.10
hostname: mysql
container_name: mysql
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: slurm_acct_db
MYSQL_USER: slurm
MYSQL_PASSWORD: password
volumes:
- var_lib_mysql:/var/lib/mysql
networks:
slurm-net:
ipv4_address: 10.100.20.131
ldap:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/ldap:sh
hostname: ldap
container_name: ldap
expose:
- "389"
ports:
- '389:389'
volumes:
- ldap_data:/var/lib/ldap
networks:
slurm-net:
ipv4_address: 10.100.20.132
slurmdbd:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-compute-21.08.6}
build:
context: .
args:
SLURM_TAG: ${SLURM_TAG:-slurm-21-08-6-1}
command: ["slurmdbd"]
container_name: slurmdbd
hostname: slurmdbd
privileged: true
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- var_log_slurm:/var/log/slurm
expose:
- "6819"
depends_on:
- mysql
- ldap
networks:
slurm-net:
ipv4_address: 10.100.20.133
slurmctld:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-compute-21.08.6}
command: ["slurmctld"]
container_name: slurmctld
hostname: slurmctld
privileged: true
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
expose:
- "6817"
- "8999"
ports:
- '8999:8999'
depends_on:
- "slurmdbd"
networks:
slurm-net:
ipv4_address: 10.100.20.134
c1:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-compute-21.08.6}
command: ["slurmd"]
hostname: c1
privileged: true
container_name: c1
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
expose:
- "6818"
depends_on:
- "slurmctld"
networks:
slurm-net:
ipv4_address: 10.100.20.135
login:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-login-21.08.6}
command: ["slurmd"]
privileged: true
hostname: login
container_name: login
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- /root/.ssh/authorized_keys:/root/.ssh/authorized_keys
expose:
- "6818"
depends_on:
- "slurmctld"
networks:
slurm-net:
ipv4_address: 10.100.20.136
mysql_02:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/mariadb:10.10
hostname: mysql_02
container_name: mysql_02
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: slurm_acct_db
MYSQL_USER: slurm
MYSQL_PASSWORD: password
volumes:
- var_lib_mysql_02:/var/lib/mysql
networks:
slurm-net:
ipv4_address: 10.100.20.231
slurmdbd_02:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-compute-21.08.6}
build:
context: .
args:
SLURM_TAG: ${SLURM_TAG:-slurm-21-08-6-1}
command: ["slurmdbd"]
container_name: slurmdbd_02
hostname: slurmdbd_02
privileged: true
volumes:
- etc_munge_02:/etc/munge
- etc_slurm_02:/etc/slurm
- var_log_slurm_02:/var/log/slurm
expose:
- "6819"
depends_on:
- mysql_02
- ldap
networks:
slurm-net:
ipv4_address: 10.100.20.233
slurmctld_02:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-compute-21.08.6}
command: ["slurmctld"]
container_name: slurmctld_02
hostname: slurmctld_02
privileged: true
volumes:
- etc_munge_02:/etc/munge
- etc_slurm_02:/etc/slurm
- slurm_jobdir_02:/data
- var_log_slurm_02:/var/log/slurm
expose:
- "6817"
- "8999"
ports:
- '8998:8999'
depends_on:
- "slurmdbd_02"
networks:
slurm-net:
ipv4_address: 10.100.20.234
c1_02:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-compute-21.08.6}
command: ["slurmd"]
hostname: c1_02
privileged: true
container_name: c1_02
volumes:
- etc_munge_02:/etc/munge
- etc_slurm_02:/etc/slurm
- slurm_jobdir_02:/data
- var_log_slurm_02:/var/log/slurm
expose:
- "6818"
depends_on:
- "slurmctld_02"
networks:
slurm-net:
ipv4_address: 10.100.20.235
login_02:
image: mirrors.pku.edu.cn/pkuhpc-icode/slurm-docker/slurm:${IMAGE_TAG:-login-21.08.6}
command: ["slurmd"]
privileged: true
hostname: login_02
container_name: login_02
volumes:
- etc_munge_02:/etc/munge
- etc_slurm_02:/etc/slurm
- slurm_jobdir_02:/data
- var_log_slurm_02:/var/log/slurm
- /root/.ssh/authorized_keys:/root/.ssh/authorized_keys
expose:
- "6818"
depends_on:
- "slurmctld_02"
networks:
slurm-net:
ipv4_address: 10.100.20.236
networks:
slurm-net:
external: true
volumes:
etc_munge:
etc_slurm:
slurm_jobdir:
var_lib_mysql:
var_log_slurm:
ldap_data:
etc_munge_02:
etc_slurm_02:
slurm_jobdir_02:
var_lib_mysql_02:
var_log_slurm_02: