From 3d0072021fc7e0c6e1448d64540ad58dba6ff1fd Mon Sep 17 00:00:00 2001 From: meftimes Date: Wed, 13 Mar 2024 15:57:03 -0400 Subject: [PATCH] add Monero full node --- monero/commands.md | 5 ++++ monero/monero.yml | 66 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 monero/commands.md create mode 100644 monero/monero.yml diff --git a/monero/commands.md b/monero/commands.md new file mode 100644 index 0000000..ae0ebbf --- /dev/null +++ b/monero/commands.md @@ -0,0 +1,5 @@ +## Command to resolve permission issues on volume-mapped folder +`docker run -it --rm -v /monero/.bitmonero:/home/monero/.bitmonero --entrypoint chown --user root sethsimmons/simple-monerod monero:monero -R /home/monero/.bitmonero` + +## Obtain HiddenService address +`docker exec -it tor onions` diff --git a/monero/monero.yml b/monero/monero.yml new file mode 100644 index 0000000..61fb822 --- /dev/null +++ b/monero/monero.yml @@ -0,0 +1,66 @@ +version: "3.8" +name: monero-suite +services: + monerod: + image: sethsimmons/simple-monerod:latest + restart: unless-stopped + container_name: monerod + volumes: + - /monero/.bitmonero:/home/monero/.bitmonero + ports: + - 18080:18080 + - 18084:18084 + - 18089:18089 + command: + - --rpc-restricted-bind-ip=0.0.0.0 + - --rpc-restricted-bind-port=18089 + - --rpc-bind-ip=0.0.0.0 + - --rpc-bind-port=18081 + - --confirm-external-bind + - --enable-dns-blocklist + - --check-updates=disabled + - --max-log-files=3 + - --max-log-file-size=1048576 + - --no-igd + - --out-peers=64 + - --limit-rate-down=1048576 + - --public-node + - --zmq-pub=tcp://0.0.0.0:18084 + - --disable-rpc-ban + p2pool: + image: sethsimmons/p2pool:latest + restart: unless-stopped + container_name: p2pool + tty: true + stdin_open: true + volumes: + - p2pool:/home/p2pool + - /dev/hugepages:/dev/hugepages:rw + ports: + - 3333:3333 + - 37889:37889 + command: + - --wallet wallet_address_goes_here + - --stratum 0.0.0.0:3333 + - --p2p 0.0.0.0:37889 + - --rpc-port 18089 + - --zmq-port 18084 + - --host monerod + - --addpeers node.portemonero.com:37888 --mini + - --start-mining 4 + tor: + image: goldy/tor-hidden-service:latest + container_name: tor + restart: unless-stopped + links: + - monerod + - p2pool + environment: + MONEROD_TOR_SERVICE_HOSTS: 18089:monerod:18089 + P2POOL_TOR_SERVICE_HOSTS: 3333:p2pool:3333 + volumes: + - tor-keys:/var/lib/tor/hidden_service/ +volumes: + monero: {} + p2pool: {} + tor-keys: {}