Skip to content

Latest commit

 

History

History
62 lines (55 loc) · 1.68 KB

README.md

File metadata and controls

62 lines (55 loc) · 1.68 KB

Coingraph Daemon

A daemon for coingraph who takes care of

  • collecting data from external sources
  • organizing the data in the local database
  • emitting historical and live data via socket
  • exposing an API

Dependencies

npm install

Configuration

Copy .env.template to .env. Eventually change default preferences.

Usage

node app.js

Or with custom params

node app.js \
    --db db.json \
    --crypto bitcoin,ethereum \
    --timeout 180 \
    --api-port 8080 \
    --io-port 8081

Info: custom params overwrite default preferences in .env.

Docker

GitHub release (latest SemVer including pre-releases) Build & Push Docker Image Docker Pulls

Build image from source
docker build -t ghcr.io/derogab/coingraph-daemon .
Start container
docker run -d \
    -p 8080:8080 \
    -p 8081:8081 \
    -v /path/to/host/data:/usr/src/app/data \
    ghcr.io/derogab/coingraph-daemon

Or with custom params

docker run -d \
    -p 8080:8080 \
    -p 8081:8081 \
    -v /path/to/host/data:/usr/src/app/data \
    ghcr.io/derogab/coingraph-daemon \
    --db db.json \
    --crypto bitcoin,ethereum \
    --timeout 180 \
    --api-port 8080 \
    --io-port 8081