Add a stack to run an Ethereum node #1
@ -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: |
|
||||||
|
@ -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} \
|
||||||
|
@ -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=
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user