From 4308cd7bdab2c454aaadb1dd6425d9a3cb285af7 Mon Sep 17 00:00:00 2001 From: Matthew Tran Date: Sun, 10 Sep 2023 10:18:54 +0000 Subject: [PATCH] added monerod --- .gitignore | 3 +++ README.md | 25 ++++++++++++++++--------- compose.yml | 9 +++++++++ monerod/Dockerfile | 12 ++++++++++++ monerod/entry.sh | 11 +++++++++++ terraria/config.txt | 2 +- 6 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 monerod/Dockerfile create mode 100644 monerod/entry.sh diff --git a/.gitignore b/.gitignore index 3e92912..3972d19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ .DS_Store __pycache__ +# monerod +monerod/.bitmonero + # minecraft minecraft/world diff --git a/README.md b/README.md index d3490c5..3673021 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,26 @@ # matthewtran.com -Stuff that's deployed on matthewtran.com. Tested on Ubuntu Server 22.04.3 LTS. +Stuff that's deployed on [matthewtran.com](matthewtran.com). Tested on Ubuntu Server 22.04.3 LTS. Currently running the following services. + +- website +- gitlab +- monerod +- p2pool (`xmrig -o matthewtran.com:3333`) +- minecraft +- terraria ## setup Forward the following ports to the server. -| service | port | -|-----------|---------| -| website | 80, 443 | -| p2pool | 3333 | -| monerod | 18081 | -| minecraft | 25565 | -| terraria | 7777 | -| wireguard | 51820 | +| service | port | +|-----------|--------------------| +| website | 80, 443 | +| monerod | 18080 | +| p2pool | 3333, 37888, 37889 | +| minecraft | 25565 | +| terraria | 7777 | +| wireguard | 51820 | Run the following commands. diff --git a/compose.yml b/compose.yml index f5dd1f8..4746d32 100644 --- a/compose.yml +++ b/compose.yml @@ -1,4 +1,13 @@ services: + monerod: + restart: always + build: monerod/. + entrypoint: ["/bin/sh", "/root/entry.sh"] + ports: + - "18080:18080" + - "18083:18083" + volumes: + - ./monerod/.bitmonero:/root/.bitmonero minecraft: restart: always build: minecraft/. diff --git a/monerod/Dockerfile b/monerod/Dockerfile new file mode 100644 index 0000000..c8a124d --- /dev/null +++ b/monerod/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:22.04 + +WORKDIR /root + +RUN apt-get update && apt-get upgrade +RUN apt-get install -y wget bzip2 + +RUN wget https://downloads.getmonero.org/linux64 +RUN tar xvf linux64 && rm linux64 +RUN mv monero-x86_64-linux-gnu-v0.18.2.2/ monero/ + +COPY entry.sh ./ diff --git a/monerod/entry.sh b/monerod/entry.sh new file mode 100644 index 0000000..7778fa2 --- /dev/null +++ b/monerod/entry.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +monero/monerod \ + --prune-blockchain \ + --zmq-pub tcp://0.0.0.0:18083 \ + --out-peers 64 --in-peers 32 \ + --add-priority-node=node.supportxmr.com:18080 \ + --add-priority-node=nodes.hashvault.pro:18080 \ + --disable-dns-checkpoints \ + --enable-dns-blocklist \ + --non-interactive diff --git a/terraria/config.txt b/terraria/config.txt index 83425b0..9dbf757 100644 --- a/terraria/config.txt +++ b/terraria/config.txt @@ -1,5 +1,5 @@ world=/root/worlds/default.wld autocreate=3 worldname=default -difficulty=0 +difficulty=2 worldpath=/root/worlds