Near Mainnet Archivel Node Set up

Viewed 237

I tried setting up the NEAR mainnet archival node using docker by following this documentation - https://github.com/near/nearup#building-the-docker-image. The docker run command does not specify any port in the document.

So I also ran the docker run without any port, but when I tried to check the port by docker ps it does not show any port but the neard node runs.

Docker run command used to set up archival mainnet node:

sudo docker run -d -v $PWD:/root/.near --name nearup nearprotocol/nearup run mainnet

2 Answers

I have updated the documentation for nearup to specify the port binding for RPC now: https://github.com/near/nearup#building-the-docker-image

You can use the following command:

docker run -v $HOME/.near:/root/.near -p 3030:3030 --name nearup nearprotocol/nearup run mainnet

And you can validate nearup is running and the RPC /status endpoint is available by running:

docker exec nearup nearup logs

and

curl 0.0.0.0:3030/status

Also please make sure that you have changed the ~/.near/mainnet/config.json to contain the variable:

{
...
"archive": true,
...
}
Related