https://github.com/bitkarrot/lnbits-phoenixd
Docker compose for LNBIts and Phoenixd
https://github.com/bitkarrot/lnbits-phoenixd
bitcoin docker lightning lnbits phoenix self-hosted
Last synced: 2 months ago
JSON representation
Docker compose for LNBIts and Phoenixd
- Host: GitHub
- URL: https://github.com/bitkarrot/lnbits-phoenixd
- Owner: bitkarrot
- Created: 2024-05-03T23:44:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-17T19:34:30.000Z (11 months ago)
- Last Synced: 2024-07-17T23:44:48.577Z (11 months ago)
- Topics: bitcoin, docker, lightning, lnbits, phoenix, self-hosted
- Language: Dockerfile
- Homepage:
- Size: 40 KB
- Stars: 16
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LNBits-phoenixd
## What this is:
Run a super light, simple Lightning node (phoenixd) together with LNBits within Docker.
This is a docker-compose.yml for lnbits dev branch at LNBITS_COMMIT_HASH=2db5a83f4ed5dd21d99123a0947238f0674270c0, release 0.12.8
and phoenixd Dockerfile, source: https://github.com/ACINQ/phoenixd.Latest PHOENIXD_COMMIT_HASH=3b6feb3c3f209b7c7a77ef6843734840e97e502b
Latest update: Wed Jul 17 12:32:34 PDT 2024
This repo will be updated to latest LNBits release when it comes out.
## New to Docker?
No problem, here's a guide on how to get started on a vps
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04## To run:
git clone this repository.
```
docker-compose up
```
On initial docker launch, you will need to update the LNBits wallet endpoint in the server
settings with the corresponding phoenixd http key and the phoenixd endpoint:- Default phoenixd endpoint: http://localhost:9740/
- The phoenixd http key will be located in the phoenixd container at phoenixd.confInspect your docker containers:
Inside of LNBits Admin panel, use the name of the phoenix docker container instead of localhost:
- Save and Restart the LNBits server.
- Check your logs to see if connected to phoenixd wallet.
---## Remember to backup your phoenixd seed words.
To restore a seed from backup, run:
```
read SEED && docker compose exec phoenixd bash -c "echo $SEED > /phoenix/.phoenix/seed.dat"docker compose stop phoenixd
docker compose up -d phoenixd# Verify your seed/nodeid
docker compose exec phoenixd bash -c "cat /phoenix/.phoenix/seed.dat"
docker compose exec phoenixd bash -c "/phoenix/bin/phoenix-cli getinfo"```
---
## To give access with a domain nameOk, now that you have your Docker containers running on your VPS,
To Make LNbits install accessible over clearnet with a domain, follow these instructions:https://github.com/lnbits/lnbits/blob/dev/docs/guide/installation.md#reverse-proxy-with-automatic-https-using-caddy
### Don't have a vps? Here's a short list:
https://gist.github.com/bitkarrot/e394556e6d11028e8af5c4d435ba230e## Where to get more help
- Phoenixd discussions: https://github.com/ACINQ/phoenixd/discussions
- LNBits Telegram: @lnbits## Original Source
- https://github.com/lnbits/lnbits
- https://github.com/ACINQ/phoenixd## Note:
This is a pre-release, for those who want test out and deploy before next lnbits release.
There are some docker customizations which are not default to lnbits.
p.s. I am not super familiar with Docker, so if there is a better way to do this, please do suggest.