docker build --tag ledger-web .
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
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 the server with npm start
and open http://localhost:3000 in your browser.