Skip to content

ad-si/docker-ledger-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published