forked from Consensys/besu-sample-networks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_poa.yml
57 lines (57 loc) · 2.17 KB
/
docker-compose_poa.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
version: '2.2'
services:
bootnode:
build:
context: pantheon_${QUICKSTART_POA_NAME-ibft2}/.
args:
PANTHEON_VERSION: ${PANTHEON_VERSION}
image: quickstart/pantheon:${PANTHEON_VERSION}-${QUICKSTART_POA_NAME-ibft2}
environment:
- PANTHEON_PUBLIC_KEY_DIRECTORY=${PANTHEON_PUBLIC_KEY_DIRECTORY}
- PANTHEON_GENESIS_FILE_DIRECTORY=${PANTHEON_GENESIS_FILE_DIRECTORY}
entrypoint: /opt/pantheon/bootnode_start.sh
command: &base_options ["--rpc-http-enabled",
"--rpc-http-api=WEB3,ETH,NET,${QUICKSTART_POA_API-ibft}",
"--rpc-http-host=0.0.0.0",
"--rpc-http-port=8545",
"--rpc-http-cors-origins=*",
"--rpc-ws-enabled",
"--rpc-ws-api=WEB3,ETH,NET,${QUICKSTART_POA_API-ibft}",
"--rpc-ws-host=0.0.0.0",
"--rpc-ws-port=8546",
"--host-whitelist=*"]
volumes:
- public-keys:${PANTHEON_PUBLIC_KEY_DIRECTORY}
- genesis:${PANTHEON_GENESIS_FILE_DIRECTORY}
node:
image: quickstart/pantheon:${PANTHEON_VERSION}-${QUICKSTART_POA_NAME-ibft2}
environment:
- PANTHEON_PUBLIC_KEY_DIRECTORY=${PANTHEON_PUBLIC_KEY_DIRECTORY}
- PANTHEON_GENESIS_FILE_DIRECTORY=${PANTHEON_GENESIS_FILE_DIRECTORY}
command: *base_options
volumes:
- public-keys:${PANTHEON_PUBLIC_KEY_DIRECTORY}
- genesis:${PANTHEON_GENESIS_FILE_DIRECTORY}
depends_on:
- bootnode
rpcnode: # We keep one node named rpcnode to have a specific node to connect the explorer
image: quickstart/pantheon:${PANTHEON_VERSION}-${QUICKSTART_POA_NAME-ibft2}
environment:
- PANTHEON_PUBLIC_KEY_DIRECTORY=${PANTHEON_PUBLIC_KEY_DIRECTORY}
- PANTHEON_GENESIS_FILE_DIRECTORY=${PANTHEON_GENESIS_FILE_DIRECTORY}
command: *base_options
volumes:
- public-keys:${PANTHEON_PUBLIC_KEY_DIRECTORY}
- genesis:${PANTHEON_GENESIS_FILE_DIRECTORY}
depends_on:
- bootnode
explorer:
build: block-explorer-light/.
image: quickstart/block-explorer-light:${PANTHEON_VERSION}-${QUICKSTART_POA_NAME-ibft2}
depends_on:
- rpcnode
ports:
- "${EXPLORER_PORT_MAPPING:-}80"
volumes:
public-keys:
genesis: