Running a node with Docker
This page is stale and in need of a refresh.
Running a Request Node with Docker is easy. There are only a few requirements:
Docker installed on your system;
A web3 provider (we recommend using a service like infura);
An Ethereum wallet with some funds for gas (if you plan on creating requests through this node);
Launching the IPFS node
To launch the IPFS node run:
This command will launch the IPFS node with Request network configurations.
Launching the Request Node
To launch the Request node you can run:
The environment variables passed to the script are:
MNEMONIC should be the node wallet mnemonic seed.
WEB3_PROVIDER_URL should be the URL to your web3 provider.
ETHEREUM_NETWORK_ID should be either
1
for Mainnet or5
for Goerli.IPFS_HOST is the URL of your IPFS node. Here we use the Docker host URL.
That's it! Now your Node should be running and syncing to the network. Give it some minutes to finish synchronizing and its API will be available on http://localhost:3000
.
If you want to know more about the available options you can pass to the node, you can check them here.
Using Docker Compose
We can (and should) use docker-compose to make it simpler to launch your local Request Node. With Docker Compose installed, use the following docker-compose.yml
file:
Now you can run:
Your node should start initializing.
Last updated