p2pool/docker-compose
2024-12-20 13:27:11 +00:00
..
cfg Updated jinja2 version 2024-05-07 17:08:51 +02:00
monero support monero v0.18.0.0 and minor fixes 2022-07-17 08:03:29 -07:00
statistics fix stop signal for stats container 2024-12-20 13:27:11 +00:00
xmrig Fix for Issue #150 - xmrig container not building 2022-06-01 11:03:29 -07:00
configure fix: docker version check 2024-10-22 21:30:15 +01:00
current_config Docker: enabled fast sync 2023-04-22 22:54:32 +02:00
docker-compose.yml Documentation: recommend more in-peers 2023-10-30 09:49:36 +01:00
README.md support monero v0.18.0.0 and minor fixes 2022-07-17 08:03:29 -07:00

Monero P2Pool Docker Compose

Run your own Monero Node + P2Pool + XMRig in Docker

Instructions

Install docker and docker-compose

Install Docker
Install Docker Compose

Note: The docker compose plugin uses the command "docker compose" while the pip installed command is "docker-compose".

Clone the P2Pool project

git clone --recursive https://github.com/SChernykh/p2pool

Configure your Monero address for mining rewards

cd p2pool/docker-compose
./configure

Make sure to set your own monero Wallet Address. The default is to donate mining to P2Pool development.

Build the docker containers

docker compose build --no-cache

Run the node, pool, and CPU miner (or updated configuration)

docker compose up

Optional

  • Open ports 18080 (Monero p2p port) and 37889 (P2Pool p2p port) or 37888 (P2Pool-mini p2p port) in your firewall to ensure better connectivity. If you're mining from a computer behind NAT (like a router) you could consider forwarding the ports to your local machine
  • An XMRig CPU miner is included by default, but you can connect additional miners to this same p2pool node using port 3333 (or alternate if configured) when you set it as "exposed" in the configuration
  • Configure your kernel for maximum mining performance: XMRig RandomX Optimization Guide
  • Many optional configurations and customizations are available by running './configure'

Other usefull commands

  • You can run everything in the background by adding the "-d" argument to the "docker compose up" command: docker compose up -d
  • You can stop everything with CTRL-C or docker compose down
  • You can update by building new images with the --no-cache option. Example: docker compose build --no-cache or just update Monero with: docker compose build --no-cache monero followed by docker compose up
  • You can see logs when running in the background for with the "docker compose logs" command: docker compose logs -f
  • You can pause mining with: docker compose pause xmrig and resume mining with: docker compose unpause xmrig
  • You can disable mining with: docker compose stop xmrig and re-enable mining with: docker compose start xmrig
  • You can view your Server Statistics using a web browser if you enabled that feature in the configuration at: http://localhost:3380 (or alternate port as configured)

Uninstall

Change to p2pool/docker-compose directory
Stop and remove all containers: docker compose down
Remove the p2pool data: docker volume rm p2pool
Remove the p2pool-mini data: docker volume rm p2pool-mini
Remove the monero data: docker volume rm monero