Node Setup
The recommended way to run the Acurast node is by using the published Docker image.
Get the chain spec
Download the Acurast Canary chain spec from the Acurast GitHub repository.
Configure the node
Create an acurast-node
folder. Inside this folder, the following 2 folders and file:
chain-specs
- place the downloaded chain spec heredata
- this is where the node will store its datadocker-compose.yml
- this is where the docker-compose configuration will be placed
In the docker-compose.yml
file, put the following content:
services:
node:
image: "acurast/node-canary:acurast-v0.13.3a"
command: "--chain /node/chain-specs/acurast-kusama-parachain-2239-raw.json \
--base-path /node/data \
--bootnodes /ip4/82.220.38.222/tcp/30334/ws/p2p/12D3KooWKrSDeVQ4tVQ1eGjqVAhAW3cgMQFHNCBbJrpmupEvdD4A \
--port 30334 \
--rpc-port 9934 \
--rpc-external \
--rpc-methods safe \
--rpc-cors all \
--database=rocksdb \
--pruning=archive"
ports:
- "30334:30334"
- "9934:9934"
volumes:
- ./:/node
logging:
options:
max-size: "10m"
max-file: "3"
The configuration above will start the Acurast node with the following options:
--chain
- specifies the chain spec file--base-path
- specifies the base path for the node data--bootnodes
- specifies the bootnodes to connect to--port
- specifies the p2p port for the node--rpc-port
- specifies the RPC port for the node--rpc-external
- allows external access to the RPC interface--rpc-methods safe
- allows only safe RPC methods--rpc-cors all
- allows all CORS requests--database=rocksdb
- specifies the database type--pruning=archive
- specifies the pruning mode, changearchive
to the number of blocks to keep if you want to prune the database
Start the node
In acurast-node
folder and run the following command:
docker compose up -d
This will start the Acurast node in detached mode. You can check the logs by running:
docker compose logs -f