From d9b1168e5c8f091c22ca0fcb33df84e45a9b25ae Mon Sep 17 00:00:00 2001 From: AaronDewes Date: Sun, 6 Nov 2022 08:46:43 +0000 Subject: [PATCH] Convert lnbits to app.yml v4 --- apps/lnbits/app.yml | 70 --------------------------------------- apps/lnbits/app.yml.jinja | 58 ++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 70 deletions(-) delete mode 100644 apps/lnbits/app.yml create mode 100644 apps/lnbits/app.yml.jinja diff --git a/apps/lnbits/app.yml b/apps/lnbits/app.yml deleted file mode 100644 index caca154..0000000 --- a/apps/lnbits/app.yml +++ /dev/null @@ -1,70 +0,0 @@ -# SPDX-FileCopyrightText: 2021 Citadel and contributors -# -# SPDX-License-Identifier: AGPL-3.0-only - -# yaml-language-server: $schema=../../app-standard-v3.yml - -version: 3 -metadata: - category: Lightning Node Management - name: LNbits - version: baf55af - tagline: Multi-user wallet management system - description: Description coming soon. - developers: - LNbits: https://github.com/lnbits/lnbits - dependencies: - - - lnd - - c-lightning - repo: https://github.com/lnbits/lnbits - support: https://t.me/lnbits - gallery: - - 1.jpg - - 2.jpg - - 3.jpg - defaultPassword: $APP_SEED -containers: - - image: lnbitsdocker/lnbits-legend:0.9.4@sha256:0dbcc5ad5c5d4439c4ee5148206ecd3fbc28422aec2847a3f17e968205dab68b - command: sh -c 'uvicorn lnbits.__main__:app --port 5000 --proxy-headers --host - 0.0.0.0 --forwarded-allow-ips "*"' - user: 1000:1000 - init: true - port: 5000 - environment: - LNBITS_DATA_FOLDER: /data - LNBITS_BACKEND_WALLET_CLASS: LndRestWallet - LND_REST_ENDPOINT: https://$LND_IP:$LND_REST_PORT/ - LND_REST_CERT: /lnd/tls.cert - LND_REST_MACAROON: /lnd/data/chain/bitcoin/$BITCOIN_NETWORK/admin.macaroon - LNBITS_SITE_TITLE: LNbits on Citadel - LNBITS_DEFAULT_WALLET_NAME: LNbits wallet - LNBITS_DISABLED_EXTENSIONS: amilk - LNBITS_ADMIN_LOGIN_KEY: $APP_SEED - LNBITS_ADMIN_EXTENSIONS: ngrok,admin - name: main-lnd - data: - - data:/data - restart: on-failure - requires: - - lnd - - image: lnbitsdocker/lnbits-legend:0.9.4@sha256:0dbcc5ad5c5d4439c4ee5148206ecd3fbc28422aec2847a3f17e968205dab68b - command: sh -c 'uvicorn lnbits.__main__:app --port 5000 --proxy-headers --host - 0.0.0.0 --forwarded-allow-ips "*"' - user: 1000:1000 - init: true - port: 5000 - environment: - LNBITS_DATA_FOLDER: /data - LNBITS_BACKEND_WALLET_CLASS: CLightningWallet - CLIGHTNING_RPC: /c-lightning/bitcoin/lightning-rpc - LNBITS_SITE_TITLE: LNbits (c-lightning) - LNBITS_DEFAULT_WALLET_NAME: LNbits wallet - LNBITS_DISABLED_EXTENSIONS: amilk - LNBITS_ADMIN_LOGIN_KEY: $APP_SEED - LNBITS_ADMIN_EXTENSIONS: ngrok,admin - name: main-c-lightning - data: - - data:/data - requires: - - c-lightning - restart: on-failure diff --git a/apps/lnbits/app.yml.jinja b/apps/lnbits/app.yml.jinja new file mode 100644 index 0000000..b691cfe --- /dev/null +++ b/apps/lnbits/app.yml.jinja @@ -0,0 +1,58 @@ +citadel_version: 4 +metadata: + name: LNbits + version: baf55af + category: Lightning Node Management + tagline: Multi-user wallet management system + developers: + LNbits: https://github.com/lnbits/lnbits + permissions: + {% if services is containing("lnd") %} + - lnd + {% elif services is containing("c-lightning") %} + - c-lightning + {% else %} + - - lnd + - c-lightning + {% endif %} + repo: + Public: https://github.com/lnbits/lnbits + support: https://t.me/lnbits + gallery: + - 1.jpg + - 2.jpg + - 3.jpg + defaultPassword: $APP_SEED + torOnly: false + description: Description coming soon. +services: + main-lnd: + image: lnbitsdocker/lnbits-legend:0.9.4@sha256:0dbcc5ad5c5d4439c4ee5148206ecd3fbc28422aec2847a3f17e968205dab68b + user: 1000:1000 + restart: on-failure + init: true + command: sh -c 'uvicorn lnbits.__main__:app --port 5000 --proxy-headers --host 0.0.0.0 --forwarded-allow-ips "*"' + environment: + LNBITS_DEFAULT_WALLET_NAME: LNbits wallet + LNBITS_DISABLED_EXTENSIONS: amilk + LNBITS_ADMIN_EXTENSIONS: ngrok,admin + LNBITS_DATA_FOLDER: /data + LNBITS_SITE_TITLE: LNbits + {% if services is containing("lnd") %} + LNBITS_BACKEND_WALLET_CLASS: LndRestWallet + LND_REST_CERT: /lnd/tls.cert + LND_REST_MACAROON: /lnd/data/chain/bitcoin/$BITCOIN_NETWORK/admin.macaroon + LND_REST_ENDPOINT: https://$LND_IP:$LND_REST_PORT/ + {% elif services is containing("c-lightning") %} + CLIGHTNING_RPC: /c-lightning/bitcoin/lightning-rpc + LNBITS_BACKEND_WALLET_CLASS: CLightningWallet + {% endif %} + port: 5000 + mounts: + {% if services is containing("lnd") %} + lnd: /lnd + {% elif services is containing("c-lightning") %} + c_lightning: /c-lightning + {% endif %} + data: + data: /data