We will be using port 8888 and 9735 as external ports.
### Enable Port Forwarding on your home router
We need to forward both (8888 & 9735) ports to our Raspberry Pi.
Typically this will be under Advanced and then Port Forwarding or Virtual Server.
On the Port Forwarding page enter in a name for the forwarding like, "Relay" and another for "LND". Then enter the port you are forwarding in the port field. Select "TCP/UDP" or "Both" under Protocol if you are unsure which protocol you are using. Next, enter the internal IP address of the device you are port forwarding to and click "Apply" or "Save" to store the changes.
### Install ufw Firewall to open ports
```
sudo apt install ufw
@ -24,9 +36,30 @@ sudo sh get-docker.sh
sudo usermod -aG docker $(whoami)
```
Next logout and login again
Next, logout and login again
### Install docker-compose
```
sudo apt-get install libffi-dev libssl-dev
sudo apt install python3-dev
sudo apt-get install -y python3 python3-pip
sudo pip3 install docker-compose
```
### Build docker image and run
### Build docker image and run (with docker-compose)
```
cd sphinx-relay
docker-compose -f docker-compose.arm.yml build
```
Edit docker-compose.arm.yml file with your IP under the NODE_DOMAIN environment variable