Skip to content

Instantly share code, notes, and snippets.

@theSoberSobber
Created July 5, 2025 19:19
Show Gist options
  • Save theSoberSobber/ca1b6a782ac8947012efeabfee5b54ed to your computer and use it in GitHub Desktop.
Save theSoberSobber/ca1b6a782ac8947012efeabfee5b54ed to your computer and use it in GitHub Desktop.
docker compose for pruned bitcoin node using bitcoind image for local usage
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
@theSoberSobber
Copy link
Author

for a full node (~600GB of ledger)

services:
  bitcoind:
    image: ruimarinho/bitcoin-core:latest
    container_name: bitcoin-node
    restart: always
    ports:
      - "8332:8332"     # RPC only
    volumes:
      - bitcoin-data:/home/bitcoin/.bitcoin
    command:
      -printtoconsole
      -server=1
      -txindex=1
      -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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment