fix besu?

This commit is contained in:
Sebastian
2023-08-26 05:30:54 +02:00
parent 2bfa6bc650
commit f67c8c6604
2 changed files with 19 additions and 5 deletions

View File

@@ -2,8 +2,10 @@ version: '3.1'
services: services:
mainnet-besu: mainnet-besu:
image: hyperledger/besu:23.4.4 build:
user: root context: besu
args:
UPSTREAM_VERSION: 23.4.4
expose: expose:
- 8545 - 8545
- 8551 - 8551
@@ -16,9 +18,9 @@ services:
command: command:
[ [
"--rpc-ws-host='0.0.0.0'", "--rpc-ws-host='0.0.0.0'",
#"--rpc-ws-enabled=true", "--rpc-ws-enabled=true",
"--rpc-http-host='0.0.0.0'", "--rpc-http-host='0.0.0.0'",
#"--rpc-http-enabled=true", "--rpc-http-enabled=true",
"--host-allowlist=*", "--host-allowlist=*",
"--rpc-http-cors-origins=*", "--rpc-http-cors-origins=*",
"--engine-rpc-port=8551", "--engine-rpc-port=8551",
@@ -99,5 +101,5 @@ services:
volumes: volumes:
mainnet-besu-fullnode: mainnet-besu-fullnode: {}
mainnet_consensus: mainnet_consensus:

12
besu/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
ARG UPSTREAM_VERSION
FROM hyperledger/besu:${UPSTREAM_VERSION}
USER root
RUN mkdir /var/lib/besu
RUN chown -R besu:besu /var/lib/besu
USER besu
ENTRYPOINT ["besu"]