fix bitcoin core

This commit is contained in:
peaklabs-dev
2024-10-28 13:21:25 +01:00
parent a61f99f338
commit 294bc91174
2 changed files with 8 additions and 9 deletions

View File

@@ -5,16 +5,15 @@
services:
bitcoin-core:
image: 'ruimarinho/bitcoin-core:latest'
image: ruimarinho/bitcoin-core:latest
environment:
- 'BITCOIN_RPCUSER=${BITCOIN_RPCUSER:-bitcoinuser}'
- 'BITCOIN_RPCPASSWORD=${SERVICE_PASSWORD_PASSWORD64}'
- 'BITCOIN_PRINTTOCONSOLE=${BITCOIN_PRINTTOCONSOLE:-1}'
- 'BITCOIN_TXINDEX=${BITCOIN_TXINDEX:-1}'
- 'BITCOIN_SERVER=1'
- BITCOIN_RPCUSER=${BITCOIN_RPCUSER:-bitcoinuser}
- BITCOIN_RPCPASSWORD=${SERVICE_PASSWORD_PASSWORD64}
- BITCOIN_PRINTTOCONSOLE=${BITCOIN_PRINTTOCONSOLE:-1}
- BITCOIN_TXINDEX=${BITCOIN_TXINDEX:-1}
- BITCOIN_SERVER=${BITCOIN_SERVER:-1}
volumes:
- '/mnt/blockchain_data:/home/bitcoin/.bitcoin' # here use your own path, where you want to store the blockchain data
network_mode: "host" # use host network for secure connection only through localhost
- blockchain-data:/home/bitcoin/.bitcoin
command:
[
"-datadir=/home/bitcoin/.bitcoin",