2025-12-25 03:44:02 +00:00
# Salvium P2Pool Docker Compose
2021-11-10 15:35:39 -08:00
2025-12-25 03:44:02 +00:00
Run your own **Salvium Node + P2Pool + XMRig ** in Docker
2021-11-10 15:35:39 -08:00
## Instructions
#### Install docker and docker-compose
2025-12-25 03:44:02 +00:00
[Install Docker ](https://docs.docker.com/engine/install/ )
2021-11-10 15:35:39 -08:00
[Install Docker Compose ](https://docs.docker.com/compose/install/ )
2022-06-17 04:34:41 +00:00
Note: The docker compose plugin uses the command "docker compose" while the pip installed command is "docker-compose".
2021-11-10 15:35:39 -08:00
#### Clone the P2Pool project
```
2025-12-25 03:44:02 +00:00
git clone --recursive https://github.com/mxhess/p2pool-salvium
2021-11-10 15:35:39 -08:00
```
2025-12-25 03:44:02 +00:00
#### Configure your Salvium address for mining rewards
2021-11-10 15:35:39 -08:00
```
2025-12-25 03:44:02 +00:00
cd p2pool-salvium/docker-compose
2022-06-17 04:34:41 +00:00
./configure
2021-11-10 15:35:39 -08:00
```
2025-12-25 03:44:02 +00:00
Make sure to set your own Salvium **Wallet Address ** (starting with SC1).
2021-11-10 15:35:39 -08:00
#### Build the docker containers
```
2022-07-17 07:55:16 -07:00
docker compose build --no-cache
2021-11-10 15:35:39 -08:00
```
2022-06-17 04:34:41 +00:00
#### Run the node, pool, and CPU miner (or updated configuration)
2021-11-10 15:35:39 -08:00
```
2022-06-17 04:34:41 +00:00
docker compose up
2021-11-10 15:35:39 -08:00
```
#### Optional
2025-12-25 03:44:02 +00:00
* Open ports 19080 (Salvium p2p port) and 38889 (P2Pool p2p port) or 38888 (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
2022-07-07 06:38:59 -07:00
* 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
2021-11-10 15:35:39 -08:00
* Configure your kernel for maximum mining performance: [XMRig RandomX Optimization Guide ](https://xmrig.com/docs/miner/randomx-optimization-guide )
2022-07-07 06:38:59 -07:00
* Many optional configurations and customizations are available by running './configure'
2021-12-24 11:38:53 -08:00
2025-12-25 03:44:02 +00:00
#### Other useful commands
2022-06-17 04:34:41 +00:00
* 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` ``
2025-12-25 03:44:02 +00:00
* You can **update ** by building new images with the ```--no-cache` `` option. Example: ` ``docker compose build --no-cache` `` or just update Salvium with: ` ``docker compose build --no-cache salvium` `` followed by ` ``docker compose up` ``
* You can see logs when running in the background with the "docker compose logs" command: ```docker compose logs -f` ``
2022-06-17 04:34:41 +00:00
* 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` ``
2021-12-24 11:38:53 -08:00
#### Uninstall
2025-12-25 03:44:02 +00:00
Change to p2pool-salvium/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 salvium data: ```docker volume rm salvium` ``