Skip to content

Add lnbits-v1 to sndev #2184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ grpc_proxy=http://tor:7050/

# lnbits
LNBITS_WEB_PORT=5001
LNBITS_WEB_PORT_V1=5002

# CPU shares for each category
CPU_SHARES_IMPORTANT=1024
Expand Down
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,36 @@ services:
CONNECT: "localhost:${LNBITS_WEB_PORT}"
TORDIR: "/app/.tor"
cpu_shares: "${CPU_SHARES_LOW}"
lnbits-v1:
build:
context: ./docker/lnbits-v1
container_name: lnbits-v1
profiles:
- wallets
restart: unless-stopped
ports:
- "${LNBITS_WEB_PORT_V1}:5000"
depends_on:
tor:
condition: service_healthy
restart: true
lnd:
condition: service_healthy
restart: true
environment:
- LNBITS_ADMIN_UI=true
- LNBITS_BACKEND_WALLET_CLASS=LndWallet
- LND_GRPC_ENDPOINT=lnd
- LND_GRPC_PORT=10009
- LND_GRPC_CERT=/app/.lnd/tls.cert
- LND_GRPC_MACAROON=/app/.lnd/data/chain/bitcoin/regtest/admin.macaroon
volumes:
- lnd:/app/.lnd
- tordata:/app/.tor
labels:
CONNECT: "localhost:${LNBITS_WEB_PORT_V1}"
TORDIR: "/app/.tor"
cpu_shares: "${CPU_SHARES_LOW}"
dnsmasq:
image: 4km3/dnsmasq:2.90-r3
profiles:
Expand Down
5 changes: 5 additions & 0 deletions docker/lnbits-v1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM lnbits/lnbits:latest


COPY ["./data/database.sqlite3", "/app/data/database.sqlite3"]
COPY ["./data/.super_user", "/app/data/.super_user"]
1 change: 1 addition & 0 deletions docker/lnbits-v1/data/.super_user
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e46288268b67457399a5fca81809573e
Binary file added docker/lnbits-v1/data/database.sqlite3
Binary file not shown.