use upstream, pre-built images by default (#40)
* use upstream, pre-built images by default * allow dual options for pull vs build
This commit is contained in:
37
README.md
37
README.md
@@ -22,12 +22,31 @@ cd docker-monero-node
|
|||||||
# OPTIONAL: Setup Grafana password, blockchain storage location, or port and container image tag overrides
|
# OPTIONAL: Setup Grafana password, blockchain storage location, or port and container image tag overrides
|
||||||
cp env-example .env
|
cp env-example .env
|
||||||
vim .env
|
vim .env
|
||||||
|
```
|
||||||
|
|
||||||
# Build containers
|
There are 2 routes depending on your preference.
|
||||||
docker-compose build # make build
|
|
||||||
|
|
||||||
# Run containers
|
### If you want to just pull the images (easier, faster)
|
||||||
docker-compose up -d # make up
|
|
||||||
|
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`:
|
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).
|
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
|
## 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
|
# Run containers
|
||||||
docker-compose up -d # make up
|
docker compose up -d # make up
|
||||||
|
|
||||||
# Check all logs
|
# Check all logs
|
||||||
docker-compose logs -f
|
docker compose logs -f
|
||||||
|
|
||||||
# Check monerod logs
|
# 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.
|
Navigate to http://localhost:3000 and log into Grafana. Find the `Node Stats` dashboard to get those sweet, sweet graphs.
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ services:
|
|||||||
<<: *log-config
|
<<: *log-config
|
||||||
exporter:
|
exporter:
|
||||||
container_name: monerod_exporter
|
container_name: monerod_exporter
|
||||||
|
image: lalanza808/exporter:1.0.0
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfiles/exporter
|
dockerfile: dockerfiles/exporter
|
||||||
@@ -84,6 +85,7 @@ services:
|
|||||||
<<: *log-config
|
<<: *log-config
|
||||||
nodemapper:
|
nodemapper:
|
||||||
container_name: monerod_nodemapper
|
container_name: monerod_nodemapper
|
||||||
|
image: lalanza808/nodemapper:1.0.4
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -101,6 +103,7 @@ services:
|
|||||||
<<: *log-config
|
<<: *log-config
|
||||||
tor:
|
tor:
|
||||||
container_name: monerod_tor
|
container_name: monerod_tor
|
||||||
|
image: lalanza808/tor:1.0.0
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfiles/tor
|
dockerfile: dockerfiles/tor
|
||||||
@@ -113,6 +116,7 @@ services:
|
|||||||
<<: *log-config
|
<<: *log-config
|
||||||
i2p:
|
i2p:
|
||||||
container_name: monerod_i2p
|
container_name: monerod_i2p
|
||||||
|
image: lalanza808/i2p:1.0.0
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfiles/i2p
|
dockerfile: dockerfiles/i2p
|
||||||
@@ -126,6 +130,7 @@ services:
|
|||||||
<<: *log-config
|
<<: *log-config
|
||||||
monerod:
|
monerod:
|
||||||
container_name: monerod
|
container_name: monerod
|
||||||
|
image: lalanza808/monero:v0.18.4.0
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfiles/monero
|
dockerfile: dockerfiles/monero
|
||||||
|
|||||||
Reference in New Issue
Block a user