Add a stack to run an Ethereum node #1

Merged
nabarun merged 6 commits from pm-add-eth-stack into main 2024-09-11 04:18:18 +00:00
3 changed files with 14 additions and 4 deletions
Showing only changes of commit fc85a17912 - Show all commits

View File

@ -8,6 +8,8 @@ services:
ETH_DATADIR: "/root/.ethereum" ETH_DATADIR: "/root/.ethereum"
CERC_NETWORK: ${CERC_NETWORK:-sepolia} CERC_NETWORK: ${CERC_NETWORK:-sepolia}
CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false} CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false}
CERC_SYNCMODE: ${CERC_SYNCMODE:-full}
CERC_GCMODE: ${CERC_GCMODE:-archive}
CERC_GETH_VERBOSITY: ${CERC_GETH_VERBOSITY:-3} CERC_GETH_VERBOSITY: ${CERC_GETH_VERBOSITY:-3}
entrypoint: ["sh", "-c"] entrypoint: ["sh", "-c"]
command: | command: |

View File

@ -8,6 +8,8 @@ fi
echo "Using the following env:" echo "Using the following env:"
echo "CERC_NETWORK: ${CERC_NETWORK}" echo "CERC_NETWORK: ${CERC_NETWORK}"
echo "CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS}" echo "CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS}"
echo "CERC_SYNCMODE: ${CERC_SYNCMODE}"
echo "CERC_GCMODE: ${CERC_GCMODE}"
echo "CERC_GETH_VERBOSITY: ${CERC_GETH_VERBOSITY}" echo "CERC_GETH_VERBOSITY: ${CERC_GETH_VERBOSITY}"
echo "ETH_DATADIR: ${ETH_DATADIR}" echo "ETH_DATADIR: ${ETH_DATADIR}"
@ -57,15 +59,15 @@ geth \
--http \ --http \
--http.addr="0.0.0.0" \ --http.addr="0.0.0.0" \
--http.vhosts="*" \ --http.vhosts="*" \
--http.api="${CERC_GETH_HTTP_APIS:-eth,web3,net,admin,personal,debug}" \ --http.api="eth,web3,net,admin,personal,debug" \
--http.corsdomain="*" \ --http.corsdomain="*" \
--ws \ --ws \
--ws.addr="0.0.0.0" \ --ws.addr="0.0.0.0" \
--ws.origins="*" \ --ws.origins="*" \
--ws.api="${CERC_GETH_WS_APIS:-eth,web3,net,admin,personal,debug}" \ --ws.api="eth,web3,net,admin,personal,debug" \
--state.scheme hash \ --state.scheme hash \
--gcmode archive \ --gcmode $CERC_GCMODE \
--syncmode=full \ --syncmode=$CERC_SYNCMODE \
--metrics \ --metrics \
--metrics.addr="0.0.0.0" \ --metrics.addr="0.0.0.0" \
--verbosity=${CERC_GETH_VERBOSITY} \ --verbosity=${CERC_GETH_VERBOSITY} \

View File

@ -54,6 +54,12 @@
# Allow unprotected txs (default: false) # Allow unprotected txs (default: false)
CERC_ALLOW_UNPROTECTED_TXS= CERC_ALLOW_UNPROTECTED_TXS=
# Blockchain sync mode (default: full)
CERC_SYNCMODE=
# Garbage collection mode (default: archive)
CERC_GCMODE=
# Verbosity level (default: info) # Verbosity level (default: info)
CERC_GETH_VERBOSITY= CERC_GETH_VERBOSITY=