-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (99 loc) · 2.72 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
version: '3.3'
networks:
jerigon-test-network:
driver: bridge
name: jerigon-test-network
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
services:
node-1:
image: ghcr.io/0xpolygonzero/erigon:${JERIGON_VERSION}
container_name: node-1
init: true
command:
- '--datadir=/home/erigon/.local/share/erigon'
- '--chain=dev'
- '--private.api.addr=0.0.0.0:9090'
- '--mine'
- '--http.api=eth,erigon,web3,net,debug,trace,txpool,parity,admin'
- "--http.corsdomain='*'"
- '--http.addr=0.0.0.0'
- '--http.port=$NODE1_RPC_PORT'
- '--p2p.allowed-ports=30303'
- '--p2p.protocol=67'
ports:
- $NODE1_RPC_PORT:$NODE1_RPC_PORT
- '30303'
volumes:
- erigon-data:/home/erigon/.local/share/
- ./assets/nodekey:/home/erigon/.local/share/erigon/nodekey
environment:
- NODE1_RPC_PORT=${NODE1_RPC_PORT}
networks:
jerigon-test-network:
ipv4_address: ${NODE1_RPC_HOST}
node-2:
image: ghcr.io/0xpolygonzero/erigon:${JERIGON_VERSION}
container_name: node-2
init: true
user: root
healthcheck:
test: /home/erigon/check-node.sh
interval: 5s
retries: 10
command:
- '--chain=dev'
- '--mine'
- '--private.api.addr=localhost:9090'
- '--datadir=/home/erigon/.local/share/erigon2'
- '--http.addr=0.0.0.0'
- '--http.port=$NODE2_RPC_PORT'
- '--http.api=eth,erigon,web3,net,debug,trace,txpool,parity,admin'
- '--staticpeers=enode://$NODE1_ENODE@node-1:30303'
- '--http.corsdomain="*"'
depends_on:
node-1:
condition: service_started
ports:
- $NODE2_RPC_PORT:$NODE2_RPC_PORT
- '30304'
- '30303'
volumes:
- erigon-data:/home/erigon/.local/share/
- ./assets/check-node.sh:/home/erigon/check-node.sh
environment:
- NODE2_RPC_PORT=${NODE2_RPC_PORT}
- NODE1_ENODE=${NODE1_ENODE}
networks:
jerigon-test-network:
ipv4_address: ${NODE2_RPC_HOST}
smart-contracts:
image: node:20-bullseye
container_name: smart-contracts
init: true
user: root
command:
- '/home/node/deploy-smart-contracts.sh'
depends_on:
node-2:
condition: service_healthy
links:
- node-1
ports:
- $NODE1_RPC_PORT
- $NODE2_RPC_PORT
- '30304'
- '30303'
volumes:
- ./smart-contracts:/home/node/smart-contracts
- ./assets/deploy-smart-contracts.sh:/home/node/deploy-smart-contracts.sh
environment:
- HARDHAT_URL=http://${NODE1_RPC_HOST}:${NODE1_RPC_PORT}
networks:
jerigon-test-network:
ipv4_address: 10.5.0.7
volumes:
erigon-data:
proof-data: