Using the ZetaChain BTC docker image is pretty straightforward. You simply run the image with a few basic environment variables and then wait until it syncs.
TestNet
Testnet Environment Variables and Docker Image Name
bitcoin_username=whateveryouwantbitcoin_password=whateveryouwantNETWORK_HEIGHT_URL=https://blockstream.info/testnet/api/blocks/tip/heightWALLET_NAME=whateveryou wantWALLET_ADDRESS=your tss BTC addressIMAGE=**zetachain/bitcoin:61-testnet**Docker Compose Example:
version: '3'
services:
bitcoin:
image: zetachain/bitcoin:61-testnet
environment:
- BITCOIN_USERNAME=whateveryouwant
- BITCOIN_PASSWORD=whateveryouwant
- NETWORK_HEIGHT_URL=https://blockstream.info/testnet/api/blocks/tip/height
- WALLET_NAME=whateveryouwant
- WALLET_ADDRESS=yourtssBTCaddress
volumes:
- bitcoin_data:/root/.bitcoin/
ports:
- 18332:18332
volumes:
bitcoin_data:
MainNet
Mainnet Environment Variables and Docker Image Name
bitcoin_username=whateveryouwantbitcoin_password=whateveryouwantNETWORK_HEIGHT_URL-https://blockstream.info/api/blocks/tip/heightWALLET_NAME=whateveryou wantWALLET_ADDRESS=your tss BTC addressIMAGE=**zetachain/bitcoin:22-mainnet**Docker Compose Example:
version: '3'
services:
bitcoin:
image: zetachain/bitcoin:22-mainnet
environment:
- BITCOIN_USERNAME=whateveryouwant
- BITCOIN_PASSWORD=whateveryouwant
- NETWORK_HEIGHT_URL=https://blockstream.info/api/blocks/tip/height
- WALLET_NAME=whateveryouwant
- WALLET_ADDRESS=yourtssBTCaddress
volumes:
- bitcoin_data:/root/.bitcoin/
ports:
- 8332:8332
volumes:
bitcoin_data:
Commands for Docker-Compose:
docker-compose up for foreground and docker-compose up -ddocker ps and get the container id.docker logs {contianer_id}Content type
Image
Digest
sha256:a6bbc1020…
Size
138.5 MB
Last updated
over 1 year ago
docker pull zetachain/bitcoin