I set up this simple Docker
setup to mine Raptoreum because I was cold and needed a bit more heat, and this seemed to be popular. I also hate using things that aren't in containers, so now we have this :D There is a Dockerfile
in the repo for the provider of the miner, but that's to build, which is more bloated than I need. Also, if you use this without reading/configuring, you're gonna mine for me, so while that's awesome and I appreciate it, you probably don't want to do that, and should read on. When you configure this as instructed, I will get nothing, the only "losses" you'll have are the dev fee for the mining client, which I have nothing to do with. I set those as low as possible, but that's all I can do.
- Set the following environment variables, as desired
URL
(str) for the URL to mine to (default value is tozergpool
). I do recommend something other than the defaultflockpool
to encourage decentralizationURL_BACKUP
(str) for the backup URL should the former be unresponsive (default is theNA
endpoint forzergpool
)USERNAME
(str) to set your stratum usernamePASSWORD
(str) to set your stratum passwordALGO
(str) to change the algorithm (default isgr
/ghostminer)THREADS
(int) to set the amount of threads (not cores) to use, default is unlimitedDONATION
(float) to set the donation amount in percent, default is0
(will set the minimum, currently1.75% for gr only
)TUNE_FULL
(boolean, json style) set totrue
to do an "in-depth" tune, default isfalse
- Uncomment the
volumes
section to mount in atune_config
file if you have one generated. Otherwise, the entrypoint script will generate one on startup, which takes a couple hours, then start mining after that. Highly recommend you uncomment this to persist the config file. You may choose to find one online for your CPU, do this at your own discretion. - Run the service with
docker-compose up -d
, it should pull the latest fromDocker Hub
. If you want to ensure the build is the latest, rundocker-compose up --build -d
to build locally.