-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.18 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
version: "3.3"
services:
foreign-node:
container_name: foreign-node
build:
context: .
dockerfile: Dockerfile.blocknode
args:
- NETWORK_ID=5778
- CHAIN_ID=1338
- CHAIN_DIRECTORY=foreign_node.zip
networks:
- foreign-network
ports:
- "8546:8545"
healthcheck:
test: curl --location --request POST 'localhost:8545/' --header 'Content-Type:application/json' --data-raw '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' || exit 1
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
home-node:
container_name: home-node
build:
context: .
dockerfile: Dockerfile.blocknode
args:
- NETWORK_ID=5777
- CHAIN_ID=1337
- CHAIN_DIRECTORY=home_node.zip
networks:
- home-network
ports:
- "8545:8545"
healthcheck:
test: curl --location --request POST 'localhost:8545/' --header 'Content-Type:application/json' --data-raw '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' || exit 1
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
foreign-network:
home-network: