forked from naterini/docker-scale-out
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildout.sh
executable file
·773 lines (734 loc) · 16.7 KB
/
buildout.sh
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
#!/bin/bash
unset MAC
[[ $OSTYPE == 'darwin'* ]] && MAC=1
#only mount cgroups with v1
#https://github.com/jepsen-io/jepsen/issues/532#issuecomment-1128067136
[ ! -f /sys/fs/cgroup/cgroup.controllers ] && SYSDFSMOUNTS="
- /dev/log:/dev/log
- /etc/localtime:/etc/localtime:ro
- /run/
- /run/lock/
- /sys/:/sys/:ro
- /sys/fs/cgroup/:/sys/fs/cgroup/:ro
- /sys/fs/fuse/:/sys/fs/fuse/:rw
- /tmp/
- /var/lib/journal
" || SYSDFSMOUNTS="
- /dev/log:/dev/log
- /etc/localtime:/etc/localtime:ro
- /run/
- /run/lock/
- /sys/
- /sys/fs/cgroup/:/sys/fs/cgroup/:ro
- /sys/fs/cgroup/docker.slice/:/sys/fs/cgroup/docker.slice/:rw
- /sys/fs/fuse/:/sys/fs/fuse/:rw
- /tmp/
- /var/lib/journal
"
CACHE_DESTROYER="$(find scaleout/patch.d -type f -name '*.patch' -print0 | sort -z | xargs -0 cat | sha256sum | cut -b1-20)"
SLURM_RELEASE="${SLURM_RELEASE:-master}"
DISTRO="almalinux:8"
if [ -z "$SUBNET" -o "$SUBNET" = "10.11" ]
then
ES_PORTS="
ports:
- 9200:9200
"
KIBANA_PORTS="
ports:
- 5601:5601
"
PROXY_PORTS="
ports:
- 8080:8080
"
GRAFANA_PORTS="
ports:
- 3000:3000
"
ONDEMAND_PORTS="
ports:
- 8081:80
"
XDMOD_PORTS="
ports:
- 8082:80
"
else
ES_PORTS=
KIBANA_PORTS=
PROXY_PORTS=
GRAFANA_PORTS=
XDMOD_PORTS=
fi
SUBNET=${SUBNET:-"10.11"}
SUBNET6=${SUBNET6:-"2001:db8:1:1::"}
NODELIST=${NODELIST:-"scaleout/nodelist"}
if [ ! -s "$NODELIST" ]
then
if [ ! -z "$FEDERATION" ]
then
c_sub=5
[ -f "$NODELIST" ] && unlink "$NODELIST" 2>&1 >/dev/null
for c in $FEDERATION
do
#generate list of 10 nodes per cluster
seq 0 9 | while read i
do
echo "$(printf "$c-node%02d" $i) $c ${SUBNET}.${c_sub}.$((${i} + 10)) ${SUBNET6}${c_sub}:$((${i} + 10))"
done >> $NODELIST
c_sub=$((c_sub+1))
done
else
#generate list of 10 nodes
seq 0 9 | while read i
do
echo "$(printf "node%02d" $i) cluster ${SUBNET}.5.$((${i} + 10)) ${SUBNET6}5:$((${i} + 10))"
done > $NODELIST
fi
fi
unlink scaleout/hosts.nodes
cat "$NODELIST" | while read name cluster ip4 ip6
do
[ ! -z "$ip4" ] && echo "$ip4 $name" >> scaleout/hosts.nodes
[ ! -z "$ip6" ] && echo "$ip6 $name" >> scaleout/hosts.nodes
done
HOSTLIST=" extra_hosts:
- \"db:${SUBNET}.1.3\"
- \"db:${SUBNET6}1:3\"
- \"slurmdbd:${SUBNET}.1.2\"
- \"slurmdbd:${SUBNET6}1:2\"
- \"login:${SUBNET}.1.5\"
- \"login:${SUBNET6}1:5\"
- \"rest:${SUBNET}.1.6\"
- \"rest:${SUBNET6}1:6\"
- \"proxy:${SUBNET}.1.7\"
- \"proxy:${SUBNET6}1:7\"
- \"es01:${SUBNET}.1.15\"
- \"es01:${SUBNET6}1:15\"
- \"es02:${SUBNET}.1.16\"
- \"es02:${SUBNET6}1:16\"
- \"es03:${SUBNET}.1.17\"
- \"es03:${SUBNET6}1:17\"
- \"kibana:${SUBNET}.1.18\"
- \"kibana:${SUBNET6}1:18\"
- \"influxdb:${SUBNET}.1.19\"
- \"influxdb:${SUBNET6}1:19\"
- \"grafana:${SUBNET}.1.20\"
- \"grafana:${SUBNET6}1:20\"
- \"open-ondemand:${SUBNET}.1.21\"
- \"open-ondemand:${SUBNET6}1:21\"
- \"xdmod:${SUBNET}.1.22\"
- \"xdmod:${SUBNET6}1:22\"
"
if [ ! -z "$FEDERATION" ]
then
FIRST_CLUSTER="$(echo "$FEDERATION" | awk '{print $1}')"
FIRST_MGMTNODE="${FIRST_CLUSTER}-mgmtnode"
c_sub=5
for c in $FEDERATION
do
HOSTLIST="${HOSTLIST} - \"${c}-mgmtnode:${SUBNET}.${c_sub}.1\""$'\n'
HOSTLIST="${HOSTLIST} - \"${c}-mgmtnode:${SUBNET6}${c_sub}:1\""$'\n'
HOSTLIST="${HOSTLIST} - \"${c}-mgmtnode2:${SUBNET}.${c_sub}.2\""$'\n'
HOSTLIST="${HOSTLIST} - \"${c}-mgmtnode2:${SUBNET6}${c_sub}:2\""$'\n'
c_sub=$((c_sub + 1))
done
else
FIRST_CLUSTER="cluster"
FIRST_MGMTNODE="mgmtnode"
HOSTLIST="${HOSTLIST} - \"mgmtnode:${SUBNET}.1.1\""$'\n'
HOSTLIST="${HOSTLIST} - \"mgmtnode:${SUBNET6}1:1\""$'\n'
HOSTLIST="${HOSTLIST} - \"mgmtnode2:${SUBNET}.1.4\""$'\n'
HOSTLIST="${HOSTLIST} - \"mgmtnode2:${SUBNET6}1:4\""$'\n'
fi
LOGGING="
tty: true
logging:
driver: local
cap_add:
- SYS_PTRACE
- SYS_ADMIN
- MKNOD
- SYS_NICE
- SYS_RESOURCE
security_opt:
- seccomp:unconfined
- apparmor:unconfined
"
XDMOD="
xdmod:
build:
context: ./xdmod
network: host
image: xdmod:latest
environment:
- SUBNET=\"${SUBNET}\"
- SUBNET6=\"${SUBNET6}\"
- container=docker
hostname: xdmod
command: [\"/sbin/startup.sh\"]
networks:
internal:
ipv4_address: ${SUBNET}.1.22
ipv6_address: ${SUBNET6}1:22
volumes:
$SYSDFSMOUNTS
- xdmod:/xdmod/
$XDMOD_PORTS
$LOGGING
$HOSTLIST
"
if [ "$DISABLE_XDMOD" ]
then
XDMOD=""
fi
if [ "$CLOUD" ]
then
CLOUD_MOUNTS="
- type: bind
source: $(readlink -e $(pwd)/cloud_socket)
target: /run/cloud_socket
"
else
CLOUD_MOUNTS=""
fi
# disable Linux specific options
[ $MAC ] && LOGGING=
cat <<EOF
---
version: "3.8"
networks:
internal:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'true'
com.docker.network.bridge.enable_icc: 'true'
internal: false
enable_ipv6: true
ipam:
config:
- subnet: "${SUBNET}.0.0/16"
- subnet: "${SUBNET6}/64"
volumes:
root-home:
home:
etc-ssh:
EOF
if [ ! -z "$FEDERATION" ]
then
for c in $FEDERATION
do
cat <<EOF
${c}-etc-slurm:
${c}-slurmctld:
EOF
done
else
cat <<EOF
cluster-etc-slurm:
slurmctld:
EOF
fi
cat <<EOF
elastic_data01:
elastic_data02:
elastic_data03:
mail:
auth:
xdmod:
src:
container-shared:
services:
db:
image: sql_server:latest
build:
context: ./sql_server
args:
SUBNET: "$SUBNET"
SUBNET6: "$SUBNET6"
network: host
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=slurm
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=slurm_acct_db
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
volumes:
- /dev/log:/dev/log
hostname: db
$LOGGING
networks:
internal:
ipv4_address: "${SUBNET}.1.3"
ipv6_address: "${SUBNET6}1:3"
$HOSTLIST
slurmdbd:
build:
context: ./scaleout
args:
DOCKER_FROM: $DISTRO
SLURM_RELEASE: $SLURM_RELEASE
SUBNET: "$SUBNET"
SUBNET6: "$SUBNET6"
CACHE_DESTROYER: "$CACHE_DESTROYER"
network: host
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET}"
hostname: slurmdbd
networks:
internal:
ipv4_address: "${SUBNET}.1.2"
ipv6_address: "${SUBNET6}1:2"
volumes:
- root-home:/root
- ${FIRST_CLUSTER}-etc-slurm:/etc/slurm
- mail:/var/spool/mail/
- src:/usr/local/src/
$SYSDFSMOUNTS
$LOGGING
depends_on:
- "db"
$HOSTLIST
EOF
if [ ! -z "$FEDERATION" ]
then
LOGIN_MOUNTS=
c_sub=5
for c in $FEDERATION
do
cat <<EOF
${c}-mgmtnode:
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
- SLURM_FEDERATION_CLUSTER=${c}
hostname: ${c}-mgmtnode
networks:
internal:
ipv4_address: ${SUBNET}.${c_sub}.1
ipv6_address: ${SUBNET6}${c_sub}:1
volumes:
- root-home:/root
- home:/home/
- ${c}-slurmctld:/var/spool/slurm
- etc-ssh:/etc/ssh
- ${c}-etc-slurm:/etc/slurm
- mail:/var/spool/mail/
- auth:/auth/
- xdmod:/xdmod/
- src:/usr/local/src/
$SYSDFSMOUNTS
$CLOUD_MOUNTS
$LOGGING
depends_on:
- "slurmdbd"
$HOSTLIST
${c}-mgmtnode2:
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
- SLURM_FEDERATION_CLUSTER=${c}
hostname: ${c}-mgmtnode2
networks:
internal:
ipv4_address: ${SUBNET}.${c_sub}.4
ipv6_address: ${SUBNET6}${c_sub}:4
volumes:
- root-home:/root
- etc-ssh:/etc/ssh
- ${c}-etc-slurm:/etc/slurm
- home:/home/
- ${c}-slurmctld:/var/spool/slurm
- mail:/var/spool/mail/
- src:/usr/local/src/
$SYSDFSMOUNTS
$CLOUD_MOUNTS
$LOGGING
depends_on:
- "slurmdbd"
- "${c}-mgmtnode"
$HOSTLIST
EOF
c_sub=$((c_sub+1))
done
else
LOGIN_MOUNTS=" - slurmctld:/var/spool/slurm"
cat <<EOF
mgmtnode:
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
- SLURM_FEDERATION_CLUSTER=${FIRST_CLUSTER}
hostname: mgmtnode
networks:
internal:
ipv4_address: ${SUBNET}.1.1
ipv6_address: ${SUBNET6}1:1
volumes:
- root-home:/root
- home:/home/
- slurmctld:/var/spool/slurm
- etc-ssh:/etc/ssh
- ${FIRST_CLUSTER}-etc-slurm:/etc/slurm
- mail:/var/spool/mail/
- auth:/auth/
- xdmod:/xdmod/
- src:/usr/local/src/
$SYSDFSMOUNTS
$CLOUD_MOUNTS
$LOGGING
depends_on:
- "slurmdbd"
$HOSTLIST
mgmtnode2:
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
- SLURM_FEDERATION_CLUSTER=${FIRST_CLUSTER}
hostname: mgmtnode2
networks:
internal:
ipv4_address: ${SUBNET}.1.4
ipv6_address: ${SUBNET6}1:4
volumes:
- root-home:/root
- etc-ssh:/etc/ssh
- ${FIRST_CLUSTER}-etc-slurm:/etc/slurm
- home:/home/
- slurmctld:/var/spool/slurm
- mail:/var/spool/mail/
- src:/usr/local/src/
$SYSDFSMOUNTS
$CLOUD_MOUNTS
$LOGGING
depends_on:
- "slurmdbd"
- "mgmtnode"
$HOSTLIST
EOF
fi #end mgmtnode creation
cat <<EOF
login:
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
hostname: login
networks:
internal:
ipv4_address: ${SUBNET}.1.5
ipv6_address: ${SUBNET6}1:5
volumes:
- root-home:/root
- etc-ssh:/etc/ssh
- ${FIRST_CLUSTER}-etc-slurm:/etc/slurm
- home:/home/
$LOGIN_MOUNTS
- mail:/var/spool/mail/
- src:/usr/local/src/
- /var/lib/containers
- /dev/fuse:/dev/fuse:rw
- container-shared:/srv/containers
$SYSDFSMOUNTS
$LOGGING
$HOSTLIST
EOF
lastcluster="$FIRST_CLUSTER"
lastname="$FIRST_MGMTNODE"
oi=0
cat "$NODELIST" | while read name cluster ip4 ip6
do
[ "$cluster" != "$lastcluster" ] && lastname="${cluster}-mgmtnode"
lastcluster="$cluster"
oi=$(($oi + 1))
i=$(($i + 1))
i4=
i6=
[ ! -z "$ip4" ] && i4="ipv4_address: $ip4"
[ ! -z "$ip6" ] && i6="ipv6_address: $ip6"
cat <<EOF
$name:
image: scaleout:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
- SLURM_FEDERATION_CLUSTER=${cluster}
hostname: $name
networks:
internal:
$i4
$i6
volumes:
- root-home:/root
- etc-ssh:/etc/ssh
- ${cluster}-etc-slurm:/etc/slurm
- home:/home/
- mail:/var/spool/mail/
- src:/usr/local/src/
- container-shared:/srv/containers
$SYSDFSMOUNTS
ulimits:
nproc:
soft: 65535
hard: 65535
nofile:
soft: 131072
hard: 131072
memlock:
soft: -1
hard: -1
$LOGGING
depends_on:
- "$lastname"
$HOSTLIST
EOF
[ $oi -gt 100 -a ! -z "$name" ] && oi=0 && lastname="$name"
done
[ "$CLOUD" ] && cat <<EOF
cloud:
image: scaleout:latest
networks:
internal: {}
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
- CLOUD=1
volumes:
- root-home:/root
- etc-ssh:/etc/ssh
- ${FIRST_CLUSTER}-etc-slurm:/etc/slurm
- home:/home/
- mail:/var/spool/mail/
- src:/usr/local/src/
- container-shared:/srv/containers
$SYSDFSMOUNTS
$CLOUD_MOUNTS
ulimits:
nproc:
soft: 65535
hard: 65535
nofile:
soft: 131072
hard: 131072
memlock:
soft: -1
hard: -1
$LOGGING
$HOSTLIST
EOF
cat <<EOF
open-ondemand:
build:
context: ./open-ondemand
network: host
image: open-ondemand
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- DEFAULT_SSHHOST=login
volumes:
- /dev/log:/dev/log
- etc-ssh:/etc/shared-ssh
- home:/home/
networks:
internal:
ipv4_address: ${SUBNET}.1.21
ipv6_address: ${SUBNET6}1:21
depends_on:
- "login"
$ONDEMAND_PORTS
$LOGGING
influxdb:
build:
context: ./influxdb
network: host
image: influxdb
command: ["bash", "-c", "/setup.sh & source /entrypoint.sh"]
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=user
- DOCKER_INFLUXDB_INIT_PASSWORD=password
- DOCKER_INFLUXDB_INIT_ORG=scaleout
- DOCKER_INFLUXDB_INIT_BUCKET=scaleout
- DOCKER_INFLUXDB_INIT_RETENTION=1w
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=token
- DOCKER_INFLUXDB_INIT_USER_ID=
- INFLUXDB_DATA_QUERY_LOG_ENABLED=true
- INFLUXDB_REPORTING_DISABLED=false
- INFLUXDB_HTTP_LOG_ENABLED=true
- INFLUXDB_CONTINUOUS_QUERIES_LOG_ENABLED=true
- LOG_LEVEL=debug
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /dev/log:/dev/log
networks:
internal:
ipv4_address: ${SUBNET}.1.19
ipv6_address: ${SUBNET6}1:19
$LOGGING
grafana:
image: grafana
build:
context: ./grafana
network: host
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
volumes:
- /dev/log:/dev/log
networks:
internal:
ipv4_address: ${SUBNET}.1.20
ipv6_address: ${SUBNET6}1:20
$GRAFANA_PORTS
$LOGGING
es01:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.1
environment:
- node.name=es01
- cluster.name=scaleout
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic_data01:/usr/share/elasticsearch/data
- /dev/log:/dev/log
networks:
internal:
ipv4_address: ${SUBNET}.1.15
ipv6_address: ${SUBNET6}1:15
${ES_PORTS}
$LOGGING
es02:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.1
environment:
- node.name=es02
- cluster.name=scaleout
- discovery.seed_hosts=es01,es03
- cluster.initial_master_nodes=es01,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic_data02:/usr/share/elasticsearch/data
- /dev/log:/dev/log
networks:
internal:
ipv4_address: ${SUBNET}.1.16
ipv6_address: ${SUBNET6}1:16
$LOGGING
es03:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.1
environment:
- node.name=es03
- cluster.name=scaleout
- discovery.seed_hosts=es01,es02
- cluster.initial_master_nodes=es01,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic_data03:/usr/share/elasticsearch/data
- /dev/log:/dev/log
networks:
internal:
ipv4_address: ${SUBNET}.1.17
ipv6_address: ${SUBNET6}1:17
$LOGGING
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.10.1
volumes:
- /dev/log:/dev/log
environment:
- SERVER_NAME=scaleout
- ELASTICSEARCH_HOSTS=http://es01:9200
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
networks:
internal:
ipv4_address: ${SUBNET}.1.18
ipv6_address: ${SUBNET6}1:18
${KIBANA_PORTS}
depends_on:
- "es01"
- "es02"
- "es03"
$LOGGING
rest:
hostname: rest
image: scaleout:latest
networks:
internal:
ipv4_address: ${SUBNET}.1.6
ipv6_address: ${SUBNET6}1:6
volumes:
- etc-ssh:/etc/ssh
- ${FIRST_CLUSTER}-etc-slurm:/etc/slurm
$SYSDFSMOUNTS
$LOGGING
depends_on:
- "${FIRST_MGMTNODE}"
$HOSTLIST
proxy:
build:
context: ./proxy
network: host
image: proxy:latest
environment:
- SUBNET="${SUBNET}"
- SUBNET6="${SUBNET6}"
- container=docker
hostname: proxy
command: ["bash", "-c", "/usr/sbin/nginx& /usr/sbin/php-fpm81 -F& wait"]
networks:
internal:
ipv4_address: ${SUBNET}.1.7
ipv6_address: ${SUBNET6}1:7
volumes:
- auth:/auth/
- /dev/log:/dev/log
$LOGGING
${PROXY_PORTS}
depends_on:
- "rest"
$HOSTLIST
$XDMOD
EOF
exit 0