https://github.com/bitaps-com/bitcoin-core
Bitcoin core docker image
https://github.com/bitaps-com/bitcoin-core
Last synced: 4 months ago
JSON representation
Bitcoin core docker image
- Host: GitHub
- URL: https://github.com/bitaps-com/bitcoin-core
- Owner: bitaps-com
- Created: 2018-12-27T20:58:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-25T20:23:23.000Z (over 3 years ago)
- Last Synced: 2025-05-18T16:08:47.313Z (about 1 year ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bitcoin-core
Bitcoin core docker image
Bitcoin core server builds (no GUI, no wallet)
Builds: bitcoin-core:latest - v0.20.0 bitcoin-core:v0.20.0
How to use:
Create persistent volume for blockchain
$ docker volume create bitcoin-core-data
Create Dockerfile
FROM bitaps/bitcoin-core:latest
RUN mkdir /data COPY bitcoin.conf .
ENTRYPOINT ["bitcoind", "-conf=/bitcoin.conf"]
Create bitcoin.conf file in same folder
datadir=/data
server=1
upnp=1
listen=1
txindex=1
printtoconsole=1
maxconnections=100
upnp=1
externalip=SERVER_IP
bind=SERVER_IP:8333
rpcuser=USER_NAME
rpcpassword=PASSWORD
rpctimeout=30
rpcthreads=200
rpcallowip=RPC_ALLOWED_IP
rpcbind=SERVER_IP:8332
rpcbind=127.0.0.1:8332
maxorphantx=1000
maxmempool=500
zmqpubhashblock=tcp://SERVER_IP:8900
zmqpubrawtx=tcp://SERVER_IP:8900
Build docker image:
$ docker build -t bitcoin-core-mainnet .
Start container with auto start:
$ docker run --name bitcoin-core-mainnet \
--net=host \
--restart=always \
-v bitcoin-core-data:/data \
-it bitcoin-core-mainnet