NebulousLabs / docker-siastream

The official docker image for SiaStream.

Home Page:https://siastream.tech/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SiaStream

Build Status Docker Pulls License

Supported Tags

  • latest: The latest official binary release.

Usage

SiaStream comes packaged with a small Sia node which it will use internally. This node needs to sync the blockchain in order for SiaStream to work. This takes a significant amount of time and we don't want to lose the data between SiaStream restarts. That's why we want to store the synced data in a dedicated directory that can be mapped to a directory outside of docker via a volume.

Let's create that directory:

mkdir sia-data

Here is how you start SiaStream:

docker run \
  --detach \
  --volume $(pwd)/sia-data:/sia \
  --publish 127.0.0.1:3000:3000 \
  --name siastream-container \
   nebulouslabs/siastream

In case you're not starting SiaStream from the directory that holds your sia-data (or the directory is called something else), make sure to replace $(pwd)/sia-data in the command above with the full path to your sia-data.

You can also choose to run SiaStream on a different port by changing the first 3000 on the --publish 127.0.0.1:3000:3000 line or to expose SiaStream on your network by publishing to your local IP address (for LAN access) or to 0.0.0.0 for access from all networks.

Health monitoring

The siastream container is equipped with a HEALTHCHECK and is labelled as autoheal=true. This allows us to use Will Farrel's autoheal container in order to restart the siastream container if it becomes unhealthy.

All you need to do is start the autoheal container alongside siastream:

docker run -d \
    --name autoheal \
    --restart=always \
    -e AUTOHEAL_CONTAINER_LABEL=all \
    -v /var/run/docker.sock:/var/run/docker.sock \
    willfarrell/autoheal

About

The official docker image for SiaStream.

https://siastream.tech/

License:MIT License


Languages

Language:Shell 69.7%Language:Dockerfile 30.3%