coolify/templates/compose/bitcoin-core.yaml

29 lines
1,009 B
YAML
Raw Normal View History

2024-10-03 12:07:58 +00:00
# documentation: https://hub.docker.com/r/ruimarinho/bitcoin-core/
2024-10-03 11:13:25 +00:00
# slogan: A self-hosted Bitcoin Core full node.
# category: backend
# tags: cryptocurrency, node, blockchain, bitcoin
2024-10-03 11:13:25 +00:00
# logo: svgs/bitcoin.svg
services:
bitcoin-core:
2024-10-28 12:21:25 +00:00
image: ruimarinho/bitcoin-core:latest
2024-10-03 11:13:25 +00:00
environment:
2024-10-28 12:21:25 +00:00
- 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}
2024-10-03 11:13:25 +00:00
volumes:
2024-10-28 12:21:25 +00:00
- blockchain-data:/home/bitcoin/.bitcoin
command:
[
"-datadir=/home/bitcoin/.bitcoin",
"-rpcbind=127.0.0.1", # only allow local connections
"-rpcallowip=127.0.0.1",
"-rpcuser=${BITCOIN_RPCUSER}",
"-rpcpassword=${SERVICE_PASSWORD_PASSWORD64}",
"-printtoconsole=${BITCOIN_PRINTTOCONSOLE}",
"-txindex=${BITCOIN_TXINDEX}",
"-server=${BITCOIN_SERVER}"
]