-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.03 KB
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
version: '3.8'
services:
master-node:
build: ./master_node
container_name: master_node
ports:
- "9000:9000"
networks:
- backupnet
tty: true
stdin_open: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
runtime: nvidia
node1:
build: ./slave_node
container_name: node1
networks:
backupnet:
ipv4_address: 172.28.0.11
tty: true
stdin_open: true
node2:
build: ./slave_node
container_name: node2
networks:
backupnet:
ipv4_address: 172.28.0.12
tty: true
stdin_open: true
node3:
build: ./slave_node
container_name: node3
networks:
backupnet:
ipv4_address: 172.28.0.13
tty: true
stdin_open: true
networks:
backupnet:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16