Ethereum Node
Prepare file system
mkdir -p /nodes/ethopenssl rand -hex 32 | tr -d "\n" > /nodes/eth/jwt.secretnano /nodes/eth/docker-compose.ymlx-logging:
&default-logging
driver: "json-file"
options:
max-file: "1"
max-size: "500m"
services:
prysm-beacon:
container_name: prysm-beacon
image: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
restart: unless-stopped
command:
- --datadir=/data
- --rpc-host=0.0.0.0
- --grpc-gateway-host=0.0.0.0
- --monitoring-host=0.0.0.0
- --execution-endpoint=http://geth:8551
- --jwt-secret=/tmp/jwt.secret
- --accept-terms-of-use
#- --checkpoint-sync-url=https://sync.invis.tools
- --genesis-beacon-api-url=https://sync.invis.tools
- --p2p-denylist=private
- --p2p-host-ip=_YOUR_HOST_IP_
#- --clear-db=true
#- --force-clear-db=true
ports:
- 127.0.0.1:3500:3500
- 12000:12000/udp
- 13000:13000
volumes:
- ./prysm-beacon:/data
- ./jwt.secret:/tmp/jwt.secret
logging: *default-logging
geth:
container_name: geth
image: ethereum/client-go:latest
volumes:
- ./data-ethereum:/root/.ethereum
- ./jwt.secret:/tmp/jwt.secret
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 5m
ports:
- 127.0.0.1:28545:8545
- 30303:30303/tcp
- 30303:30303/udp
command:
- --cache=32000
- --authrpc.vhosts=*
- --authrpc.addr=0.0.0.0
- --authrpc.jwtsecret=/tmp/jwt.secret
- --http
- --ws
- --ws.addr=0.0.0.0
- --ws.port=8545
- --ws.origins=*
- --ws.api=web3,eth,net
- --http.api=web3,eth,net
- --http.addr=0.0.0.0
- --http.port=8545
- --http.vhosts=*
logging: *default-logging
Запуск geth node:
Открываем порт доступа
Доступы
Last updated