Skip to content

Instantly share code, notes, and snippets.

@bartprokop
Last active June 2, 2022 12:12
Show Gist options
  • Save bartprokop/95de656b54f2e70b2ef120e9f91f1fac to your computer and use it in GitHub Desktop.
Save bartprokop/95de656b54f2e70b2ef120e9f91f1fac to your computer and use it in GitHub Desktop.
Storj Node on Arch Linux
# Prerequisites: docker installed and operational.
# Get latest image for node software.
docker pull storjlabs/storagenode:latest
# Create reasonable place for node storage and identity
mkdir -p /srv/storj/identity
mkdir -p /srv/storj/storage
docker run --rm -e SETUP="true" \
--mount type=bind,source=/srv/storj/identity,destination=/app/identity \
--mount type=bind,source=/srv/storj/storage,destination=/app/config \
--name storagenode storjlabs/storagenode:latest
docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28967:28967/tcp \
-p 28967:28967/udp \
-p 127.0.0.1:14002:14002 \
-e WALLET="0xAYOUR_ETHEREUM_ADDRESS" \
-e EMAIL="YOUR@EMAIL" \
-e ADDRESS="YOUR_IP:28967" \
-e STORAGE="500GB" \
--mount type=bind,source=/srv/storj/identity,destination=/app/identity \
--mount type=bind,source=/srv/storj/storage,destination=/app/config \
--name storagenode storjlabs/storagenode:latest
# Restarting the node
docker restart -t 300 storagenode
# Stopping and upgrading the node
docker stop -t 300 storagenode
docker rm storagenode
docker pull storjlabs/storagenode:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment