Giter Site home page Giter Site logo

lakemike / docker-siastream Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nebulouslabs/docker-siastream

0.0 0.0 0.0 10 KB

The official docker image for SiaStream.

Home Page: https://siastream.tech/

License: MIT License

Dockerfile 30.03% Shell 69.97%

docker-siastream's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.