-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
117 lines (103 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
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
version: '3'
services:
mariadb:
image: mariadb:latest
container_name: slurm_mariadb
environment:
- MYSQL_ROOT_PASSWORD=suslurm
- MYSQL_DATABASE=slurm_acct_db
networks:
- slurm-network
volumes:
- ./mariadb_docker/database:/var/lib/mysql
healthcheck:
test: ["CMD", "mysql", "--version"]
interval: 2s
timeout: 2s
retries: 5
start_period: 2s
slurm_db:
depends_on:
mariadb:
condition: service_healthy
healthcheck:
test: ["CMD", "sacctmgr", "list", "cluster"]
interval: 2s
timeout: 2s
retries: 5
start_period: 2s
image: slurm_db
container_name: slurm_db
networks:
- slurm-network
volumes:
- ./slurm_conf:/etc/slurm
hostname: slurm_db
slurm_controller:
depends_on:
slurm_db:
condition: service_healthy
image: slurm_controller
container_name: slurm_controller
networks:
- slurm-network
volumes:
- ./slurm_conf:/etc/slurm
- ./shared:/shared
hostname: slurm_controller
privileged: true
slurm_node1:
depends_on:
slurm_controller:
condition: service_started
image: slurm_node
container_name: slurm_node1
networks:
- slurm-network
volumes:
- ./slurm_conf:/etc/slurm
- ./shared:/shared
hostname: slurm_node1
privileged: true
slurm_node2:
depends_on:
slurm_controller:
condition: service_started
image: slurm_node
container_name: slurm_node2
networks:
- slurm-network
volumes:
- ./slurm_conf:/etc/slurm
- ./shared:/shared
hostname: slurm_node2
privileged: true
slurm_node3:
depends_on:
slurm_controller:
condition: service_started
image: slurm_node
container_name: slurm_node3
networks:
- slurm-network
volumes:
- ./slurm_conf:/etc/slurm
- ./shared:/shared
hostname: slurm_node3
privileged: true
slurm_node4:
depends_on:
slurm_controller:
condition: service_started
image: slurm_node
container_name: slurm_node4
networks:
- slurm-network
volumes:
- ./slurm_conf:/etc/slurm
- ./shared:/shared
hostname: slurm_node4
privileged: true
networks:
slurm-network:
driver: bridge