diff --git a/apps/lnbits/data/.gitkeep b/apps/lnbits/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/lnbits/docker-compose.yml b/apps/lnbits/docker-compose.yml new file mode 100644 index 0000000..e5b96a1 --- /dev/null +++ b/apps/lnbits/docker-compose.yml @@ -0,0 +1,38 @@ +version: "3.7" + +x-logging: + &default-logging + driver: journald + options: + tag: "umbrel-app {{.Name}}" + +services: + web: + image: louneskmt/lnbits:v0.2.0@sha256:15e10d926d4b14774c7b2cc74f722e887ec198f1f1e7d35ee66a517e297ae064 + init: true + logging: *default-logging + restart: on-failure + stop_grace_period: 1m + ports: + - "$APP_LNBITS_PORT:$APP_LNBITS_PORT" + volumes: + - ${APP_DATA_DIR}/data:/data + - ${LND_DATA_DIR}:/lnd:ro + environment: + # Global + PORT: $APP_LNBITS_PORT + LNBITS_DATA_FOLDER: "/data" + + # LND + LNBITS_BACKEND_WALLET_CLASS: LndWallet + LND_GRPC_ENDPOINT: $LND_IP + LND_GRPC_PORT: $LND_GRPC_PORT + LND_GRPC_CERT: "/lnd/tls.cert" + LND_GRPC_MACAROON: "/lnd/data/chain/bitcoin/$BITCOIN_NETWORK/admin.macaroon" + + # App + LNBITS_SITE_TITLE: "LNbits - Umbrel" + LNBITS_DEFAULT_WALLET_NAME: "LNbits wallet" + networks: + default: + ipv4_address: $APP_LNBITS_IP diff --git a/scripts/configure b/scripts/configure index 31a7e3b..e0232a1 100755 --- a/scripts/configure +++ b/scripts/configure @@ -143,6 +143,8 @@ APP_BTCPAY_SERVER_IP="10.21.21.19" APP_BTCPAY_SERVER_PORT="3003" APP_BTCPAY_SERVER_NBXPLORER_IP="10.21.21.20" APP_BTCPAY_SERVER_DB_IP="10.21.21.21" +APP_LNBITS_IP="10.21.21.29" +APP_LNBITS_PORT="3007" APP_MEMPOOL_IP="10.21.21.26" APP_MEMPOOL_PORT="3006" APP_MEMPOOL_API_IP="10.21.21.27" @@ -294,6 +296,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_BTCPAY_SERVER_PORT}/g" "${template}" sed -i "s//${APP_BTCPAY_SERVER_NBXPLORER_IP}/g" "${template}" sed -i "s//${APP_BTCPAY_SERVER_DB_IP}/g" "${template}" + sed -i "s//${APP_LNBITS_IP}/g" "${template}" + sed -i "s//${APP_LNBITS_PORT}/g" "${template}" sed -i "s//${APP_MEMPOOL_IP}/g" "${template}" sed -i "s//${APP_MEMPOOL_PORT}/g" "${template}" sed -i "s//${APP_MEMPOOL_DB_IP}/g" "${template}" diff --git a/templates/.env-sample b/templates/.env-sample index dee05f1..63c34f1 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -46,6 +46,8 @@ APP_BTCPAY_SERVER_IP= APP_BTCPAY_SERVER_PORT= APP_BTCPAY_SERVER_NBXPLORER_IP= APP_BTCPAY_SERVER_DB_IP= +APP_LNBITS_IP= +APP_LNBITS_PORT= APP_MEMPOOL_IP= APP_MEMPOOL_PORT= APP_MEMPOOL_DB_IP= diff --git a/templates/torrc-sample b/templates/torrc-sample index 138d096..679437e 100644 --- a/templates/torrc-sample +++ b/templates/torrc-sample @@ -61,6 +61,9 @@ HiddenServicePort 80 : HiddenServiceDir /var/lib/tor/app-btcpay-server HiddenServicePort 80 : +# lnbits Hidden Service +HiddenServiceDir /var/lib/tor/app-lnbits +HiddenServicePort 80 : # mempool Hidden Service HiddenServiceDir /var/lib/tor/app-mempool HiddenServicePort 80 :