You can read more about what LNDg and how to use it is at official GitHub page here. Hopefully we will see it added to MyNodes default setup in future, but until then some of you may want to get it up and running and test it.
Tested on MyNode 0.2.54 64bit, Raspi 4B 8GB
Lets not linger and install it.
ssh to your node and update docker and docker-compose
Code: Select all
ssh admin@my.node.ip.addr
sudo apt install docker
sudo apt install docker-compose
Code: Select all
sudo su bitcoin
git clone https://github.com/cryptosharks131/lndg.git
cd lndg
Code: Select all
nano docker-compose.yaml
Code: Select all
services:
lndg:
restart: always
build: .
volumes:
- /home/bitcoin/.lnd:/root/.lnd:ro
- /home/bitcoin/lndg/data:/lndg/data:rw
command:
- sh
- -c
- python initialize.py -net 'mainnet' -server '127.0.0.1:10009' -d && supervisord && python manage.py runserver 0.0.0.0:8889
network_mode: "host"
Code: Select all
docker-compose up -d
Lets make sure we can also connect via Tor. Exit bitcoin user back to your admin and edit the tor configuration.
Code: Select all
exit
sudo nano /etc/tor/torrc
Code: Select all
# Hidden Service for LNDg
HiddenServiceDir /var/lib/tor/lndg/
HiddenServiceVersion 3
HiddenServicePort 8889 127.0.0.1:8889
Code: Select all
sudo systemctl restart tor.service
Code: Select all
sudo ufw allow 8889 comment 'LNDG'
Code: Select all
sudo cat /var/lib/tor/lndg/hostname
Example: http://toraddressfromhostname:8889
You should be able to connect to LNDg though tor now.
username: lndg-admin
password: to get password run
Code: Select all
sudo -u bitcoin cat /home/bitcoin/lndg/data/lndg-admin.txt
To update: (you have to be login as bitcoin user and enter /home/bitcoin/lndg directory before running the commands).
Code: Select all
docker-compose down
docker-compose build --no-cache
docker-compose up -d
Please make sure to visit the official GitHub page of the project to learn how to use it correctly.
Thank you and happy routing!