Skip to content

Instantly share code, notes, and snippets.

@ImanMousavi
Forked from Jorijn/docker-compose.yml
Created May 21, 2022 10:57
Show Gist options
  • Save ImanMousavi/1b4a4cc6e8c47ba46455e4e1135abd9d to your computer and use it in GitHub Desktop.
Save ImanMousavi/1b4a4cc6e8c47ba46455e4e1135abd9d to your computer and use it in GitHub Desktop.
Docker Compose file to be used in combination with https://gist.github.com/Jorijn/141f49dd0c69901f28215893d5900bca. Place this in the cloned root of the blockbook project and run `docker-compose up -d`. Configuration sample: https://gist.github.com/Jorijn/c0f5d3daf6ab6d35ac25b47c2a5be331
version: "3"
services:
blockbook:
container_name: blockbook
restart: always
build: .
entrypoint:
- /go/src/blockbook/blockbook
- -sync
- -blockchaincfg=/home/blockbook/cfg/cfg.json
- -workers=10
- -logtostderr
- -internal=0.0.0.0:9030
- -public=0.0.0.0:9130
- -datadir=/home/blockbook/data
ports:
- "9030:9030"
- "9130:9130"
volumes:
- "<pick something>/data/blockbook/cfg:/home/blockbook/cfg"
- "<pick something>/data/blockbook/data:/home/blockbook/data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment