-
Install Docker Engine and Docker Compose following the original instructions https://docs.docker.com/get-docker/ and https://docs.docker.com/compose/install/
-
Clone this repo:
git clone https://github.com/etherlite-org/validator-node-dockerized cd validator-node-dockerized
-
To be a validator, you need to download the binary from official etherlite
apt install -y unzip curl -L "https://github.com/etherlite-org/openethereum/releases/download/v3.2.2-rc.1/openethereum-ubuntu.zip" -o openethereum.zip unzip openethereum.zip
-
Create password file for mining account.
nano password
-
Create your mining account
openethereum account new --keys-path=data/keys --password=password --chain=etherlite
-
Copy
.env.example
to.env
and configure the.env
file. There are a few settings you need to define:PASSWORD_PATH=/root/password EXT_IP=YOUR-EXTERNAL-IP-ADDRESS ACCOUNT=0x...
EXT_IP
- External IP of the current server.ACCOUNT
- Your mining address (with leading0x
).
-
Start your node.
docker-compose up -d
After docker containers are created, the node will sync with the chain (may take a while).
To restart you need to use docker-compose stop
and docker-compose start
being in the validator-node-dockerized
directory.