added monerod

This commit is contained in:
Matthew Tran 2023-09-10 10:18:54 +00:00
parent 1fc6ac77e2
commit 4308cd7bda
6 changed files with 52 additions and 10 deletions

3
.gitignore vendored
View File

@ -1,6 +1,9 @@
.DS_Store
__pycache__
# monerod
monerod/.bitmonero
# minecraft
minecraft/world

View File

@ -1,16 +1,23 @@
# 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 |
| monerod | 18080 |
| p2pool | 3333, 37888, 37889 |
| minecraft | 25565 |
| terraria | 7777 |
| wireguard | 51820 |

View File

@ -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/.

12
monerod/Dockerfile Normal file
View File

@ -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 ./

11
monerod/entry.sh Normal file
View File

@ -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

View File

@ -1,5 +1,5 @@
world=/root/worlds/default.wld
autocreate=3
worldname=default
difficulty=0
difficulty=2
worldpath=/root/worlds