Skip to content

using docker compose to build ethereum node cluster with docker and geth

License

Notifications You must be signed in to change notification settings

calee0219/docker-geth-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-geth-cluster

using docker compose to build ethereum node cluster with docker and geth

Inspire by konradkonrad/docker-pyeth-cluster

Require

  • install docker, docker-compose
  • build docker image if you need
git clone https://github.com/konradkonrad/docker-geth-cluster.git
cd docker-geth-cluster
docker build -t calee0219/docker-geth-cluster .

How to used

Start mining

cd simple
docker-compose up --scale bootstrap=1 --scale eth=2 --scale miner=3

Where 1, 2, and 3 is how many node you want to create

go inside and test

# enter docker
docker exec -it [contaoiner name] /bin/bash
# attach to geth
geth attach

What's the node

  1. bootstrap: A bootstrap node for your network. You should always build it and build it only one node.

  2. eth: A normal node that will not mining

  3. miner: A mining node

What you can change

  • genesis.json

    you can edit genesis up to you

    you must rebuild docker image if you rewrite genesis

  • geth parameter

    change parameter here

About

using docker compose to build ethereum node cluster with docker and geth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published