Running a node with Docker
Running a Request Node with Docker is easy. There are only a few requirements:
- Docker installed on your system;
- An Ethereum wallet with some funds for gas (if you plan on creating requests through this node);
To launch the IPFS node run:
docker run -p 5001:5001 -p 4001:4001 requestnetwork/request-ipfs
This command will launch the IPFS node with Request network configurations.
To launch the Request node you can run:
docker run -p 3000:3000 -e MNEMONIC="<your wallet mnemonic>" -e WEB3_PROVIDER_URL="<your web3 provider url>" -e ETHEREUM_NETWORK_ID="<ethereum network id>" -e IPFS_HOST="host.docker.internal" requestnetwork/request-node
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
1for Mainnet or
- 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
If you want to know more about the available options you can pass to the node, you can check them here.
We can (and should) use docker-compose to make it simpler to launch your local Request Node. With Docker Compose installed, use the following
WEB3_PROVIDER_URL: https://goerli.infura.io/v3/<your API key>
MNEMONIC: <your Mnemonic>
Now you can run:
Your node should start initializing.