{"id":19788291,"url":"https://github.com/weebdatahoarder/p2pool-compose","last_synced_at":"2025-05-01T00:30:50.492Z","repository":{"id":38198523,"uuid":"404087440","full_name":"WeebDataHoarder/p2pool-compose","owner":"WeebDataHoarder","description":"docker-compose setup of Monero's p2pool","archived":true,"fork":false,"pushed_at":"2022-08-23T21:07:25.000Z","size":49,"stargazers_count":22,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T17:14:44.566Z","etag":null,"topics":["docker","docker-compose","monero","monero-mining","p2pool"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WeebDataHoarder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["monero:4AeEwC2Uik2Zv4uooAUWjQb2ZvcLDBmLXN4rzSn3wjBoY8EKfNkSUqeg5PxcnWTwB1b2V39PDwU9gaNE5SnxSQPYQyoQtr7","seed.p2pool.observer"]}},"created_at":"2021-09-07T18:43:57.000Z","updated_at":"2024-05-31T06:16:59.000Z","dependencies_parsed_at":"2022-08-17T03:30:23.686Z","dependency_job_id":null,"html_url":"https://github.com/WeebDataHoarder/p2pool-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeebDataHoarder%2Fp2pool-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeebDataHoarder%2Fp2pool-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeebDataHoarder%2Fp2pool-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeebDataHoarder%2Fp2pool-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WeebDataHoarder","download_url":"https://codeload.github.com/WeebDataHoarder/p2pool-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251802703,"owners_count":21646261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","monero","monero-mining","p2pool"],"created_at":"2024-11-12T06:26:46.597Z","updated_at":"2025-05-01T00:30:50.159Z","avatar_url":"https://github.com/WeebDataHoarder.png","language":"Dockerfile","funding_links":["monero:4AeEwC2Uik2Zv4uooAUWjQb2ZvcLDBmLXN4rzSn3wjBoY8EKfNkSUqeg5PxcnWTwB1b2V39PDwU9gaNE5SnxSQPYQyoQtr7","seed.p2pool.observer"],"categories":[],"sub_categories":[],"readme":"# Monero p2pool docker-compose\n\nThis is an easy to setup installation of Monero's [p2pool](https://github.com/SChernykh/p2pool), a decentralized pool for Monero mining.\n\n## Requirements\n* docker / podman\n* docker-compose\n* Huge pages setup and mounted under _/dev/hugepages_ or similar\n  * `$ sudo sysctl vm.nr_hugepages=3072`\n  * You can add `vm.nr_hugepages=3072` to _/etc/sysctl.conf_ so it persists reboots.\n  * Check that you have _/dev/hugepages_ (or other) as a `hugetlbfs` mount\n* At least 48 GiB of free space for pruned Monero and p2pool chain data.\n  * _monero_ runs in pruned mode, but that's still about 38-39 GiB at the time of writing.\n  * _p2pool_ uses 500 MiB at this point in time, could use more.\n* x86_64 or AArch64 system (probably works on others, untested)\n* About 4 GiB of RAM. Haven't tested below this, but should help during sync. A bit more works better. \n\n## How to\n* Clone / download this repository\n  * `$ git clone https://github.com/WeebDataHoarder/p2pool-compose \u0026\u0026 cd p2pool-compose`\n* Copy _.env.example_ to _.env_\n  * `$ cp .env.example .env`\n* Change _.env_ values to fit your needs. This is the main configuration.\n  * You don't need to change everything, but at least, you SHOULD change `P2POOL_WALLET_ADDRESS`.\n    * You should probably create a wallet for this. This address is exposed to p2pool peers (although later pruned)\n  * You can override further by using `docker-compose.override.yml`.\n* Build and start the services via _docker-compose_\n  * `$ docker-compose up -d --build` (this will take a while to compile)\n  * Monero syncing will also start. **This can take a few days.**\n  * You can bring everything down via `$ docker-compose down`\n  * View logs via `docker logs`\n  * By default `master` branch of p2pool is used.\n* To update (new version, or new p2pool version)\n  * `git pull \u0026\u0026 docker-compose build --no-cache p2pool \u0026\u0026 docker-compose up -d --build`\n\n## Notes and other comments\n* _monerod_ has higher connection defaults and several presets to have quicker and larger reach when receiving and broadcasting new blocks.\n* _monerod_ has a custom patch applied for the special RPC and ZMQ methods p2pool requires. After [PR#7891](https://github.com/monero-project/monero/pull/7891) is merged, this patch won't be necessary. \n* _p2pool_ stratum port is by default 3333. You can change this on _.env_, and can also point xmrig-proxy or similar to this port.\n* _p2pool_ will wait until _monerod_ is running and fully synchronized before starting.\n* You can attach to _p2pool_ console via `$ docker attach p2pool-compose_p2pool_1`. Detach via `Ctrl+p, Ctrl+q` \n* Everything restarts by default\n* If you have other questions, feel free to reach _DataHoarder_ over IRC `#monero-pow @ irc.libera.chat`\n\n## TODO\n* logrotate for p2pool\n  * However, you can set this up yourself directly pointing to file `/var/lib/docker/volumes/p2pool-compose_p2pool/_data/p2pool.log`\n\n## Contribution\nThere is no dev fee. p2pool has no infrastructure. Send donations if you like, or don't.\n\n[![Donate Monero](https://img.shields.io/badge/Donate-Monero-green.svg)](monero:4AeEwC2Uik2Zv4uooAUWjQb2ZvcLDBmLXN4rzSn3wjBoY8EKfNkSUqeg5PxcnWTwB1b2V39PDwU9gaNE5SnxSQPYQyoQtr7)\n\nDonate hashrate to the [P2Pool Seed Node we run](https://p2pool-seed.northeurope.cloudapp.azure.com), at stratum server `p2pool-seed.northeurope.cloudapp.azure.com:3333`\n\nThink about donating to [p2pool's original author](https://github.com/SChernykh/p2pool#donations) as well. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweebdatahoarder%2Fp2pool-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweebdatahoarder%2Fp2pool-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweebdatahoarder%2Fp2pool-compose/lists"}