Signet Lightning Node stack (Trustedcoin + Core lightning + LNBits) built on top of Nix and NixOS devShell using flakes.
- Docker and Docker Compose installed
# Build and start container
docker-compose up -d --builddocker exec -it lightning-node-container bashcd lightning-node-flake/
nix developsetup-lightning-envlightning-startlightning-statusOpen your browser to: http://localhost:8080
# Check logs
lightning-logs
# Or check individual logs
lightning-logs lightningd
lightning-logs lnbits
lightning-logs caddy
lightning-logs supervisorMake sure ports 8080, 5000 aren't in use on your host:
# On host machine
lsof -i :8080
lsof -i :5000# Stop container
docker-compose down
# Remove volumes (WARNING: deletes all data)
docker-compose down -v
# Rebuild
docker-compose up -d --build- Flake:
$HOME/lightning-node-flake/flake.nix - Lightning data:
$HOME/.lightning-node/.lightning/signet/ - LNbits:
$HOME/.lightning-node/lnbits/ - LNbits data:
$HOME/.lightning-node/lnbits/data
# Stop and remove container
docker-compose down
# Remove all data
docker-compose down -v
# Remove images
docker rmi lightning-node-containerThis project includes a Caddy configuration for serving LNBits behind a reverse proxy. To deploy LNBits securely on your VPS, you need to modify the Caddyfile to include your own domain.
Replace port :8080 with <your-actual-domain.com> and save the Caddyfile before starting.