-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
95 lines (90 loc) · 2.04 KB
/
docker-compose.yaml
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
name: "coconet"
services:
bootnode:
hostname: bootnode
image: eth_node
volumes:
- ./consensus:/devnet/consensus
- ./execution:/devnet/execution
- ./start_bootnode.sh:/devnet/start.sh
command: sh -c "chmod +x ./start.sh && ./start.sh"
healthcheck:
test: curl -f localhost:8080/p2p
ports:
- 8545:8545
- 8551:8551
# - 8080:8080
# - 8081:8081
# - 9090:9090
environment:
- PUBLIC_IP=10.5.0.5
networks:
devnet:
ipv4_address: 10.5.0.5
node1:
hostname: node1
image: eth_node
volumes:
- ./consensus:/devnet/consensus
- ./execution:/devnet/execution
- ./start_node.sh:/devnet/start.sh
command: sh -c "chmod +x ./start.sh && ./start.sh"
ports:
- 8546:8545
# - 9091:9090
# - 7501:7500
environment:
- PUBLIC_IP=10.5.0.6
- HAS_VALIDATOR=1
networks:
devnet:
ipv4_address: 10.5.0.6
depends_on:
bootnode:
condition: service_healthy
node2:
hostname: node2
image: eth_node
volumes:
- ./consensus:/devnet/consensus
- ./execution:/devnet/execution
- ./start_node.sh:/devnet/start.sh
command: sh -c "chmod +x ./start.sh && ./start.sh"
ports:
- 8547:8545
# - 9092:9090
environment:
- PUBLIC_IP=10.5.0.7
- HAS_VALIDATOR=1
networks:
devnet:
ipv4_address: 10.5.0.7
depends_on:
bootnode:
condition: service_healthy
node3:
hostname: node3
image: eth_node
volumes:
- ./consensus:/devnet/consensus
- ./execution:/devnet/execution
- ./start_node.sh:/devnet/start.sh
command: sh -c "chmod +x ./start.sh && ./start.sh"
ports:
- 8548:8545
# - 9093:9090
environment:
- PUBLIC_IP=10.5.0.8
networks:
devnet:
ipv4_address: 10.5.0.8
depends_on:
bootnode:
condition: service_healthy
networks:
devnet:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1