Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

storewise/docker-sia

Repository files navigation

Docker Sia

Generic badge Generic badge Generic badge GPLv3 CircleCI branch

  • Project: StoreWise
  • Author: José Antonio Perdiguero López
  • Status: Production

Docker image for Sia node with a useful wrapper to provide multiple features such as automatic wallet unlocking, consensus database bootstrapping...

Getting started

To run Sia you need previously to install the requirements and you can either use public docker image or build it from sources.

Requirements

  1. Docker: Install it following official docs.

Usage

You can use public docker image to run the Sia service:

docker run -p 8000:8000 storewise/docker-sia:latest start

To keep node your node data you can mount data volume as:

docker run -p 8000:8000 -v data:/srv/apps/sia/data storewise/docker-sia:latest start

Automatic wallet unlocking

Wallet unlocking will be done after node finishes starting. It is necessary to define the wallet primary seed under UNLOCK_WALLET environment variable and to use --unlock flag.

docker run -p 8000:8000 -e UNLOCK_WALLET="<primary seed>" storewise/docker-sia:latest start --unlock

Consensus database bootstrapping

At start you will be asked for bootstrapping consensus database but it could be declared using --(no-)bootstrap flags to avoid manual interactions.

docker run -p 8000:8000 storewise/docker-sia:latest --bootstrap
docker run -p 8000:8000 storewise/docker-sia:latest --no-bootstrap

License

GNU GPL v3