Created
June 17, 2021 21:39
-
-
Save dockerlead/7df33042b02c69ea516a5520bc5ec589 to your computer and use it in GitHub Desktop.
Monero Miner with resources limited
This file contains 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
need to make sure that you have
kmod
andmsr-tools
on your machine.dkms
andkernel-devel
are needed on CentOS.