ad-si / docker-ledger-web

Dockerfile for node-ledger-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Ledger Web

Build

docker build --tag ledger-web .

Setup

Mount your local ledger files, expose the server ports, start the container and log into it.

docker run \
  --interactive \
  --tty \
  --rm \
  --volume $PWD:/ledger-files \
  --publish 3000:3000 3001:3001 \
  --name ledger-web \
  ledger-web \
  bash

Configuration

Copy and edit the sample config:

cp sample-config.json config.json
apt-get install vim
vim config.json

Or create a new config file:

cat > config.json

Specify the ledger binary path. Leave it as ledger if it's already on your $PATH. Otherwise, specify the absolute path.

e.g.

{
  "binary": "ledger",
  "file": "/ledger-files/main.ledger"
}

Start

Start the server with npm start and open http://localhost:3000 in your browser.

References

About

Dockerfile for node-ledger-web


Languages

Language:Dockerfile 100.0%