Blockbook Dockerfile for Bellcoin
docker run \
--hostname blockbook \
-it \
-v "$(PWD)/db:/blockbook/db" \
-p 9152:9152 \
-e RPC_USER=user \
-e RPC_PASS=pass \
-e RPC_HOST=127.0.0.1 \
-e RPC_PORT=25252 \
-e MQ_PORT=38352 \
-e TZ=Asia/Tokyo \
bellflower2015/blockbook-bellcoin
Blockbook config directory is /blockbook/config
and database directory is /blockbook/db
.
You can set environment variables RPC_USER
, RPC_PASS
, RPC_HOST
, RPC_PORT
, and MQ_PORT
, and also set TZ
to change timezone.
If you want to change hostname displayed, you can set it by --hostname
.
Get source code and make docker image:
git clone https://github.com/bellcoin-org/docker-blockbook-bellcoin.git
cd docker-blockbook-bellcoin
docker build -t blockbook-bellcoin .
Docker images are based on Debian 9 (Stretch).
Boot from the built image as described below:
docker run [options] blockbook-bellcoin