Our NKN mining pool implementation, tested using docker swarm & portainer
version: "3.7"
services:
nknc:
image: nknorg/nkn-commercial:latest-arm64v8
restart: always
networks:
hostnet: {}
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
command: "-b <beneficiary-addr> -d /data"
volumes:
- /root/nkn/data:/data
networks:
hostnet:
external: true
name: host
How to use?
Go to your Portainer, Endpoint -> Stacks -> add Stack
copy & paste the stack code above, and replace the beneficiary-addr to be your mining pool address.
wait for the stack to be deployed.
Congras, Now you can publish your docker join command for other miner to join your pool.
# login to swarm manager endpoint.
# use following cmd to get join token for worker
docker swarm join-token worker
Enjoy, and I hope NKN can be mining friendly to all small contributors!