Category : Docker Compose Files
Storj V3 is now in BETA and recruiting Storage Node operators. Since V3 of Storj, Docker is used exclusively to wrap up creating a new Storage Node into a simple, manageable container.
You’ll need to see the official docs for creating your identity certificates, but when it comes to creating your docker environment it couldn’t be more simple than using docker-compose. If you haven’t got docker-compose installed then check out this blog post.
Create a new folder and a docker-compose.yml with the below content.
mkdir storj vi storj/docker-compose.yml
version: '3' services: storagenode: image: storjlabs/storagenode:beta restart: unless-stopped ports: - 28967:28967 volumes: - ./config/identity:/app/identity - ./data:/app/config environment: - WALLET=0x123456789 - EMAIL=EMAIL - ADDRESS=external.url:28967 - BANDWIDTH=10TB - STORAGE=1TB - STORJ_LOG_LEVEL=info watchtower: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - WATCHTOWER_CLEANUP=true
You’ll need to fill out the environment details to match your requirements, especially the WALLET and ADDRESS. You may want to redirect the volume elements to match your environment – the /app/config path should point to the disk that you’d like to use for storage (I know, the name is confusing) and the /app/identity path should point to your Storj identity certificates.
Run docker-compose up -d to fetch the images from the docker hub and create your Storage Node instance.