forked from giovtorres/slurm-docker-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
136 lines (128 loc) · 2.86 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
version: "2.2"
services:
mysql:
image: mariadb:10.10
hostname: mysql
container_name: mysql
mem_limit: 1g
restart: on-failure
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: slurm_acct_db
MYSQL_USER: slurm
MYSQL_PASSWORD: password
volumes:
- var_lib_mysql:/var/lib/mysql
# nfsserver:
# image: itsthenetwork/nfs-server-alpine:12
# container_name: nfsserver
# hostname: nfsserver
# restart: unless-stopped
# privileged: true
# environment:
# - SHARED_DIRECTORY=/nfs
# volumes:
# - /Volumes/lfs1/docker-nfs/:/nfs
# expose:
# - 2049
slurmdbd:
image: slurm-docker-cluster:${IMAGE_TAG:-21.08}
build:
context: .
args:
SLURM_TAG: ${SLURM_TAG:-slurm-21-08-6-1}
command: ["slurmdbd"]
container_name: slurmdbd
hostname: slurmdbd
mem_limit: 1g
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- var_log_slurm:/var/log/slurm
- nfs_data:/nfs
- user_home:/home
expose:
- "6819"
depends_on:
- "mysql"
slurmctld:
image: slurm-docker-cluster:${IMAGE_TAG:-21.08}
command: ["slurmctld"]
container_name: slurmctld
hostname: slurmctld
mem_limit: 1g
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- nfs_data:/nfs
- user_home:/home
ports:
- "2222:22"
depends_on:
- "slurmdbd"
c1:
image: slurm-docker-cluster:${IMAGE_TAG:-21.08}
command: ["slurmd"]
hostname: c1
container_name: c1
mem_limit: 2g
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- nfs_data:/nfs
- user_home:/home
expose:
- "6818"
depends_on:
- "slurmctld"
c2:
image: slurm-docker-cluster:${IMAGE_TAG:-21.08}
command: ["slurmd"]
hostname: c2
container_name: c2
mem_limit: 2g
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- nfs_data:/nfs
- user_home:/home
expose:
- "6818"
depends_on:
- "slurmctld"
c3:
image: slurm-docker-cluster:${IMAGE_TAG:-21.08}
command: ["slurmd"]
hostname: c3
container_name: c3
mem_limit: 2g
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- nfs_data:/nfs
- user_home:/home
expose:
- "6818"
depends_on:
- "slurmctld"
volumes:
etc_munge:
etc_slurm:
slurm_jobdir:
var_lib_mysql:
var_log_slurm:
user_home:
nfs_data:
driver: local
driver_opts:
type: nfs
o: nfsvers=3,addr=mimir.isi.edu,rw
device: ":/mnt/scitech/scratch2-90-days/slurm"