-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (81 loc) · 2.3 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
services:
slurmfrontend:
build:
context: ./frontend
dockerfile: Dockerfile
image: ghcr.io/noaa-gsl/dockerslurmcluster/slurm-frontend:latest
container_name: slurm-frontend
shm_size: '4g'
hostname: slurmfrontend
user: admin
volumes:
- shared-vol:/home/admin
ports:
- 8888:8888
slurmmaster:
build:
context: ./master
dockerfile: Dockerfile
image: ghcr.io/noaa-gsl/dockerslurmcluster/slurm-master:latest
container_name: slurm-master
shm_size: '4g'
hostname: slurmmaster
user: admin
volumes:
- shared-vol:/home/admin:nocopy
environment:
- SLURM_CPUS_ON_NODE=8
ports:
- 6817:6817
- 6818:6818
- 6819:6819
slurmnode1:
build:
context: ./node
dockerfile: Dockerfile
image: ghcr.io/noaa-gsl/dockerslurmcluster/slurm-node:latest
container_name: slurm-node1
shm_size: '4g'
hostname: slurmnode1
user: admin
volumes:
- shared-vol:/home/admin:nocopy
environment:
- SLURM_NODENAME=slurmnode1
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
slurmnode2:
build:
context: ./node
dockerfile: Dockerfile
image: ghcr.io/noaa-gsl/dockerslurmcluster/slurm-node:latest
container_name: slurm-node2
shm_size: '4g'
hostname: slurmnode2
user: admin
volumes:
- shared-vol:/home/admin:nocopy
environment:
- SLURM_NODENAME=slurmnode2
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
slurmnode3:
build:
context: ./node
dockerfile: Dockerfile
image: ghcr.io/noaa-gsl/dockerslurmcluster/slurm-node:latest
container_name: slurm-node3
shm_size: '4g'
hostname: slurmnode3
user: admin
volumes:
- shared-vol:/home/admin:nocopy
environment:
- SLURM_NODENAME=slurmnode3
- SLURM_CPUS_ON_NODE=8
links:
- slurmmaster
volumes:
shared-vol: