-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbesu.yaml
More file actions
113 lines (100 loc) · 3.09 KB
/
Copy pathbesu.yaml
File metadata and controls
113 lines (100 loc) · 3.09 KB
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
104
105
106
107
108
109
110
111
112
113
version: '3.6'
# bloco base que contém tudo o que é comum (imagem, entrypoint, volumes, vars de HTTP/WS-RPC etc)
x-besu-def:
&besu-def
image: hyperledger/besu:${BESU_VERSION}
restart: on-failure
environment:
&besu-def-env
# Log4j
- LOG4J_CONFIGURATION_FILE=/config/log-config.xml
# HTTP-RPC
- BESU_RPC_HTTP_ENABLED=true
- BESU_RPC_HTTP_HOST=0.0.0.0
- BESU_RPC_HTTP_PORT=8545
- BESU_RPC_HTTP_CORS_ORIGINS=*
# APIs expostas (padrão ETH,NET,WEB3 + extras)
- BESU_RPC_HTTP_API=EEA,WEB3,ETH,NET,TRACE,DEBUG,ADMIN,PERM,${CONSENSUS_ALGO}
# WS-RPC (opcional)
- BESU_RPC_WS_ENABLED=true
- BESU_RPC_WS_HOST=0.0.0.0
- BESU_RPC_WS_PORT=8546
- BESU_RPC_WS_API=EEA,WEB3,ETH,NET,TRACE,DEBUG,ADMIN,PERM,${CONSENSUS_ALGO}
# demais configurações genéricas
- BESU_MIN_GAS_PRICE=${BESU_MIN_GAS_PRICE}
- BESU_HOST_ALLOWLIST=*
- BESU_DATA_PATH=/opt/besu/data
- BESU_ETHSTATS_CONTACT=${BESU_ETHSTATS_CONTACT}
volumes:
- ./config/besu/:/config
- ./nodes/${HOSTNAME}/keys:/opt/besu/keys
- ./nodes/${HOSTNAME}/data:/opt/besu/data
- ./nodes/${HOSTNAME}/logs:/tmp/besu
entrypoint:
- /opt/besu/bin/besu
- --config-file=/config/config.toml
- --node-private-key-file=/opt/besu/keys/key
services:
# nó validador #1
besu01:
<<: *besu-def
container_name: besu01.bc.ufcg.net
environment:
- OTEL_RESOURCE_ATTRIBUTES=service.name=besu01,service.version=${BESU_VERSION}
volumes:
- ./config/besu/:/config
- ./nodes/besu01/logs:/tmp/besu
# - ./logs/besu:/tmp/besu
#besu keys
- ./nodes/besu01/keys:/opt/besu/keys
#besu data
# - besu_01_data:/opt/data
- ./nodes/besu01/data:/opt/data
# nó validador #2
besu02:
<<: *besu-def
container_name: besu02.bc.ufcg.net
environment:
- OTEL_RESOURCE_ATTRIBUTES=service.name=besu02,service.version=${BESU_VERSION}
volumes:
- ./config/besu/:/config
- ./nodes/besu01/logs:/tmp/besu
#besu keys
- ./nodes/besu02/keys:/opt/besu/keys
#besu data
- ./nodes/besu02/data:/opt/data
# - besu_02_data:/opt/data
# nó validador #3
besu03:
<<: *besu-def
container_name: besu03.bc.ufcg.net
environment:
- OTEL_RESOURCE_ATTRIBUTES=service.name=besu03,service.version=${BESU_VERSION}
volumes:
- ./config/besu/:/config
- ./nodes/besu01/logs:/tmp/besu
# besu keys
- ./nodes/besu03/keys:/opt/besu/keys
# besu data
- ./nodes/besu03/data:/opt/data
# nó dedicado só a expor RPC/WS
rpcnode:
<<: *besu-def
container_name: rpcnode.bc.ufcg.net
environment:
- OTEL_RESOURCE_ATTRIBUTES=service.name=rpcnode,service.version=${BESU_VERSION}
volumes:
- ./config/besu/:/config
- ./nodes/besu01/logs:/tmp/besu
- ./nodes/rpcnode/keys:/opt/besu/keys
depends_on:
- besu01
- besu02
- besu03
# explorer leve, aponta para o rpcnode
explorer:
image: local/block-explorer-light:dev
build: nodes/block-explorer-light
container_name: explorer.bc.ufcg.net
depends_on:
- rpcnode