Created
July 5, 2025 19:19
-
-
Save theSoberSobber/ca1b6a782ac8947012efeabfee5b54ed to your computer and use it in GitHub Desktop.
docker compose for pruned bitcoin node using bitcoind image for local usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
bitcoind: | |
image: ruimarinho/bitcoin-core:latest | |
container_name: bitcoin-node | |
restart: always | |
ports: | |
- "8332:8332" # RPC port (keep for your scripts) | |
volumes: | |
- bitcoin-data:/home/bitcoin/.bitcoin | |
command: | |
- bitcoind | |
- -printtoconsole | |
- -server=1 | |
- -txindex=0 | |
- -prune=550 | |
- -rpcallowip=0.0.0.0/0 | |
- -rpcbind=0.0.0.0 | |
- -rest=1 | |
- -listen=1 | |
- -dns=1 | |
networks: | |
- bitcoin-net | |
volumes: | |
bitcoin-data: | |
networks: | |
bitcoin-net: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for a full node (~600GB of ledger)