Sign inSign up

pmietlicki/monero-miner

By pmietlicki

•Updated about 4 hours ago

Miner for monero with very high performance thanks to xmrig (RandomX algorithm)

Image
9

1M+

pmietlicki/monero-miner repository overview

Monero Logo

⁠Monero Miner

⁠Quick start

To quickly get started running a 24/7 monero Miner, just adapt this command with your information :

docker run -itd --restart=always -e POOL_URL=pool.supportxmr.com:5555 -e POOL_USER=45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p --name monero pmietlicki/monero-miner

⁠Configuration variables with default values

You can also use config json file by putting it inside /home/miner/config/config.json
To generate a config file, you can use the generator⁠.
For example, if the config.json file is inside the /home/user/xmrig/ folder, use this command :

docker run -v /home/user/xmrig/config.json:/home/miner/config/config.json pmietlicki/monero-miner /home/miner/xmrig/build/xmrig \
     --config /home/miner/config/config.json 

Only 2 config variables are mandatory : POOL_URL and POOL_USER

EnvironmentDescriptionDefault value
POOL_USERWallet Address45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p
POOL_URLURL of mining serverpool.supportxmr.com:5555
MAX_CPU*Set the max CPU usage100
USE_SCHEDULEREnable / Disable (true/false)false
START_TIME*Set the start time of the scheduler if enabled2100
STOP_TIME*Sets the end time of the scheduler if enabled0600
DAYSSet the start days that the container should run, works together with START_TIMEMonday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday

Note for MAX_CPU: This option just change the thread count. If you have just one core, it will use one thread, so it will be always 100% For 2 cores, minimum is 50% For 4, 25%.

Note for Time: Default Timezone is GMT +0

⁠Run

Use your own configuration.

docker run -d --name monero-miner pmietlicki/monero-miner -e POOL_URL=pool.supportxmr.com:5555 -e POOL_USER=45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p

Advanced

You can customize xmrig options⁠.

docker run pmietlicki/monero-miner /home/miner/xmrig/build/xmrig \
     -o <POOL_URL> \
     -u <POOL_USER> \
     -k  \
     --cpu-priority=2
docker run -v /home/user/xmrig/config.json:/home/miner/config/config.json pmietlicki/turtle-miner /home/miner/xmrig/build/xmrig \
     --config /home/miner/config/config.json 

Docker compose

version: "3"
services:
  monero-miner:
    image: pmietlicki/monero-miner
    environment:
      - POOL_URL=pool.supportxmr.com:5555
      - POOL_USER=45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p
    restart: on-failure

You will then have a running monero miner that uses all the available resources for mining.

⁠Scheduler

⁠Example I: Weekend

For a container that will only run the miner on weekend days.

sudo docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='0001' -e STOP_TIME='2359' -e DAYS='Saturday,Sunday' pmietlicki/monero-miner
⁠Example II: Daily from 21.00-06.00

It could be interesting to power on a miner during off-work time. The example bellow will fire the miner everyday from 21.00-06.00.

sudo docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='2100' -e STOP_TIME='0600' -e DAYS='Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday' pmietlicki/monero-miner
⁠Example III: Workdays from 21.00-06.00 & Weekend whole day

If you want to achieve a complex time scheduling to maximize your profit. Let's setup a schedule that works from monday - friday (21.00-06.00) and on saturday & sunday the entire day. To achieve this requirement we have to create two containers, one for the working days and one for the weekend.

docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='2100' -e STOP_TIME='0600' -e DAYS='Monday,Tuesday,Wednesday,Thursday' pmietlicki/monero-miner
sudo docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='0001' -e STOP_TIME='2359' -e DAYS='Saturday,Sunday' pmietlicki/monero-miner

⁠General usage

To see the output from the miner, run one of:

$ docker logs -t -f monero
$ docker-compose logs

To update the miner:

$ docker stop monero
$ docker rm monero
$ docker pull pmietlicki/monero-miner
$ docker run -d --mount ...

To stop the miner:

$ docker stop monero
$ docker-compose stop

To restart the miner:

$ docker restart monero
$ docker-compose restart

⁠Build

$ cd src/miner
$ docker build -t pmietlicki/monero-miner .
⁠Donate
  • XMR: 45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p
  • RVN: RG8Foh71fzgbrczHbUJSdWna6u4e7sgsr6
  • BTC: bc1q8x59fwt7v9w3haa8dc5jtaurs3azjq2ut5nekp
  • NIM: NQ51BJ7CGJA4Y35XNL7KL9VVVYQNA0K76FMB

Tag summary

Content type

Image

Digest

sha256:75090888b…

Size

11.3 MB

Last updated

about 4 hours ago

docker pull pmietlicki/monero-miner