A Docker image for bitcoind
A Docker image for bitcoind to easily start a Bitcoin node.
Install Docker and Docker Compose by using the link below https://docs.docker.com/engine/install
Clone project
git clone https://github.com/milkyonehq/bitcoind-docker.gitStart the Bitcoin node with Docker Compose
docker compose up -dStop the Bitcoin node with Docker Compose
docker compose downStop the Bitcoin node and delete its volume with Docker Compose
docker compose down --volumes
⚠️ Warning: This will delete all persistent data stored in the Docker volume.
The bitcoind container can be configured with the environment variables below.
| Variable | Description | Default Value | 
|---|---|---|
| DB_CACHE | Size of database cache (in MB). | 450 | 
| MAX_MEM_POOL | Maximum memory usage (in MB) for the transaction memory pool. | 300 | 
| MAX_ORPHAN_TX | Maximum number of orphan transactions to keep in memory. | 100 | 
| PRUNE | Whether to enable pruning (1 for enabled, 0 for disabled). | 0 | 
| MAX_CONNECTIONS | Maximum number of inbound/outbound connections. | 125 | 
| MAX_UPLOAD_TARGET | Maximum upload target bandwidth (in MB/s). | 0 | 
| CHAIN | Blockchain chain (e.g., main, testnet). | main | 
| RPC_ALLOW_IP | IP address or range to allow RPC connections from. | "" | 
| RPC_BIND | IP address to bind RPC server to. | 127.0.0.1 | 
| RPC_PASSWORD | Password for RPC authentication. | "" | 
| RPC_USER | Username for RPC authentication. | bitcoin | 
| RPC_ENABLED | Whether RPC server is enabled (1 for enabled, 0 for disabled). | 0 | 
Bitcoind Docker is distributed under the Apache 2.0 License.
Thanks goes to these wonderful people (emoji key):
| Lorenzo Carneli 💻 🤔 | 
This project follows the all-contributors specification. Contributions of any kind welcome!
🚀 Don't forget to put a ⭐️ on our repositories!