Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 1.93 KB

README.md

File metadata and controls

82 lines (55 loc) · 1.93 KB

lnF

Self-hosted Bitcoin Lightning Wallet based on phoenixd.

mobile-screenshot-home mobile-screenshot-received

Concept

lnf-architecture

Pre-Requisite

Create docker network

docker network create lnf

Run phoenixd docker with network lnf

# {DATA_PATH}/phoenix.conf
webhook=http://lnf-api:8080/lnf.webhook
docker run --name phoenixd -dp 9740:9740 -v {DATA_PATH}:/phoenix/.phoenix/ --network lnf --restart unless-stopped ghcr.io/sethforprivacy/phoenixd

Price API documentation -> here

Run api

Create file .env

APP_VERSION=0.0.1
API_URL=http://phoenixd:9740
API_KEY=phoenixd_password # from phoenix.conf
PINS=xxxxxx,yyyyyy
PRICE_API_KEY=2342343245
LINE_NOTIFY_TOKEN=xxxxxx # optional
docker run --name lnf-api -d --network lnf --restart unless-stopped --env-file .env -v {DATA_PATH}:/app/db ghcr.io/dnjooiopa/lnf-api

Run web

docker run --name lnf-web -dp 9730:3000 --network lnf --restart unless-stopped ghcr.io/dnjooiopa/lnf-web

Auto update

lnF

docker rm -f lnf-web
docker rm -f lnf-api

docker rmi ghcr.io/dnjooiopa/lnf-web
docker rmi ghcr.io/dnjooiopa/lnf-api

docker run --name lnf-api -d --network lnf --restart unless-stopped --env-file .env -v {DATA_PATH}:/app/db ghcr.io/dnjooiopa/lnf-api

docker run --name lnf-web -dp 9730:3000 --network lnf --restart unless-stopped ghcr.io/dnjooiopa/lnf-web

phoenixd

docker rm -f phoenixd

docker rmi ghcr.io/sethforprivacy/phoenixd

docker run --name phoenixd -dp 9740:9740 -v {DATA_PATH}:/phoenix/.phoenix/ --network lnf --restart unless-stopped ghcr.io/sethforprivacy/phoenixd