项目作者: nexbitproject

项目描述 :
Full Dockerized Bitcoin Node.
高级语言: Shell
项目地址: git://github.com/nexbitproject/bitcoind.git
创建时间: 2019-10-16T12:28:47Z
项目社区:https://github.com/nexbitproject/bitcoind

开源协议:

下载


docker-bitcoind

Docker Stars
Docker Pulls

A Docker configuration with sane defaults for running a fully-validating
Bitcoin node, based on Alpine Linux.

Warning: older versions of this Dockerfile were based on Ubuntu and
included all build dependencies, but due to the ridiculous size of the
resulting image I’ve moved to binaries downloaded to Alpine Linux. If I’ve
screwed up your development workflow somehow, file an issue and we’ll get it
fixed.

Quick start

Requires that Docker be installed on the host machine.

  1. # Create some directory where your bitcoin data will be stored.
  2. $ mkdir /home/youruser/bitcoin_data
  3. $ docker run --name bitcoind -d \
  4. --env 'BTC_RPCUSER=foo' \
  5. --env 'BTC_RPCPASSWORD=password' \
  6. --env 'BTC_TXINDEX=1' \
  7. --volume /home/youruser/bitcoin_data:/root/.bitcoin \
  8. -p 127.0.0.1:8332:8332 \
  9. --publish 8333:8333 \
  10. nexbitio/bitcoind

Configuration

A custom bitcoin.conf file can be placed in the mounted data directory.
Otherwise, a default bitcoin.conf file will be automatically generated based
on environment variables passed to the container:

name default
BTC_RPCUSER btc
BTC_RPCPASSWORD changeme
BTC_RPCPORT 8332
BTC_RPCALLOWIP ::/0
BTC_RPCCLIENTTIMEOUT 30
BTC_DISABLEWALLET 1
BTC_TXINDEX 0
BTC_TESTNET 0
BTC_DBCACHE 0
BTC_ZMQPUBHASHTX tcp://0.0.0.0:28333
BTC_ZMQPUBHASHBLOCK tcp://0.0.0.0:28333
BTC_ZMQPUBRAWTX tcp://0.0.0.0:28333
BTC_ZMQPUBRAWBLOCK tcp://0.0.0.0:28333

https://nexbit.io