From 8693eafe7a4e98e9b88de7de9250c9b2ab4cb465 Mon Sep 17 00:00:00 2001 From: Vlad Goryachev <101550606+Impa10r@users.noreply.github.com> Date: Tue, 28 May 2024 13:23:06 +0200 Subject: [PATCH] App Submission: PeerSwap (#932) Co-authored-by: smolgrrr --- peerswap/data/.gitkeep | 0 peerswap/docker-compose.yml | 30 ++++++++++++++++++++++++++++++ peerswap/exports.sh | 1 + peerswap/umbrel-app.yml | 22 ++++++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 peerswap/data/.gitkeep create mode 100644 peerswap/docker-compose.yml create mode 100644 peerswap/exports.sh create mode 100644 peerswap/umbrel-app.yml diff --git a/peerswap/data/.gitkeep b/peerswap/data/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/peerswap/docker-compose.yml b/peerswap/docker-compose.yml new file mode 100644 index 00000000..b1fd6dfc --- /dev/null +++ b/peerswap/docker-compose.yml @@ -0,0 +1,30 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: peerswap_web_1 + APP_PORT: 1984 + + web: + image: ghcr.io/impa10r/peerswap-web:v1.4.7@sha256:9bc6aa9ab40e5762a5b6fdac530f5739cb85f637621cfc9a0ed412af8452b9d2 + user: "1000:1000" + restart: on-failure + stop_grace_period: 1m + environment: + # App + NETWORK: $APP_BITCOIN_NETWORK + # LND + LND_HOST: ${APP_LIGHTNING_NODE_IP}:${APP_LIGHTNING_NODE_GRPC_PORT} + LND_MACAROONPATH: /home/peerswap/.lnd/data/chain/bitcoin/${APP_BITCOIN_NETWORK}/admin.macaroon + # Elements RPC + ELEMENTS_USER: elements + ELEMENTS_PORT: $APP_ELEMENTS_NODE_RPC_PORT + ELEMENTS_HOST: http://elements_node_1 + ELEMENTS_WALLET: peerswap + ELEMENTS_FOLDER: /home/elements/.elements + ELEMENTS_FOLDER_MAPPED: /home/peerswap/.elements + volumes: + - ${APP_DATA_DIR}/data:/home/peerswap/.peerswap + - ${APP_LIGHTNING_NODE_DATA_DIR}:/home/peerswap/.lnd:ro + - ${ELEMENTS_DATA_DIR}:/home/peerswap/.elements:ro diff --git a/peerswap/exports.sh b/peerswap/exports.sh new file mode 100644 index 00000000..52858fa0 --- /dev/null +++ b/peerswap/exports.sh @@ -0,0 +1 @@ +export ELEMENTS_DATA_DIR="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)/elements/data" \ No newline at end of file diff --git a/peerswap/umbrel-app.yml b/peerswap/umbrel-app.yml new file mode 100644 index 00000000..01eff3e7 --- /dev/null +++ b/peerswap/umbrel-app.yml @@ -0,0 +1,22 @@ +manifestVersion: 1 +id: peerswap +category: bitcoin +name: PeerSwap +version: "1.4.7" +tagline: Balance your lightning channels with Liquid BTC +description: PeerSwap enables Lightning Network nodes to balance their channels by facilitating atomic swaps with direct peers. PeerSwap enhances decentralization of the Lightning Network by enabling all nodes to be their own swap provider. No centralized coordinator, no 3rd party rent collector, and lowest cost channel balancing means small nodes can better compete with large nodes. Includes Liquid Peg-in functionality. +developer: PeerSwap Project +website: https://peerswap.dev +dependencies: + - lightning + - elements +repo: https://github.com/Impa10r/peerswap-web +support: https://discord.com/invite/wpNv3PG8G2 +port: 1984 +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +path: "" +submitter: Vlad Goryachev +submission: https://github.com/getumbrel/umbrel-apps/pull/932