Created
June 17, 2021 21:39
-
-
Save topdockerlead/7df33042b02c69ea516a5520bc5ec589 to your computer and use it in GitHub Desktop.
Monero Miner with resources limited
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.8" | |
| services: | |
| miner: | |
| image: giansalex/monero-miner | |
| container_name: monero-miner | |
| privileged: true | |
| cap_add: | |
| - ALL | |
| volumes: | |
| - "/lib/modules:/lib/modules" | |
| environment: | |
| WALLET: ${WALLET} | |
| POOL: ${POOL} | |
| WORKER_NAME: ${WORKER_NAME} | |
| deploy: | |
| resources: | |
| limits: | |
| cpus: 3 | |
| memory: 2G | |
| restart: always |
Author
Author
need to make sure that you have kmod and msr-tools on your machine.
dkms and kernel-devel are needed on CentOS.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dotenv example: