Last active
June 2, 2022 12:12
-
-
Save bartprokop/95de656b54f2e70b2ef120e9f91f1fac to your computer and use it in GitHub Desktop.
Storj Node on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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