-
Notifications
You must be signed in to change notification settings - Fork 75
/
docker-compose.yml
247 lines (234 loc) · 4.84 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
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
version: "3.9"
services:
ldap:
image: ubccr/hpcts:ldap-${HPCTS_VERSION}
build:
context: ./ldap
hostname: ldap
container_name: ldap
environment:
- CONTAINER_LOG_LEVEL=debug
- LDAP_RFC2307BIS_SCHEMA=true
- LDAP_REMOVE_CONFIG_AFTER_SETUP=false
- LDAP_TLS_VERIFY_CLIENT=never
networks:
- compute
base:
image: ubccr/hpcts:base-${HPCTS_VERSION}
build:
context: ./base
networks:
- compute
depends_on:
- ldap
mongodb:
image: mongo:${MONGODB_VERSION}
hostname: mongodb
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=hBbeOfpFLfFT5ZO
networks:
- compute
volumes:
- ./mongodb:/docker-entrypoint-initdb.d
- data_db:/data/db
expose:
- "27017"
mysql:
image: mariadb:${MARIADB_VERSION}
hostname: mysql
container_name: mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
networks:
- compute
volumes:
- ./database:/docker-entrypoint-initdb.d
- ./database:/etc/mysql/conf.d
- ./slurm/slurmdbd.conf:/etc/slurm/slurmdbd.conf
- var_lib_mysql:/var/lib/mysql
expose:
- "3306"
slurmdbd:
image: ubccr/hpcts:slurm-${HPCTS_VERSION}
build:
context: ./slurm
args:
SLURM_VERSION: $SLURM_VERSION
HPCTS_VERSION: $HPCTS_VERSION
command: ["slurmdbd"]
container_name: slurmdbd
hostname: slurmdbd
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurmdbd_state:/var/lib/slurmd
expose:
- "22"
- "6819"
depends_on:
- base
- ldap
- mysql
slurmctld:
image: ubccr/hpcts:slurm-${HPCTS_VERSION}
command: ["slurmctld"]
container_name: slurmctld
hostname: slurmctld
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
- slurmctld_state:/var/lib/slurmd
expose:
- "22"
- "6817"
depends_on:
- ldap
- slurmdbd
cpn01:
init: true
image: ubccr/hpcts:slurm-${HPCTS_VERSION}
command: ["slurmd"]
hostname: cpn01
container_name: cpn01
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
- cpn01_slurmd_state:/var/lib/slurmd
expose:
- "22"
- "6818"
depends_on:
- ldap
- slurmctld
cpn02:
init: true
image: ubccr/hpcts:slurm-${HPCTS_VERSION}
command: ["slurmd"]
hostname: cpn02
container_name: cpn02
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
- cpn02_slurmd_state:/var/lib/slurmd
expose:
- "22"
- "6818"
depends_on:
- ldap
- slurmctld
frontend:
image: ubccr/hpcts:slurm-${HPCTS_VERSION}
command: ["frontend"]
hostname: frontend
container_name: frontend
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
ports:
- "127.0.0.1:6222:22"
depends_on:
- ldap
- slurmctld
coldfront:
image: ubccr/hpcts:coldfront-${HPCTS_VERSION}
build:
context: ./coldfront
args:
HPCTS_VERSION: $HPCTS_VERSION
command: ["serve"]
hostname: coldfront
container_name: coldfront
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
- srv_www:/srv/www
expose:
- "22"
ports:
- "127.0.0.1:2443:443"
depends_on:
- ldap
- mysql
- frontend
ondemand:
image: ubccr/hpcts:ondemand-${HPCTS_VERSION}
build:
context: ./ondemand
args:
HPCTS_VERSION: $HPCTS_VERSION
command: ["serve"]
hostname: ondemand
container_name: ondemand
networks:
- compute
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
expose:
- "22"
ports:
- "127.0.0.1:3443:3443"
- "127.0.0.1:5554:5554"
depends_on:
- ldap
- frontend
xdmod:
image: ubccr/hpcts:xdmod-${HPCTS_VERSION}
build:
context: ./xdmod
args:
HPCTS_VERSION: $HPCTS_VERSION
command: ["serve"]
hostname: xdmod
container_name: xdmod
networks:
- compute
volumes:
- etc_xdmod:/etc/xdmod
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- home:/home
- ./xdmod:/xdmod
expose:
- "22"
ports:
- "127.0.0.1:4443:443"
depends_on:
- mongodb
- ldap
- mysql
- frontend
volumes:
etc_xdmod:
etc_munge:
etc_slurm:
home:
var_lib_mysql:
cpn01_slurmd_state:
cpn02_slurmd_state:
slurmctld_state:
slurmdbd_state:
data_db:
srv_www:
networks:
compute: