bitcoin-docker
Container to run Bitcoin Core in full or pruned mode.
This container can be used to run Bitcoin Core in either an external mode or in an internal (pruned) mode. Containers in external mode synchronize with the Bitcoin network and broadcast transactions from internal mode containers. Containers in internal mode are isolated from the public internet and communicate over an internal network with external mode containers. The goal is to make wallets safer by keeping them isolated from the public internet.
Environment variable | Description |
---|---|
EXTERNAL_PEER |
Hostname of an external mode container that an internal mode container should connect to. |
RPC_USERNAME |
Username for RPC authentication. |
RPC_PASSWORD |
Password for RPC authentication. |
WEBHOOK_ENDPOINT |
Endpoint to receive JSON POST requests of Bitcoin Core notifications. |
FORWARD_BITCOIN_RPC_PORT |
Public port to the Bitcoin Core RPC server. |
- Start by cloning this repository to your machine
- Copy the .env.example file to .env and configure it.
Build the application. It will copy the .env.example file to .env if it could not be found.
make setup
Start the application.
make up
Stop the application.
make down
Interact with the application.
make shell