Giter VIP home page Giter VIP logo

docker-ckpool's Introduction

docker-ckpool

Run your own ckpool solo instance in a docker container

First steps

  1. Install Docker (see https://docs.docker.com/engine/install/ for details)
  2. Clone this repository: git clone https://github.com/golden-guy/docker-ckpool.git
  3. Build the container image with ./build_image.sh or use a custom build command: docker build -t docker-ckpool:latest .

Configuration

The pool configuration file is located in conf/ckpool.conf

  • Amend the pool configuration for your bitcoind instance. For a local instance, you just need to set the correct RPC credentials.
  • Set the donation rate and address - or even disable donation.

donaddress=<BTC_ADDRESS>

donrate=1 (-> 1% donation)

donrate=0 (-> disable donation)

To make a local bitcoind available to the docker container, add these two lines to bitcoin.conf to bind it to the docker host gateway address:

rpcbind=172.17.0.1

zmqpubhashblock=tcp://172.17.0.1:28332

Container quick-start

  • Create and start the container with docker compose up -d

  • To stop the container use docker compose stop

  • To start the container use docker compose start

  • Whenever you need to change the ckpool configuration, stop the container first. Once done with your changes, start the container again.

  • To destroy the container (if needed), use docker compose down

Connect to ckpool

By default, the ckpool container is listening on port 3333. Depending on your setup, either use localhost or the IP address of the docker host in the stratum URL to connect your miners:

stratum+tcp://localhost:3333

OR

stratum+tcp://<HOST_IP>:3333

docker-ckpool's People

Contributors

golden-guy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.