forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
besu.yml
56 lines (56 loc) · 1.2 KB
/
besu.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
version: "3.4"
services:
eth1:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./besu
dockerfile: ${BESU_DOCKERFILE}
args:
- BUILD_TARGET=${BESU_SRC_BUILD_TARGET}
- DOCKER_TAG=${BESU_DOCKER_TAG}
- USER=${BESU_USER}
- UID=${LOCAL_UID}
image: besu
volumes:
- besu-eth1-data:/var/lib/besu
ports:
- ${ETH1_PORT}:${ETH1_PORT}/tcp
- ${ETH1_PORT}:${ETH1_PORT}/udp
expose:
- ${ETH1_RPC_PORT}/tcp
- ${ETH1_WS_PORT}/tcp
entrypoint:
- /opt/besu/bin/besu
- --data-path
- /var/lib/besu
- --pruning-enabled
- --p2p-port
- ${ETH1_PORT}
- --rpc-http-enabled
- --rpc-http-api
- "net,eth"
- --rpc-http-host
- 0.0.0.0
- --rpc-http-port
- ${ETH1_RPC_PORT}
- --rpc-ws-enabled
- --rpc-ws-api
- "net,eth"
- --rpc-ws-host
- 0.0.0.0
- --rpc-ws-port
- ${ETH1_WS_PORT}
- --host-allowlist=eth1,localhost
- --logging
- ${LOG_LEVEL}
- --network
- ${ETH1_NETWORK}
beacon:
depends_on:
- eth1
eth2:
depends_on:
- eth1
volumes:
besu-eth1-data: