Update docker-compose.yml

Your Docker Compose configuration seems to be functional but includes redundant whitespace, overly long options, and could benefit from standardizing formatting for readability and maintenance
This commit is contained in:
Yuva 2025-01-01 10:16:53 +05:30 committed by GitHub
parent a60584e9ec
commit 0f4385f2c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,16 +6,11 @@ networks:
driver: bridge
volumes:
p2pool:
p2pool:
name: p2pool
monero:
name: monero
services:
p2pool:
image: p2pool:latest
@ -25,38 +20,21 @@ services:
- p2pool
privileged: true
ports:
- 37888:37888/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: >-
command: >
--host monero
--wallet 44MnN1f3Eto8DZYUWuE5XZNUtE3vcRzt2j6PzqWpPau34e6Cf4fAxt6X2MBmrm6F9YMEiMNjN6W4Shn4pLcfNAja621jwyg
--loglevel 3
--local-api
--data-api /home/p2pool/.p2pool
statistics:
image: statistics:latest
build:
@ -72,9 +50,6 @@ services:
- p2pool
restart: unless-stopped
monero:
image: monero:latest
build:
@ -86,13 +61,12 @@ services:
- p2pool
ports:
- 18080:18080/tcp
volumes:
- monero:/home/monero/.bitmonero:rw
- /dev/null:/home/monero/.bitmonero/bitmonero.log:rw
- /dev/hugepages:/dev/hugepages:rw
restart: unless-stopped
command: >-
command: >
--zmq-pub tcp://0.0.0.0:18083
--disable-dns-checkpoints
--enable-dns-blocklist
@ -108,20 +82,9 @@ services:
--restricted-rpc
--confirm-external-bind
--log-level=0
--prune-blockchain
--fast-block-sync=1
xmrig:
image: xmrig:latest
build: xmrig
@ -136,12 +99,9 @@ services:
depends_on:
- p2pool
restart: unless-stopped
command: >-
command: >
--randomx-1gb-pages
-o p2pool:3333
-u p2pool
--cpu-max-threads-hint=100
--cpu-priority=2