2021-12-24 19:38:53 +00:00
|
|
|
---
|
2021-11-10 23:35:39 +00:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
p2pool:
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
p2pool:
|
2022-02-19 23:27:37 +00:00
|
|
|
name: p2pool
|
2021-11-10 23:35:39 +00:00
|
|
|
monero:
|
2022-02-19 23:27:37 +00:00
|
|
|
name: monero
|
2021-11-10 23:35:39 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
monero:
|
|
|
|
image: monero:latest
|
|
|
|
build:
|
|
|
|
context: monero
|
|
|
|
args:
|
2022-02-19 23:27:37 +00:00
|
|
|
- MONERO_GIT_TAG=${MONERO_GIT_TAG}
|
2021-11-10 23:35:39 +00:00
|
|
|
container_name: p2pool-monero
|
|
|
|
networks:
|
|
|
|
- p2pool
|
|
|
|
ports:
|
|
|
|
- 18080:18080/tcp
|
|
|
|
volumes:
|
|
|
|
- monero:/home/monero/.bitmonero:rw
|
|
|
|
- /dev/hugepages:/dev/hugepages:rw
|
|
|
|
restart: unless-stopped
|
|
|
|
command: >-
|
|
|
|
--zmq-pub tcp://0.0.0.0:18083
|
|
|
|
--disable-dns-checkpoints
|
|
|
|
--enable-dns-blocklist
|
|
|
|
--non-interactive
|
|
|
|
--p2p-bind-ip=0.0.0.0
|
|
|
|
--p2p-bind-port=18080
|
|
|
|
--rpc-bind-ip=0.0.0.0
|
|
|
|
--rpc-bind-port=18081
|
2022-06-14 05:27:20 +00:00
|
|
|
--restricted-rpc
|
2021-11-10 23:35:39 +00:00
|
|
|
--confirm-external-bind
|
2022-06-14 05:27:20 +00:00
|
|
|
--log-file /dev/stdout
|
2021-11-10 23:35:39 +00:00
|
|
|
${PRUNE_NODE}
|
2022-02-19 23:27:37 +00:00
|
|
|
${MONERO_EXTRA_OPTIONS}
|
2021-11-10 23:35:39 +00:00
|
|
|
|
|
|
|
p2pool:
|
|
|
|
image: p2pool:latest
|
|
|
|
build: ../
|
|
|
|
container_name: p2pool-p2pool
|
|
|
|
networks:
|
|
|
|
- p2pool
|
|
|
|
ports:
|
|
|
|
- ${P2POOL_STRATUM_PORT}:3333/tcp
|
2022-02-19 23:27:37 +00:00
|
|
|
- 37888:37888/tcp
|
2021-11-10 23:35:39 +00:00
|
|
|
- 37889:37889/tcp
|
|
|
|
volumes:
|
|
|
|
- p2pool:/home/p2pool/.p2pool:rw
|
|
|
|
- /dev/null:/home/p2pool/.p2pool/p2pool.log:rw
|
|
|
|
- /dev/hugepages:/dev/hugepages:rw
|
|
|
|
depends_on:
|
|
|
|
- monero
|
|
|
|
restart: unless-stopped
|
|
|
|
command: >-
|
|
|
|
--host monero
|
|
|
|
--wallet ${WALLET_ADDRESS}
|
|
|
|
--loglevel ${P2POOL_LOGLEVEL}
|
2022-02-19 23:27:37 +00:00
|
|
|
${P2POOL_MINI}
|
2021-11-10 23:35:39 +00:00
|
|
|
|
|
|
|
xmrig:
|
|
|
|
image: xmrig:latest
|
|
|
|
build: xmrig
|
|
|
|
container_name: p2pool-xmrig
|
|
|
|
networks:
|
|
|
|
- p2pool
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /dev:/dev:ro
|
|
|
|
- /lib/modules:/lib/modules:ro
|
|
|
|
- /dev/hugepages:/dev/hugepages:rw
|
|
|
|
depends_on:
|
|
|
|
- p2pool
|
|
|
|
restart: unless-stopped
|
|
|
|
command: >-
|
|
|
|
${FIXED_MINING_DIFFICULTY}
|
2022-02-19 23:27:37 +00:00
|
|
|
${MINING_CPU_PRIORITY}
|
|
|
|
${XMRIG_EXTRA_OPTIONS}
|
2021-11-10 23:35:39 +00:00
|
|
|
--randomx-1gb-pages
|
|
|
|
-o p2pool:3333
|