-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose-lmod.yml
107 lines (101 loc) · 2.37 KB
/
docker-compose-lmod.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
version: '3.1'
services:
controller:
build:
context: ./controller
dockerfile: Dockerfile
image: scidas/slurm.controller:19.05.1
container_name: controller
privileged: true
volumes:
- home:/home
- secret:/.secret
- ./modules:/opt/apps/Linux
- ./modulefiles:/opt/apps/modulefiles/Linux
restart: always
hostname: controller.local.dev
networks:
- slurm
environment:
USE_SLURMDBD: 'true'
CLUSTER_NAME: snowflake
CONTROL_MACHINE: controller
SLURMCTLD_PORT: 6817
SLURMD_PORT: 6818
ACCOUNTING_STORAGE_HOST: database
ACCOUNTING_STORAGE_PORT: 6819
COMPUTE_NODES: worker01 worker02
PARTITION_NAME: docker
database:
build:
context: ./database
dockerfile: Dockerfile
image: scidas/slurm.database:19.05.1
depends_on:
- controller
container_name: database
privileged: true
volumes:
- home:/home
- secret:/.secret
restart: always
hostname: database.local.dev
networks:
- slurm
environment:
DBD_ADDR: database
DBD_HOST: database
DBD_PORT: 6819
STORAGE_HOST: database.local.dev
STORAGE_PORT: 3306
STORAGE_PASS: password
STORAGE_USER: slurm
worker01:
build:
context: ./worker
dockerfile: Dockerfile
image: scidas/slurm.worker:19.05.1
depends_on:
- controller
container_name: worker01
privileged: true
volumes:
- home:/home
- secret:/.secret
- ./modules:/opt/apps/Linux
- ./modulefiles:/opt/apps/modulefiles/Linux
restart: always
hostname: worker01.local.dev
networks:
- slurm
environment:
CONTROL_MACHINE: controller
ACCOUNTING_STORAGE_HOST: database
COMPUTE_NODES: worker01 worker02
worker02:
build:
context: ./worker
dockerfile: Dockerfile
image: scidas/slurm.worker:19.05.1
depends_on:
- controller
container_name: worker02
privileged: true
volumes:
- home:/home
- secret:/.secret
- ./modules:/opt/apps/Linux
- ./modulefiles:/opt/apps/modulefiles/Linux
restart: always
hostname: worker02.local.dev
networks:
- slurm
environment:
CONTROL_MACHINE: controller
ACCOUNTING_STORAGE_HOST: database
COMPUTE_NODES: worker01 worker02
volumes:
home:
secret:
networks:
slurm: