-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·55 lines (54 loc) · 1.21 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
version: '2.4'
services:
blockchain1:
image: blockchain:latest
restart: always
container_name: blockchain1
network_mode: "host"
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
ports:
- 3009:3009
command:
- /bin/sh
- -c
- |
python console.py account init_name blockchain1
python -u console.py node run 3009 0 1000
blockchain2:
image: blockchain:latest
restart: always
container_name: blockchain2
network_mode: "host"
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
ports:
- 3010:3010
depends_on:
- blockchain1
command:
- /bin/sh
- -c
- |
python console.py account init_name blockchain2
python -u console.py node run 3010 1000 2000
blockchain3:
image: blockchain:latest
restart: always
container_name: blockchain3
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
network_mode: "host"
ports:
- 3011:3011
depends_on:
- blockchain1
command:
- /bin/sh
- -c
- |
python console.py account init_name blockchain3
python -u console.py node run 3011 2000 3000