Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.
Tobias edited this page Jun 10, 2021 · 4 revisions

You can create a Docker container for the nanoNodeMonitor that works perfectly with your Docker Nano Node!

Pulling Docker image

sudo docker pull nanotools/nanonodemonitor

Running

Standalone

sudo docker run -d -p 80:80 -v ~:/opt --restart=unless-stopped nanotools/nanonodemonitor

This will create a directory called nanoNodeMonitor inside your home directory with the config.php inside it. Edit it according to your needs and you're good to go!

Docker Compose

  1. Create a directory called nano and go inside it: mkdir nano && cd nano

  2. Create a new file called docker-compose.yml with the following contents:

version: '3'
services:
  monitor:
    image: "nanotools/nanonodemonitor:latest"
    restart: "unless-stopped"
    ports:
     - "80:80"
    volumes:
     - "~:/opt"
  node:
    image: "nanocurrency/nano:V22.0"
    restart: "unless-stopped"
    ports:
     - "7075:7075"
     - "127.0.0.1:7076:7076"
     - "127.0.0.1:7078:7078"
    volumes:
     - "~:/root"
  1. Nice! Now execute sudo docker-compose up -d to start everything.

  2. Inside your home directory you will find a new directory called nanoNodeMonitor, edit the config.php: cd ~/nanoNodeMonitor

  3. You will have to change the node IP to: nano_node_1. Edit the other things as well if you want to.

  4. Done!

Clone this wiki locally