Web based monitoring dashboard for Sia hosts. Track revenue and contracts
100K+
A simple and powerful dashboard for Sia network Hosts. Combines data for your node with data from the blockchain to provide accurate and powerful financial and health statistics for hosts.
cd to the directory that the dashboard binary is located in./dashboard--data-pathChanges the path that host data is stored
dashboard --data-path /home/ubuntu/data
--listen-addrChanges the address and port that the dashboard will respond to
dashboard --listen-addr localhost:8885
--sia-addrChanges the address and port of the Sia API the dashboard accesses
dashboard --sia-addr localhost:9980
The dashboard needs access to a running Sia node. To run the dashboard in a docker container requires using host networking for Sia and Dashboard or creating a separate docker network so containers can be accessed by name.
1. Change Sia to use host networking mode using --network="host"
docker run -d \
--name sia \
--network="host"\
-v $(PWD)/data:/sia-data \
siacentral/sia
2. Start the dashboard container using the same --network="host"
The Sia container name from the last step is sia to point the dashboard to the proper location we use -e SIA_API_ADDR="sia:9980"
docker run -d \
--name host-dashboard \
--network="host" \
-v $(PWD)/data:/data \
siacentral/host-dashboard
1. Create a new docker network
docker network create sia-network
2. Add sia container to the new network by adding the --network sia-network flag to your docker run command
docker run -d \
--name sia \
--network="sia-network"\
-v $(PWD)/data:/sia-data \
-p 127.0.0.1:9980:9980 \
-p 9981:9981 \
-p 9982:9982 \
siacentral/sia
3. Start the dashboard container passing in the SIA_API_ADDR environment variable using the Sia container's name
The Sia container name from the last step is sia to point the dashboard to the proper location we use -e SIA_API_ADDR="sia:9980"
docker run -d \
--name host-dashboard \
--network="sia-network" \
-p 8884:8884 \
-v $(PWD)/data:/data \
-e SIA_API_ADDR="sia:9980" \
siacentral/host-dashboard
Below is a docker-compose example service to run Sia and Host Dashboard. Replace SIA_API_PASSWORD and SIA_WALLET_PASSWORD with your own passwords and the volume mounts with the correct volume paths
version: '3.0'
services:
sia-host:
image: siacentral/sia:latest
environment:
- SIA_API_PASSWORD=asecureapipassword
- SIA_WALLET_PASSWORD=asecurewalletpassword
volumes:
- ./sia-data:/sia-data
- ./renter-data:/renter-data
ports:
- "127.0.0.1:9980:9980"
- "9981:9981"
- "9982:9982"
- "9983:9983"
restart: unless-stopped
host-dashboard:
image: siacentral/host-dashboard:latest
depends_on:
- sia-host
links:
- sia-host
environment:
- SIA_API_ADDR=sia-host:9980
volumes:
- ./dashboard-data:/data
ports:
- "8884:8884"
restart: unless-stopped
make lint
make run
make build
make release
Content type
Image
Digest
Size
3 MB
Last updated
over 4 years ago
docker pull siacentral/host-dashboard