-
-
Notifications
You must be signed in to change notification settings - Fork 65
Docker
You can create a Docker container for the nanoNodeMonitor that works perfectly with your Docker Nano Node!
sudo docker pull nanotools/nanonodemonitor
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!
-
Create a directory called nano and go inside it:
mkdir nano && cd nano
-
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"
-
Nice! Now execute
sudo docker-compose up -d
to start everything. -
Inside your home directory you will find a new directory called nanoNodeMonitor, edit the config.php:
cd ~/nanoNodeMonitor
-
You will have to change the node IP to:
nano_node_1
. Edit the other things as well if you want to. -
Done!
Representative 1: xrb_1ninja7rh37ehfp9utkor5ixmxyg8kme8fnzc4zty145ibch8kf5jwpnzr3r
Representative 2: xrb_1f56swb9qtpy3yoxiscq9799nerek153w43yjc9atoaeg3e91cc9zfr89ehj
Donations: xrb_1nanomon9uycemhgonue4twmcqmsu7oxw43maro8amj751ozpus8r8gsic48