Running with docker compose
Sometimes it is nice to not rely on long docker commands. Running with docker compose is very similar to using raw docker and you can find a full specification of the format in the docker docs.
This is an example docker-compose file for running a validator that should get you most of the way.
ethereum_validator.json
compose.yml
The above has a lot of filler values, you will of course need to update those with real ones.
You can also specify multiple services, so if you are running several validators, you can specify each one under services
.
To run the compose configuration use docker compose up
and docker compose down
to clean up after. Full documentation on the command line can be found on the docker website.
Last updated