Skip to content

Commit

Permalink
added back in a working docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
compscidr committed Mar 29, 2022
1 parent 088d086 commit 50e3441
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,14 @@ docker run --gpus all compscidr/lolminer-docker:amd-1.47 --coin ETH --pool eth.2
```

Confirmed working with a ubuntu20.04 host and an nvidia rtx 3080 gpu.

## docker-compose
Alternatively you can use the provided docker-compose file which will build
everything from source. You will want to update the `entrypoint` within the
docker-compose.yml file to use your own wallet and arguments for lolminer.

Then for AMD:
`docker-compose --profile amd up`

and for Nvidia:
`docker-compose --profile nvidia up`
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# requires docker-compose 1.28.0+
version: '3.9'
services:
lolminer-amd:
build:
context: .
dockerfile: Dockerfile
image: compscidr/lolminer:amd-dev
container_name: lolminer
devices:
- /dev/dri:/dev/dri
entrypoint: /lolminer/lolMiner --coin ETH --pool eth.2miners.com --port 2020 --user 0x74ba897f65f04008d8eff364efcc54b0a20e17eb.nvidia-docker --apihost 0.0.0.0 --apiport 4069
profiles: ["amd"]
lolminer-nvidia:
build:
context: .
dockerfile: Dockerfile
image: compscidr/lolminer:nvidia-dev
container_name: lolminer
profiles: ["nvidia"]
entrypoint: /lolminer/lolMiner --coin ETH --pool eth.2miners.com --port 2020 --user 0x74ba897f65f04008d8eff364efcc54b0a20e17eb.nvidia-docker --apihost 0.0.0.0 --apiport 4069
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]

0 comments on commit 50e3441

Please sign in to comment.