-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
109 lines (101 loc) · 2.83 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
version: "3.9"
services:
bootnode:
build:
context: ./
dockerfile: ./dockerfiles/madnet/Dockerfile
target: base
command: scripts/bootnode.sh
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
geth:
build:
context: ./
dockerfile: ./dockerfiles/geth/Dockerfile
command: geth --miner.threads 1 --miner.gasprice 1 --miner.gaslimit 10000000 --miner.etherbase 546f99f244b7b58b855330ae0e2bc1b30b41302f --nodiscover --mine --txpool.nolocals --maxpeers 0 --ws --ws.addr=0.0.0.0 --ws.port=8546 --ws.api="eth,net,web3" --http --http.addr=0.0.0.0 --http.port=8545 --http.vhosts='*' --http.api="admin,eth,net,web3,personal,miner" --datadir=/root/local-geth
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
depends_on:
- bootnode
validator0:
build:
context: ./
dockerfile: ./dockerfiles/madnet/Dockerfile
target: devel
command: >
/bin/sh -c "sleep 5 &&
scripts/wait-for.sh geth:8545 -- scripts/validator.sh assets/config/validator0.compose.toml"
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
ports:
- "4343:4343"
depends_on:
- bootnode
- geth
validator1:
build:
context: ./
dockerfile: ./dockerfiles/madnet/Dockerfile
target: devel
command: >
/bin/sh -c "sleep 5 &&
scripts/wait-for.sh geth:8545 -- scripts/validator.sh assets/config/validator1.compose.toml"
ports:
- "4344:4344"
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
depends_on:
- bootnode
- geth
validator2:
build:
context: ./
dockerfile: ./dockerfiles/madnet/Dockerfile
target: devel
command: >
/bin/sh -c "sleep 5 &&
scripts/wait-for.sh geth:8545 -- scripts/validator.sh assets/config/validator2.compose.toml"
ports:
- "4345:4345"
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
depends_on:
- bootnode
- geth
validator3:
build:
context: ./
dockerfile: ./dockerfiles/madnet/Dockerfile
target: devel
command: >
/bin/sh -c "sleep 5 &&
scripts/wait-for.sh geth:8545 -- scripts/validator.sh assets/config/validator3.compose.toml"
ports:
- "4346:4346"
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
depends_on:
- bootnode
- geth
validator4:
build:
context: ./
dockerfile: ./dockerfiles/madnet/Dockerfile
target: devel
command: >
/bin/sh -c "sleep 5 &&
scripts/wait-for.sh geth:8545 -- scripts/validator.sh assets/config/validator4.compose.toml"
ports:
- "5343:5343"
volumes:
- ./assets:/madnet/assets
- ./scripts:/madnet/scripts
depends_on:
- bootnode
- geth