Setting up a Witness Node with Docker

System Requirements

The following table lists what should be considered the recommended system requirements for running a witness node on the Mainnet:
CPU
Memory
Storage
Bandwidth
OS
4 Cores
8GB
300GB SSD
1Gbps
Ubuntu 18.04
The following table lists what should be considered the recommended system requirements for running a witness node on SON:
CPU
Memory
Storage
Bandwidth
OS
2 Cores
8GB
60GB SSD
1Gbps
Ubuntu 18.04

Building with Docker

Clone the Peerplays Docker repository:
1
git clone https://gitlab.com/PBSA/PeerplaysIO/tools-libs/peerplays-docker
Copied!
Use the install script to download/update the docker image for Peerplays:
1
./run.sh install
Copied!
Edit the configuration for the witness or seed in in ./data/witness_node_data_dir/
The final configuration file must be:
1
./data/witness_node_data_dir/config.ini
Copied!
Optionally: you can edit the .env file in the root of the project to easily adjust parameters for running the project with Docker
1
cp example.env .env
2
vim .env
Copied!
The default setting will be to use the latest Peerplays (Mainnet) image. To change this, specify the DOCKER_IMAGE variable
Start the witness node:
1
./run.sh start
Copied!
The logs can be seen with run.sh logs command.
Last modified 9mo ago
Export as PDF
Copy link