From 6705bd2b4c4fd739b8e67add0fdf5bb9ee1ecf20 Mon Sep 17 00:00:00 2001 From: lalanza808 Date: Fri, 11 Apr 2025 05:57:58 -0700 Subject: [PATCH] use upstream, pre-built images by default (#40) * use upstream, pre-built images by default * allow dual options for pull vs build --- README.md | 37 ++++++++++++++++++++++++++++--------- docker-compose.yaml | 5 +++++ 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2ea6110..28c8107 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,31 @@ cd docker-monero-node # OPTIONAL: Setup Grafana password, blockchain storage location, or port and container image tag overrides cp env-example .env vim .env +``` -# Build containers -docker-compose build # make build +There are 2 routes depending on your preference. -# Run containers -docker-compose up -d # make up +### If you want to just pull the images (easier, faster) + +This is the default behavior intended for ease of use, gets things running faster. Upstream images are on dockerhub: + +* lalanza808/exporter:1.0.0 +* lalanza808/nodemapper:1.0.4 +* lalanza808/tor:1.0.0 +* lalanza808/i2p:1.0.0 +* lalanza808/monero:v0.18.4.0 + +```bash +docker compose up -d +``` + +### If you want to build the images yourself + +Some people prefer to build things locally rather than assume the upstream is correct / not compromised (though you still assume base images are not compromised). You can review the Dockerfiles in [dockerfiles](./dockerfiles) + +```bash +docker compose build +docker compose up -d ``` The following ports will be bound for `monerod` by default, but you can override in `.env`: @@ -49,21 +68,21 @@ There are two hard-coded IP addresses for the tor and i2p proxies (monerod requi You will want to open/allow ports 18080 and 18081 in your firewall for usage as a remote/public node (or whichever p2p and restricted ports you picked). -Also, you may want to setup a reverse proxy to Grafana if you would like to expose the visualizations for the world to see. Be sure to lock down the administrative settings or leave login disabled! You can find a live example on my node here: https://singapore.node.xmr.pm +Also, you may want to setup a reverse proxy to Grafana if you would like to expose the visualizations for the world to see. Be sure to lock down the administrative settings or leave login disabled! You can see sample images below. ## Usage -It's fairly simple, use `docker-compose` to bring the containers up and down and look at logs. +It's fairly simple, use `docker compose` to bring the containers up and down and look at logs. ``` # Run containers -docker-compose up -d # make up +docker compose up -d # make up # Check all logs -docker-compose logs -f +docker compose logs -f # Check monerod logs -docker-compose logs -f monerod # make logs +docker compose logs -f monerod # make logs ``` Navigate to http://localhost:3000 and log into Grafana. Find the `Node Stats` dashboard to get those sweet, sweet graphs. diff --git a/docker-compose.yaml b/docker-compose.yaml index cfdd8fc..3056864 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -68,6 +68,7 @@ services: <<: *log-config exporter: container_name: monerod_exporter + image: lalanza808/exporter:1.0.0 build: context: . dockerfile: dockerfiles/exporter @@ -84,6 +85,7 @@ services: <<: *log-config nodemapper: container_name: monerod_nodemapper + image: lalanza808/nodemapper:1.0.4 restart: unless-stopped build: context: . @@ -101,6 +103,7 @@ services: <<: *log-config tor: container_name: monerod_tor + image: lalanza808/tor:1.0.0 build: context: . dockerfile: dockerfiles/tor @@ -113,6 +116,7 @@ services: <<: *log-config i2p: container_name: monerod_i2p + image: lalanza808/i2p:1.0.0 build: context: . dockerfile: dockerfiles/i2p @@ -126,6 +130,7 @@ services: <<: *log-config monerod: container_name: monerod + image: lalanza808/monero:v0.18.4.0 build: context: . dockerfile: dockerfiles/monero