We recommend creating an entrypoint.sh for more control and customization of the node, below is an example of it.
CHAINID="evmos_9001-2"
KEYRING="test"
LOGLEVEL="info"
# to trace evm
#TRACE="--trace"
TRACE=""
# To know more about key management head to https://docs.evmos.org/validators/quickstart/run_node.html#key-management
evmosd config keyring-backend $KEYRING
evmosd config chain-id $CHAINID
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
evmosd start --pruning=nothing $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3
evm1:
container_name: evm1
image: pocketfoundation/evmos:v3.0.0
restart: unless-stopped
cpus: 8
mem_limit: '32G'
command: sh /root/entrypoint.sh
volumes:
- /data-evm:/root/.evmosd
- ./config.toml:/root/.evmosd/config/config.toml
- ./client.toml:/root/.evmosd/config/client.toml
- ./app.toml:/root/.evmosd/config/app.toml
- ./entrypoint.sh:/root/entrypoint.sh
ports:
- "8545:8545"
- "26656:26656"
Information on how to generate the required .toml files can be found here
genesis.json is located on /root/genesis.json
To work correctly you need to change genesis_file config in your config.toml
genesis_file = "/root/genesis.json"
For more information refer to the Evmos documentation and repo
Content type
Image
Digest
sha256:09132c182…
Size
286.4 MB
Last updated
over 3 years ago
docker pull pocketfoundation/evmos:v11.0.2