This project contains a simple Docker image and associated golang tooling to run a Voi node.
- Relay node
- Archiver node
- Developer node
- Participation node
- Conduit node
Node type will default to 'relay' if not specified. Node configuration will use testnet defaults unless otherwise provided at image build time.
docker run ghcr.io/voinetwork/voi-node:latestThis will run a relay node on the testnet network.
docker run -e VOINETWORK_INCOMING_CONNECTIONS_LIMIT=30 ghcr.io/voinetwork/voi-node:latest docker run ghcr.io/voinetwork/voi-node:latestTo run a Voi node with a pre-defined network, you can use the following command:
docker run -e VOINETWORK_NETWORK=testnet ghcr.io/voinetwork/voi-node:latestdocker run -e VOINETWORK_NETWORK=betanet -e VOINETWORK_GENESIS=custom_url ghcr.io/voinetwork/voi-node:latestdocker run -e VOINETWORK_PROFILE=relay -p 5011:8080 ghcr.io/voinetwork/voi-node:latestThis maps local port 5011 to the blockchain service running on port 8080 within the container.
docker run -e VOINETWORK_PROFILE=archiver -v <my_local_path>:/algod/data ghcr.io/voinetwork/voi-node:latestdocker run -e VOINETWORK_PROFILE=relay -p 5011:8080 ghcr.io/voinetwork/voi-node:latestThis maps local port 5011 to the blockchain service running on port 8080 within the container.
docker run -e VOINETWORK_PROFILE=participation -p 5011:8080 ghcr.io/voinetwork/voi-node:latestThis maps local port 5011 to the blockchain service running on port 8080 within the container.
docker run -e VOINETWORK_PROFILE=conduit -p 5011:8080 -v <my_local_path>:/algod/data ghcr.io/voinetwork/voi-node:latestThis maps local port 5011 to the blockchain service running on port 8080 within the container. This mode is used if you want to connect an indexer and the conduit framework to the network, in order to query network such, such as looking up transaction history.
Guidance on how to install Conduit and the Indexer can be found on the Conduit GitHub page,
as well as the Indexer GitHub page
The API token required can be found in the folder that you have mounted via the -v flag, after
startup.
The API token is persistent and generated randomly on first start. If you need to ensure it
stays constant pre-create the folder and create a algod.token and algod.admin.token file with the wanted sha256 tokens inside.
Example algod.token:
c3818ac81a91c6e58df2b151a43caf7245e806ec02e4851bca01a1be2ba72da7