Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ad-si/docker-ledger-web
Dockerfile for node-ledger-web
https://github.com/ad-si/docker-ledger-web
dockerfile ledger ledger-cli ledger-web
Last synced: 9 days ago
JSON representation
Dockerfile for node-ledger-web
- Host: GitHub
- URL: https://github.com/ad-si/docker-ledger-web
- Owner: ad-si
- Created: 2017-04-02T14:25:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T22:17:23.000Z (almost 5 years ago)
- Last Synced: 2024-05-02T05:41:06.195Z (8 months ago)
- Topics: dockerfile, ledger, ledger-cli, ledger-web
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Docker Ledger Web
## Build
```sh
docker build --tag ledger-web .
```## Setup
Mount your local ledger files, expose the server ports,
start the container and log into it.```sh
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:
```sh
cp sample-config.json config.json
apt-get install vim
vim config.json
```Or create a new config file:
```sh
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.
```json
{
"binary": "ledger",
"file": "/ledger-files/main.ledger"
}
```## Start
Start the server with `npm start`
and open http://localhost:3000 in your browser.## References
- https://github.com/scottbrown/dockerfiles/blob/master/ledger/Dockerfile
- https://hub.docker.com/r/rymitch/docker-ledger/~/dockerfile
- https://hub.docker.com/r/noazark/ledger/~/dockerfile
- https://hub.docker.com/r/vlastv/ledger/~/dockerfile