-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
109 lines (109 loc) · 3.38 KB
/
docker-compose-test.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
services:
slurmfrontend:
build:
context: ./frontend
dockerfile: ./Dockerfile
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/frontend:latest
container_name: spack-stack-frontend
hostname: slurmfrontend
user: admin
volumes:
- home-vol:/home/admin
- opt-vol:/opt
- ./test:/home/admin/test
ports:
- 8888:8888
slurmmaster:
build:
context: ./master
dockerfile: ./Dockerfile
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/master:latest
container_name: spack-stack-master
hostname: slurmmaster
user: admin
volumes:
- home-vol:/home/admin:nocopy
- opt-vol:/opt:ro
- ./test:/home/admin/test
environment:
- SLURM_CPUS_ON_NODE=8
ports:
- 6817:6817
- 6818:6818
- 6819:6819
slurmnode1:
build:
context: ./node
dockerfile: ./Dockerfile
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/node:latest
container_name: spack-stack-node1
hostname: slurmnode1
user: admin
volumes:
- home-vol:/home/admin:nocopy
- opt-vol:/opt:ro
- ./test:/home/admin/test
environment:
- SLURM_NODENAME=slurmnode1
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
slurmnode2:
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/node:latest
container_name: spack-stack-node2
hostname: slurmnode2
user: admin
volumes:
- home-vol:/home/admin:nocopy
- opt-vol:/opt:ro
- ./test:/home/admin/test
environment:
- SLURM_NODENAME=slurmnode2
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
slurmnode3:
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/node:latest
container_name: spack-stack-node3
hostname: slurmnode3
user: admin
volumes:
- home-vol:/home/admin:nocopy
- opt-vol:/opt:ro
- ./test:/home/admin/test
environment:
- SLURM_NODENAME=slurmnode3
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
slurmnode4:
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/node:latest
container_name: spack-stack-node4
hostname: slurmnode4
user: admin
volumes:
- home-vol:/home/admin:nocopy
- opt-vol:/opt:ro
- ./test:/home/admin/test
environment:
- SLURM_NODENAME=slurmnode4
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
slurmnode5:
image: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/node:latest
container_name: spack-stack-node5
hostname: slurmnode5
user: admin
volumes:
- home-vol:/home/admin:nocopy
- opt-vol:/opt:ro
- ./test:/home/admin/test
environment:
- SLURM_NODENAME=slurmnode5
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
volumes:
home-vol:
opt-vol: