bitcoinsv/minerid

By bitcoinsv

Updated over 3 years ago

Image
0

10K+

bitcoinsv/minerid repository overview

MinerId

More details available in the BRFC Spec for Minerid.

The code is open source and can be found here.

Usage

Pull image
$ docker pull bitcoinsv/minerid:1.1.1
Run

To run MinerId you need to specify which network to run on (mainnet="livenet" | testnet="testnet" | regtest="regtest"), and if regtest, then you will need to specify the Bitcoin RPC credentials in order to MinerId to have access to it.

By default, it will run on regtest:

docker run --publish 9002:9002 \
    --name minerid \
    --env NODE_CONFIG='{"bitcoin":{"rpcHost":"host.docker.internal"}}' \
    --detach \
    bitcoinsv/minerid:1.1.1
Volumes

Since MinerId is essentially a service built around a private key (MinerId) we recommend running the container with volumes in order to avoid the situation where the container falls over for some reason and the private key is lost. In the environment variables, we are specifying which network (livenet (or mainnet), testnet, or regtest) and what Bitcoin node RPC parameters and credentials to use by passing them to NODE_CONFIG.

Example docker-compose file:

version: "3.8"
services:
  minerid:
    image: bitcoinsv/minerid:1.1.1
    ports:
      - 9002:9002
    restart: always
    environment:
      NODE_CONFIG: '{
        "bitcoin": {
        "rpcHost":"host.docker.internal"
        },
        "network": "regtest"
        }'
    volumes:
      - minerid:/root/.keystore
      - minerid:/root/.minerid-client
volumes:
  minerid:
    external: false

Change any settings in the docker-compose to fit your configuration, then run the container.

$ docker-compose up -d

Tag summary

Content type

Image

Digest

sha256:7e068754d

Size

384.8 MB

Last updated

over 3 years ago

docker pull bitcoinsv/minerid:2.0.0