From 67443e4019f108fac4a25a1bd88d0810323d7a24 Mon Sep 17 00:00:00 2001 From: unxnn Date: Mon, 5 Sep 2022 17:10:41 +0300 Subject: [PATCH] Merge Ready Docker Compose (#111) * Merge Ready Docker Compose * Update * Fix * Bump version --- README.md | 16 +++-- deploy/gnosis/docker-compose.yml | 29 ++------ deploy/goerli/.env.example | 2 +- deploy/goerli/docker-compose.yml | 86 +++++++++++----------- deploy/harbour_goerli/.env.example | 2 +- deploy/harbour_goerli/docker-compose.yml | 82 +++++++++++---------- deploy/harbour_mainnet/.env.example | 2 +- deploy/harbour_mainnet/docker-compose.yml | 87 +++++++++++------------ deploy/mainnet/.env.example | 2 +- deploy/mainnet/docker-compose.yml | 84 +++++++++++----------- pyproject.toml | 2 +- 11 files changed, 187 insertions(+), 207 deletions(-) diff --git a/README.md b/README.md index bb6a9f49..6d2cfef4 100644 --- a/README.md +++ b/README.md @@ -45,16 +45,22 @@ cd deploy/mainnet cp .env.example .env ``` -3. Enable `pushover` alerts in `deploy/configs/alertmanager.yml` +3. Create JWT + +```shell script +openssl rand -hex 32 > ../configs/jwtsecret +``` + +4. Enable `pushover` alerts in `deploy/configs/alertmanager.yml` 1. Register an account on [pushover](https://pushover.net/). 2. Create an [Application/API Token](https://pushover.net/apps/build). 3. Add `User Key` and `API Token` to `deploy/configs/alertmanager.yml` file. -4. Run with [docker-compose](https://docs.docker.com/compose/). The docker-compose version must be **v1.27.0+**. +5. Run with [docker-compose](https://docs.docker.com/compose/). The docker-compose version must be **v1.27.0+**. ```shell script -COMPOSE_PROFILES=lighthouse docker-compose up -d +COMPOSE_PROFILES=besu,lighthouse docker-compose up -d ``` ## Keeper @@ -70,7 +76,7 @@ It helps save the gas cost and stability as there is no need for every oracle to The ETH1 node is used to submit the transactions on chain. Any of the ETH1 clients can be used: - [Go-ethereum](https://github.com/ethereum/go-ethereum) -- [OpenEthereum](https://github.com/openethereum/openethereum) +- [Besu](https://github.com/hyperledger/besu) - [Nethermind](https://github.com/NethermindEth/nethermind) - [Infura](https://infura.io/docs/eth2) (hosted) - [Alchemy](https://www.alchemy.com/) (hosted) @@ -90,5 +96,5 @@ The ETH1 node is used to submit the transactions on chain. Any of the ETH1 clien 5. Run with [docker-compose](https://docs.docker.com/compose/). The docker-compose version must be **v1.27.0+**. ```shell script -COMPOSE_PROFILES=lighthouse,keeper docker-compose up -d +COMPOSE_PROFILES=besu,lighthouse,keeper docker-compose up -d ``` diff --git a/deploy/gnosis/docker-compose.yml b/deploy/gnosis/docker-compose.yml index 6f65fb18..4a768427 100644 --- a/deploy/gnosis/docker-compose.yml +++ b/deploy/gnosis/docker-compose.yml @@ -24,7 +24,7 @@ networks: services: oracle: container_name: oracle_gnosis - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/oracle/main.py"] @@ -34,7 +34,7 @@ services: keeper: container_name: keeper_gnosis - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/keeper/main.py"] @@ -117,33 +117,16 @@ services: networks: - gnosis - openethereum: - container_name: openethereum_gnosis - image: openethereum/openethereum:v3.3.4 - restart: always - command: - - --chain=xdai - - --jsonrpc-interface=all - - --jsonrpc-hosts=all - - --jsonrpc-port=8545 - - --min-peers=50 - - --max-peers=100 - volumes: ["openethereum:/home/openethereum"] - profiles: ["openethereum"] - networks: - gnosis: - aliases: - - eth1-node - nethermind: container_name: nethermind_gnosis - image: nethermind/nethermind:1.12.6 + image: nethermind/nethermind:1.14.0 restart: always command: - --config=xdai - --datadir=/data/nethermind + - --Sync.FastSync=true - --JsonRpc.Enabled=true - - --JsonRpc.EnabledModules=Eth,Subscribe,Trace,TxPool,Web3,Personal,Proof,Net,Parity,Health + - --JsonRpc.EnabledModules=Net,Eth,Consensus,Subscribe,Web3,Client,Health,Txpool - --JsonRpc.Host=0.0.0.0 - --JsonRpc.Port=8545 volumes: ["nethermind:/data"] @@ -155,7 +138,7 @@ services: lighthouse: container_name: lighthouse_gnosis - image: sigp/lighthouse:v2.1.5 + image: sigp/lighthouse:v3.1.0 restart: always command: - lighthouse diff --git a/deploy/goerli/.env.example b/deploy/goerli/.env.example index 0521e43b..23b0eb5d 100644 --- a/deploy/goerli/.env.example +++ b/deploy/goerli/.env.example @@ -56,7 +56,7 @@ IPFS_FD_MAX=8192 ############# # ETH2 Node # ############# -ETH1_ENDPOINT=http://eth1-node:8545 +ETH1_ENDPOINT=http://eth1-node:8551 ############## # Graph Node # diff --git a/deploy/goerli/docker-compose.yml b/deploy/goerli/docker-compose.yml index beb5ebd8..453375b6 100644 --- a/deploy/goerli/docker-compose.yml +++ b/deploy/goerli/docker-compose.yml @@ -11,7 +11,7 @@ volumes: driver: local geth: driver: local - erigon: + besu: driver: local prysm: driver: local @@ -26,7 +26,7 @@ networks: services: oracle: container_name: oracle_goerli - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/oracle/main.py"] @@ -36,7 +36,7 @@ services: keeper: container_name: keeper_goerli - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/keeper/main.py"] @@ -121,57 +121,53 @@ services: geth: container_name: geth_goerli - image: ethereum/client-go:v1.10.15 + image: ethereum/client-go:v1.10.23 restart: always command: - --goerli - --syncmode=full + - --authrpc.jwtsecret=/jwtsecret + - --authrpc.addr=0.0.0.0 + - --authrpc.port=8551 + - --authrpc.vhosts=* - --http - --http.addr=0.0.0.0 + - --http.port=8545 - --http.vhosts=* - --http.api=web3,eth,net - --datadir=/data/ethereum - --ethash.dagdir=/data/ethereum/.ethash - --ipcdisable - volumes: ["geth:/data"] + volumes: ["geth:/data","../configs/jwtsecret:/jwtsecret"] profiles: ["geth"] networks: goerli: aliases: - eth1-node - erigon: - container_name: erigon_goerli - image: thorax/erigon:v2022.03.02 + besu: + container_name: besu_goerli + image: hyperledger/besu:22.7.1 restart: always - command: - - erigon - - --chain=goerli - - --private.api.addr=0.0.0.0:9090 - - --maxpeers=100 - - --datadir=/home/erigon/.local/share/erigon - - --batchSize=512M - - --prune.r.before=11184524 - - --prune=htc - volumes: ["erigon:/home/erigon/.local/share/erigon"] - profiles: ["erigon"] - networks: - - goerli - - erigon-rpcdaemon: - container_name: erigon_rpcdaemon_goerli - image: thorax/erigon:v2022.03.02 - restart: always - command: - - rpcdaemon - - --private.api.addr=erigon:9090 - - --http.addr=0.0.0.0 - - --http.vhosts=* - - --http.corsdomain=* - - --http.api=eth,erigon,web3,net,txpool - - --ws - depends_on: ["erigon"] - profiles: ["erigon"] + command: > + --network=goerli + --data-path=/data + --data-storage-format=BONSAI + --sync-mode=X_SNAP + --rpc-http-enabled + --rpc-http-cors-origins=* + --rpc-http-host=0.0.0.0 + --rpc-http-max-active-connections=256 + --rpc-http-port=8545 + --engine-rpc-enabled + --engine-host-allowlist=* + --engine-jwt-secret=/jwtsecret + --engine-rpc-port=8551 + --host-allowlist=* + --max-peers=50 + volumes: ["besu:/data","../configs/jwtsecret:/jwtsecret"] + user: "0:0" + profiles: ["besu"] networks: goerli: aliases: @@ -179,19 +175,20 @@ services: prysm: container_name: prysm_goerli - image: gcr.io/prysmaticlabs/prysm/beacon-chain:v2.0.6 + image: gcr.io/prysmaticlabs/prysm/beacon-chain:v3.0.0 restart: always command: - - --prater + - --goerli - --genesis-state=/data/genesis.ssz - --datadir=/data + - --jwt-secret=/jwtsecret - --rpc-host=0.0.0.0 - --rpc-port=5052 - --monitoring-host=0.0.0.0 - --http-web3provider=$ETH1_ENDPOINT - - --slots-per-archive-point=64 + - --slots-per-archive-point=1024 - --accept-terms-of-use - volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz"] + volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz","../configs/jwtsecret:/jwtsecret"] profiles: ["prysm"] networks: goerli: @@ -200,19 +197,20 @@ services: lighthouse: container_name: lighthouse_goerli - image: sigp/lighthouse:v2.1.5 + image: sigp/lighthouse:v3.1.0 restart: always command: - lighthouse - --network - - prater + - goerli - beacon - --http - --http-address=0.0.0.0 - --http-port=5052 - - --eth1-endpoints + - --execution-endpoint - $ETH1_ENDPOINT - volumes: ["lighthouse:/root/.lighthouse"] + - --execution-jwt=/jwtsecret + volumes: ["lighthouse:/root/.lighthouse","../configs/jwtsecret:/jwtsecret"] profiles: ["lighthouse"] networks: goerli: diff --git a/deploy/harbour_goerli/.env.example b/deploy/harbour_goerli/.env.example index 172a902f..ac606885 100644 --- a/deploy/harbour_goerli/.env.example +++ b/deploy/harbour_goerli/.env.example @@ -55,7 +55,7 @@ IPFS_FD_MAX=8192 ############# # ETH2 Node # ############# -ETH1_ENDPOINT=http://eth1-node:8545 +ETH1_ENDPOINT=http://eth1-node:8551 ############## # Graph Node # diff --git a/deploy/harbour_goerli/docker-compose.yml b/deploy/harbour_goerli/docker-compose.yml index 3891b4cd..e4f0ca22 100644 --- a/deploy/harbour_goerli/docker-compose.yml +++ b/deploy/harbour_goerli/docker-compose.yml @@ -11,7 +11,7 @@ volumes: driver: local geth: driver: local - erigon: + besu: driver: local prysm: driver: local @@ -26,7 +26,7 @@ networks: services: oracle: container_name: oracle_harbour_goerli - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/oracle/main.py"] @@ -36,7 +36,7 @@ services: keeper: container_name: keeper_harbour_goerli - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/keeper/main.py"] @@ -121,57 +121,53 @@ services: geth: container_name: geth_harbour_goerli - image: ethereum/client-go:v1.10.16 + image: ethereum/client-go:v1.10.23 restart: always command: - --goerli - --syncmode=full + - --authrpc.jwtsecret=/jwtsecret + - --authrpc.addr=0.0.0.0 + - --authrpc.port=8551 + - --authrpc.vhosts=* - --http - --http.addr=0.0.0.0 + - --http.port=8545 - --http.vhosts=* - --http.api=web3,eth,net - --datadir=/data/ethereum - --ethash.dagdir=/data/ethereum/.ethash - --ipcdisable - volumes: ["geth:/data"] + volumes: ["geth:/data","../configs/jwtsecret:/jwtsecret"] profiles: ["geth"] networks: harbour_goerli: aliases: - eth1-node - erigon: - container_name: erigon_harbour_goerli - image: thorax/erigon:v2022.03.02 + besu: + container_name: besu_harbour_goerli + image: hyperledger/besu:22.7.1 restart: always - command: - - erigon - - --chain=goerli - - --private.api.addr=0.0.0.0:9090 - - --maxpeers=100 - - --datadir=/home/erigon/.local/share/erigon - - --batchSize=512M - - --prune.r.before=11184524 - - --prune=htc - volumes: ["erigon:/home/erigon/.local/share/erigon"] - profiles: ["erigon"] - networks: - - harbour_goerli - - erigon-rpcdaemon: - container_name: erigon_rpcdaemon_harbour_goerli - image: thorax/erigon:v2022.03.02 - restart: always - command: - - rpcdaemon - - --private.api.addr=erigon:9090 - - --http.addr=0.0.0.0 - - --http.vhosts=* - - --http.corsdomain=* - - --http.api=eth,erigon,web3,net,txpool - - --ws - depends_on: ["erigon"] - profiles: ["erigon"] + command: > + --network=goerli + --data-path=/opt/besu/database + --data-storage-format=BONSAI + --sync-mode=X_SNAP + --rpc-http-enabled + --rpc-http-cors-origins=* + --rpc-http-host=0.0.0.0 + --rpc-http-max-active-connections=256 + --rpc-http-port=8545 + --engine-rpc-enabled + --engine-host-allowlist=* + --engine-jwt-secret=/jwtsecret + --engine-rpc-port=8551 + --host-allowlist=* + --max-peers=50 + volumes: ["besu:/opt/besu/database","../configs/jwtsecret:/jwtsecret"] + user: "0:0" + profiles: ["besu"] networks: harbour_goerli: aliases: @@ -179,19 +175,20 @@ services: prysm: container_name: prysm_harbour_goerli - image: gcr.io/prysmaticlabs/prysm/beacon-chain:v2.0.6 + image: gcr.io/prysmaticlabs/prysm/beacon-chain:v3.0.0 restart: always command: - --prater - --genesis-state=/data/genesis.ssz - --datadir=/data + - --jwt-secret=/jwtsecret - --rpc-host=0.0.0.0 - --rpc-port=5052 - --monitoring-host=0.0.0.0 - --http-web3provider=$ETH1_ENDPOINT - - --slots-per-archive-point=64 + - --slots-per-archive-point=1024 - --accept-terms-of-use - volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz"] + volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz","../configs/jwtsecret:/jwtsecret"] profiles: ["prysm"] networks: harbour_goerli: @@ -200,7 +197,7 @@ services: lighthouse: container_name: lighthouse_harbour_goerli - image: sigp/lighthouse:v2.1.5 + image: sigp/lighthouse:v3.1.0 restart: always command: - lighthouse @@ -210,9 +207,10 @@ services: - --http - --http-address=0.0.0.0 - --http-port=5052 - - --eth1-endpoints + - --execution-endpoint - $ETH1_ENDPOINT - volumes: ["lighthouse:/root/.lighthouse"] + - --execution-jwt=/jwtsecret + volumes: ["lighthouse:/root/.lighthouse","../configs/jwtsecret:/jwtsecret"] profiles: ["lighthouse"] networks: harbour_goerli: diff --git a/deploy/harbour_mainnet/.env.example b/deploy/harbour_mainnet/.env.example index d2d89c98..6f996f49 100644 --- a/deploy/harbour_mainnet/.env.example +++ b/deploy/harbour_mainnet/.env.example @@ -55,7 +55,7 @@ IPFS_FD_MAX=8192 ############# # ETH2 Node # ############# -ETH1_ENDPOINT=http://eth1-node:8545 +ETH1_ENDPOINT=http://eth1-node:8551 ############## # Graph Node # diff --git a/deploy/harbour_mainnet/docker-compose.yml b/deploy/harbour_mainnet/docker-compose.yml index 0b211bec..f3af40e3 100644 --- a/deploy/harbour_mainnet/docker-compose.yml +++ b/deploy/harbour_mainnet/docker-compose.yml @@ -11,7 +11,7 @@ volumes: driver: local geth: driver: local - erigon: + besu: driver: local prysm: driver: local @@ -26,7 +26,7 @@ networks: services: oracle: container_name: oracle_harbour_mainnet - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/oracle/main.py"] @@ -36,7 +36,7 @@ services: keeper: container_name: keeper_harbour_mainnet - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/keeper/main.py"] @@ -121,57 +121,53 @@ services: geth: container_name: geth_harbour_mainnet - image: ethereum/client-go:v1.10.16 + image: ethereum/client-go:v1.10.23 restart: always command: - --mainnet - --syncmode=full + - --authrpc.jwtsecret=/jwtsecret + - --authrpc.addr=0.0.0.0 + - --authrpc.port=8551 + - --authrpc.vhosts=* - --http - --http.addr=0.0.0.0 + - --http.port=8545 - --http.vhosts=* - --http.api=web3,eth,net - --datadir=/data/ethereum - --ethash.dagdir=/data/ethereum/.ethash - --ipcdisable - volumes: ["geth:/data"] + volumes: ["geth:/data","../configs/jwtsecret:/jwtsecret"] profiles: ["geth"] networks: harbour_mainnet: aliases: - eth1-node - erigon: - container_name: erigon_harbour_mainnet - image: thorax/erigon:v2022.03.02 + besu: + container_name: besu_harbour_mainnet + image: hyperledger/besu:22.7.1 restart: always - command: - - erigon - - --chain=mainnet - - --private.api.addr=0.0.0.0:9090 - - --maxpeers=100 - - --datadir=/home/erigon/.local/share/erigon - - --batchSize=512M - - --prune.r.before=11184524 - - --prune=htc - volumes: ["erigon:/home/erigon/.local/share/erigon"] - profiles: ["erigon"] - networks: - - harbour_mainnet - - erigon-rpcdaemon: - container_name: erigon_rpcdaemon_harbour_mainnet - image: thorax/erigon:v2022.03.02 - restart: always - command: - - rpcdaemon - - --private.api.addr=erigon:9090 - - --http.addr=0.0.0.0 - - --http.vhosts=* - - --http.corsdomain=* - - --http.api=eth,erigon,web3,net,txpool - - --ws - depends_on: ["erigon"] - profiles: ["erigon"] + command: > + --network=mainnet + --data-path=/data + --data-storage-format=BONSAI + --sync-mode=X_SNAP + --rpc-http-enabled + --rpc-http-cors-origins=* + --rpc-http-host=0.0.0.0 + --rpc-http-max-active-connections=256 + --rpc-http-port=8545 + --engine-rpc-enabled + --engine-host-allowlist=* + --engine-jwt-secret=/jwtsecret + --engine-rpc-port=8551 + --host-allowlist=* + --max-peers=50 + volumes: ["besu:/data","../configs/jwtsecret:/jwtsecret"] + user: "0:0" + profiles: ["besu"] networks: harbour_mainnet: aliases: @@ -179,19 +175,19 @@ services: prysm: container_name: prysm_harbour_mainnet - image: gcr.io/prysmaticlabs/prysm/beacon-chain:v2.0.6 + image: gcr.io/prysmaticlabs/prysm/beacon-chain:v3.0.0 restart: always command: - - --prater - - --genesis-state=/data/genesis.ssz + - --mainnet - --datadir=/data + - --jwt-secret=/jwtsecret - --rpc-host=0.0.0.0 - --rpc-port=5052 - --monitoring-host=0.0.0.0 - --http-web3provider=$ETH1_ENDPOINT - - --slots-per-archive-point=64 + - --slots-per-archive-point=1024 - --accept-terms-of-use - volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz"] + volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz","../configs/jwtsecret:/jwtsecret"] profiles: ["prysm"] networks: harbour_mainnet: @@ -200,19 +196,20 @@ services: lighthouse: container_name: lighthouse_harbour_mainnet - image: sigp/lighthouse:v2.1.5 + image: sigp/lighthouse:v3.1.0 restart: always command: - lighthouse - --network - - prater + - mainnet - beacon - --http - --http-address=0.0.0.0 - --http-port=5052 - - --eth1-endpoints + - --execution-endpoint - $ETH1_ENDPOINT - volumes: ["lighthouse:/root/.lighthouse"] + - --execution-jwt=/jwtsecret + volumes: ["lighthouse:/root/.lighthouse","../configs/jwtsecret:/jwtsecret"] profiles: ["lighthouse"] networks: harbour_mainnet: diff --git a/deploy/mainnet/.env.example b/deploy/mainnet/.env.example index 3554d50d..011a8645 100644 --- a/deploy/mainnet/.env.example +++ b/deploy/mainnet/.env.example @@ -57,7 +57,7 @@ IPFS_FD_MAX=8192 ############# # ETH2 Node # ############# -ETH1_ENDPOINT=http://eth1-node:8545 +ETH1_ENDPOINT=http://eth1-node:8551 ############## # Graph Node # diff --git a/deploy/mainnet/docker-compose.yml b/deploy/mainnet/docker-compose.yml index cd887353..284bb53a 100644 --- a/deploy/mainnet/docker-compose.yml +++ b/deploy/mainnet/docker-compose.yml @@ -11,7 +11,7 @@ volumes: driver: local geth: driver: local - erigon: + besu: driver: local prysm: driver: local @@ -26,7 +26,7 @@ networks: services: oracle: container_name: oracle_mainnet - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/oracle/main.py"] @@ -36,7 +36,7 @@ services: keeper: container_name: keeper_mainnet - image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.7.6 + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.8.0 restart: always entrypoint: ["python"] command: ["oracle/keeper/main.py"] @@ -121,55 +121,51 @@ services: geth: container_name: geth_mainnet - image: ethereum/client-go:v1.10.15 + image: ethereum/client-go:v1.10.23 restart: always command: + - --mainnet - --syncmode=full + - --authrpc.jwtsecret=/jwtsecret + - --authrpc.addr=0.0.0.0 + - --authrpc.port=8551 + - --authrpc.vhosts=* - --http - --http.addr=0.0.0.0 + - --http.port=8545 - --http.vhosts=* - --http.api=web3,eth,net - --datadir=/data/ethereum - --ethash.dagdir=/data/ethereum/.ethash - --ipcdisable - volumes: ["geth:/data"] + volumes: ["geth:/data","../configs/jwtsecret:/jwtsecret"] profiles: ["geth"] networks: - mainnet - erigon: - container_name: erigon_mainnet - image: thorax/erigon:v2022.03.02 + besu: + container_name: besu_mainnet + image: hyperledger/besu:22.7.1 restart: always - command: - - erigon - - --private.api.addr=0.0.0.0:9090 - - --maxpeers=100 - - --datadir=/home/erigon/.local/share/erigon - - --batchSize=512M - - --prune.r.before=11184524 - - --prune=htc - volumes: ["erigon:/home/erigon/.local/share/erigon"] - profiles: ["erigon"] - networks: - mainnet: - aliases: - - eth1-node - - erigon-rpcdaemon: - container_name: erigon_rpcdaemon_mainnet - image: thorax/erigon:v2022.03.02 - restart: always - command: - - rpcdaemon - - --private.api.addr=erigon:9090 - - --http.addr=0.0.0.0 - - --http.vhosts=* - - --http.corsdomain=* - - --http.api=eth,erigon,web3,net,txpool - - --ws - depends_on: ["erigon"] - profiles: ["erigon"] + command: > + --network=mainnet + --data-path=/data + --data-storage-format=BONSAI + --sync-mode=X_SNAP + --rpc-http-enabled + --rpc-http-cors-origins=* + --rpc-http-host=0.0.0.0 + --rpc-http-max-active-connections=256 + --rpc-http-port=8545 + --engine-rpc-enabled + --engine-host-allowlist=* + --engine-jwt-secret=/jwtsecret + --engine-rpc-port=8551 + --host-allowlist=* + --max-peers=50 + volumes: ["besu:/data","../configs/jwtsecret:/jwtsecret"] + user: "0:0" + profiles: ["besu"] networks: mainnet: aliases: @@ -177,17 +173,18 @@ services: prysm: container_name: prysm_mainnet - image: gcr.io/prysmaticlabs/prysm/beacon-chain:v2.0.6 + image: gcr.io/prysmaticlabs/prysm/beacon-chain:v3.0.0 restart: always command: - --datadir=/data + - --jwt-secret=/jwtsecret - --rpc-host=0.0.0.0 - --rpc-port=5052 - --monitoring-host=0.0.0.0 - --http-web3provider=$ETH1_ENDPOINT - - --slots-per-archive-point=64 + - --slots-per-archive-point=1024 - --accept-terms-of-use - volumes: ["prysm:/data"] + volumes: ["prysm:/data","../configs/jwtsecret:/jwtsecret"] profiles: ["prysm"] networks: mainnet: @@ -196,7 +193,7 @@ services: lighthouse: container_name: lighthouse_mainnet - image: sigp/lighthouse:v2.1.5 + image: sigp/lighthouse:v3.1.0 restart: always command: - lighthouse @@ -206,9 +203,10 @@ services: - --http - --http-address=0.0.0.0 - --http-port=5052 - - --eth1-endpoints + - --execution-endpoint - $ETH1_ENDPOINT - volumes: ["lighthouse:/root/.lighthouse"] + - --execution-jwt=/jwtsecret + volumes: ["lighthouse:/root/.lighthouse","../configs/jwtsecret:/jwtsecret"] profiles: ["lighthouse"] networks: mainnet: diff --git a/pyproject.toml b/pyproject.toml index cdb1ceb0..fb9808c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "oracle" -version = "2.7.6" +version = "2.8.0" description = "StakeWise Oracles are responsible for submitting off-chain data." authors = ["Dmitri Tsumak "] license = "AGPL-3.0-only"