All apps · 0 apps
StorjMonitor
Docker app from JCloud's Repository
Overview
Readme
View on GitHubThe Storj Share Daemon+CLI (https://github.com/Storj/storjshare-daemon).
WHAT and WHY
This image is a dirty fork of the official repo, adding multiple node creation and optional deletion of log files. Storj daemon supports running multiple nodes, up to the number of CPU-threads on your system (hard-limit per container). This fork adds simple logic and variables to build and start multiple minning-nodes in a loop.
Deletion of the daemon's log files also added by this fork. By default logs are kept untouched, however if the variable DEL_LOGS is set to 'TRUE' then a second variable DEL_LOGS_DAYS=INT (INT >= 1) is used to specify how many days of logs to keep. Log file pruning occurs at the start of the container - no other schedules.
docker pull zugz/r8mystorj:latest
Local Build
Alternatively, build the container locally:
cd /path/to/your/buildarea
git clone https://github.com/Jcloud67/docker-storjshare-cli
docker build -t Jcloud67/storjshare-cli:latest docker-storjshare-cli/
Run Daemon
Start the daemon by using this command (optional args shown in square brackets with default values):
docker run --detach \
--name mystorjdaemon \
--restart=always \
-v /path/to/storjdata:/storj \
-p 4000-4003:4000-4003 \
-e WALLET_ADDRESS=your_ERC20_wallet_address \
[-e DAEMONADDRESS=127.0.0.1] \
[-e DATADIR=/storj] \
[-e SHARE_SIZE=1TB] \ <-- Consider, a LARGE # here with multiple nodes, do you have the space? Could also change these values later in each config file.
[-e RPCADDRESS=0.0.0.0] \ <-- Recomend DynamicDNS used here.
[-e MONITORKEY= ] \ <-- storjstat.com user API monitor-key here.
[-e NODE_COUNT=0 ] \ <-- How many additional minning-nodes to start.
[-e NODE_DIR=Node_ ] \
[-e USE_HOSTNAME_SUFFIX=FALSE] \
[-e DEL_LOGS_DAYS=32 ] \ <-- Keep this many days; older is deleted. Valid is >=1.
[-e DEL_LOGS=FALSE] \ <-- DEL_LOGS=TRUE to enable.
Jcloud67/storjshare-cli:latest
For Copy/Paste purposes:
docker run --detach \
--name mystorjdaemon \
--restart=always \
-v /path/to/storjdata:/storj \
-p 4000-4003:4000-4003 \
-e WALLET_ADDRESS=your_ERC20_wallet_address \
[-e DAEMONADDRESS=127.0.0.1] \
[-e DATADIR=/storj] \
[-e SHARE_SIZE=1TB] \
[-e RPCADDRESS=0.0.0.0] \
[-e MONITORKEY= ] \
[-e NODE_COUNT=0 ] \
[-e NODE_DIR=Node_ ] \
[-e USE_HOSTNAME_SUFFIX=FALSE] \
[-e DEL_LOGS_DAYS=32 ] \
[-e DEL_LOGS=FALSE] \
Jcloud67/storjshare-cli:latest
Status
Check the status of the daemon by using this command:
docker exec mystorjdaemon storjshare status
The output should look something like this:
┌─────────────────────────────────────────────┬─────────┬──────────┬──────────┬─────────┬───────────────┬─────────┬──────────┬───────────┬──────────────┐
│ Share │ Status │ Uptime │ Restarts │ Peers │ Allocs │ Delta │ Port │ Shared │ Bridges │
├─────────────────────────────────────────────┼─────────┼──────────┼──────────┼─────────┼───────────────┼─────────┼──────────┼───────────┼──────────────┤
│ abcdefabcdefabcdefabcdefabcdefabcdefabcd │ running │ 4d 22h … │ 0 │ 243 │ 30 │ 20ms │ 1234 │ 15.00MB │ connected │
│ → /storj/share │ │ │ │ │ 15 received │ │ (Tunnel) │ (1%) │ │
└─────────────────────────────────────────────┴─────────┴──────────┴──────────┴─────────┴───────────────┴─────────┴──────────┴───────────┴──────────────┘
StorjMonitor
Storjstat.com monitor script is pre-installed, the API-Key can be given at time of container creation using ENV variable MONITORKEY. API key can be added after creation of the Container using the following commands: (interactively)
docker exec -ti mystorjdaemon /bin/sh
sed -i "s/YOUR-TOKEN-HERE/MONITOR_KEY/" /StorjMonitor/storjMonitor.js
exit
Stop Daemon
Stop the daemon by using these commands:
docker stop mystorjdaemon
docker rm mystorjdaemon
Versions
Check versions for npm, node and storjshare with:
docker run --rm -ti --entrypoint /versions zugz/r8mystorj:latest
node version:
v6.7.0
npm version:
{ npm: '3.10.3',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '57.1',
modules: '48',
node: '6.7.0',
openssl: '1.0.2k',
uv: '1.9.1',
v8: '5.1.281.83',
zlib: '1.2.11' }
storjshare version:
daemon: 5.3.0, core: 8.5.0, protocol: 1.2.0
Or run an interactive shell:
docker run --rm -ti --entrypoint /bin/sh zugz/r8mystorj
Or connect to an existing container:
docker exec -ti nameofyourcontainer /bin/sh
Or to check proccess running in a container:
docker exec nameofyourcontainer ps -a
And now the punch-line
It's a good thing I didn't tell him about the dirty knife.
Install StorjMonitor on Unraid in a few clicks.
Find StorjMonitor in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Download Statistics
Total Downloads Over Time
Related apps
Explore more like this
Explore allLinks
Details
zugz/r8mystorj:latestRuntime arguments
- Network
bridge- Privileged
- false
Template configuration
Enter location of your storj share folder on unRAID host.
- Target
- /storj
- Value
- /mnt/user/storj
Value should be changed to your Wallet address you use for payout.
- Target
- WALLET_ADDRESS
Example: 500GB, 1TB, 8TB, for each node you start. MAX SIZE=8TB per node.
- Default
- 100GB
- Value
- 100GB
Your DynamicDNS or external DNS address here. If you need a DDNS service, a free one: is duckdns.org
- Default
- 0.0.0.0
- Value
- 0.0.0.0
API-Key for Storjstat.com.
- Target
- STORJ_MONITOR_API_KEY
Storj daemon can run multiple farming nodes at once. The maximum number of nodes per container is number of threads the CPU has.
- Target
- NODE_COUNT
- Default
- 0
- Value
- 0
For multiple nodes this builds your directory, example /storj/thisNameHere#/
- Target
- NODE_DIR
- Default
- Node_
- Value
- Node_
TCP NAT tunnel on/off switch
- Target
- TUNNELING_REQUIRED
- Default
- TRUE
- Value
- FALSE
Delete Storj logs on/off switch. Enable == 'TRUE'
- Target
- DEL_LOGS
- Default
- FALSE
- Value
- FALSE
How many days worth of logs to keep. Deletes everything greater than.
- Target
- DEL_LOGS_DAYS
- Default
- 7
- Value
- 7