Compare commits

...

29 Commits

Author SHA1 Message Date
Luke Childs
060c1620c3 Use prod image 2022-06-07 18:10:00 +07:00
Luke Childs
38c8f44044 Split cln rtl into own app 2022-06-07 11:45:50 +07:00
Luke Childs
164bc12401 Fix env vars 2022-06-07 11:32:00 +07:00
Luke Childs
cc9574175a Fix grpc port 2022-06-07 11:24:54 +07:00
Luke Childs
434971cf29 Set HTTP scheme 2022-06-07 11:23:17 +07:00
Luke Childs
c2259809a4 Fix certs dir 2022-06-07 11:19:35 +07:00
Luke Childs
3f2a42bc22 env vars 2022-06-07 11:16:11 +07:00
Luke Childs
51d44000ab Don't open port directly 2022-06-07 11:09:21 +07:00
Luke Childs
c42031440f add src 2022-06-07 11:04:00 +07:00
Luke Childs
a6d824906b nuke src 2022-06-07 11:02:59 +07:00
Luke Childs
600fae3c0f Fix build dir 2022-06-07 10:56:23 +07:00
Luke Childs
e510fcc6b6 Commit source 2022-06-07 10:54:44 +07:00
Luke Childs
13f7ce0612 Add app proxy 2022-06-07 09:07:42 +07:00
Luke Childs
45c00643fe Fix env var 2022-06-07 09:02:19 +07:00
Luke Childs
f0419cc13b Wire up env vars 2022-06-07 09:01:10 +07:00
Luke Childs
183e4ccb55 Fix arg 2022-06-07 08:28:42 +07:00
Luke Childs
fae458c6f7 Expose grpc and p2p ports 2022-06-07 08:27:29 +07:00
Luke Childs
1b1739d509 Fix url 2022-06-07 05:46:38 +07:00
Luke Childs
0027281c7b Fix dir 2022-06-07 05:37:10 +07:00
Luke Childs
e3253d7943 Clean up data dirs and pin IP 2022-06-07 05:33:47 +07:00
Luke Childs
fb3218eb1a change password 2022-06-07 04:56:10 +07:00
Luke Childs
ff573c54aa password 2022-06-07 04:51:24 +07:00
Luke Childs
e42c40b648 Add RTL 2022-06-07 04:48:56 +07:00
Luke Childs
f71c1b4e0e Use HTTP 2022-06-07 04:30:30 +07:00
Luke Childs
cbc4da3ee4 Expose c-lightning-rest port 2022-06-07 04:27:38 +07:00
Luke Childs
e503e1dd3b Wire up bitcoin RPC deets 2022-06-07 04:17:46 +07:00
Luke Childs
ac0b400c6c Comment out app 2022-06-07 04:16:04 +07:00
Luke Childs
460fc0f8ed Fix data dir 2022-06-07 04:08:45 +07:00
Luke Childs
f892d4c19a Init core-lightning 2022-06-07 04:06:16 +07:00
10 changed files with 186 additions and 0 deletions

View File

View File

@ -0,0 +1,25 @@
version: "3.8"
services:
app_proxy:
environment:
APP_HOST: $APP_CORE_LIGHTNING_RTL_IP
APP_PORT: 3000
rtl:
image: shahanafarooqui/rtl:0.12.3
restart: on-failure
environment:
PORT: 3000
APP_PASSWORD: $APP_PASSWORD
LN_IMPLEMENTATION: CLT
LN_SERVER_URL: http://${APP_CORE_LIGHTNING_REST_IP}:${APP_CORE_LIGHTNING_REST_PORT}/v1
MACAROON_PATH: /c-lightning-rest/certs
RTL_CONFIG_PATH: /data/
RTL_COOKIE_PATH: /data/.cookie
volumes:
- "${APP_DATA_DIR}/data/rtl:/data"
- "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/c-lightning-rest/certs"
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_RTL_IP}

View File

@ -0,0 +1 @@
export APP_CORE_LIGHTNING_RTL_IP="10.21.21.97"

View File

@ -0,0 +1,38 @@
manifestVersion: 1
id: core-lightning-rtl
category: Finance
name: Ride The Lightning (Core Lightning)
version: "0.14.2-beta"
tagline: Run your personal Lightning Network node
description: >-
Run your personal Lightning Network node, and join the future of Bitcoin today.
The Lightning Network allows ultra cheap and almost instant Bitcoin transactions.
By running a Lightning node, you can not only self-custody your Bitcoin on
Lightning, but also earn sats by routing payments on the network.
Connect Zeus Wallet, Zap, or any other wallet that supports lndconnect
to remotely manage and access your node from anywhere.
Powered by LND.
An official app from Umbrel.
developer: Umbrel
website: https://umbrel.com
dependencies:
- core-lightning
repo: https://github.com/getumbrel/umbrel-lightning
support: https://community.getumbrel.com/c/bitcoin-and-lightning
port: 3100
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
- 4.jpg
- 5.jpg
path: ""
deterministicPassword: true

View File

View File

@ -0,0 +1,65 @@
version: "3.8"
services:
app_proxy:
environment:
APP_HOST: $APP_CORE_LIGHTNING_IP
APP_PORT: $APP_CORE_LIGHTNING_PORT
app:
image: getumbrel/umbrel-core-lightning:v0.1.0@sha256:8586dc018f82f5663a50a11c785ceeb025f9bf1e547372f18de4a1fb3f3641e2
command: npm run dev:backend
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/lightningd:/lightningd
- "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/c-lightning-rest/certs"
environment:
PORT: "${APP_CORE_LIGHTNING_PORT}"
LIGHTNING_HOST: ${APP_CORE_LIGHTNING_DAEMON_IP}
LIGHTNING_NETWORK: bitcoin
LIGHTNING_GRPC_PORT: ${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
LIGHTNING_REST_PORT: ${APP_CORE_LIGHTNING_REST_PORT}
LIGHTNING_REST_MACAROON_PATH: "/c-lightning-rest/certs/access.macaroon"
LIGHTNING_REST_HIDDEN_SERVICE: http://${APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE}
LOCAL_HOST: http://${DEVICE_DOMAIN_NAME}
CA_CERT: /lightningd/bitcoin/ca.pem
CLIENT_KEY: /lightningd/bitcoin/client-key.pem
CLIENT_CERT: /lightningd/bitcoin/client.pem
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_IP}
c-lightning-rest:
image: saubyk/c-lightning-rest:0.7.2
restart: on-failure
ports:
- ${APP_CORE_LIGHTNING_REST_PORT}:${APP_CORE_LIGHTNING_REST_PORT}
environment:
PORT: "${APP_CORE_LIGHTNING_REST_PORT}"
PROTOCOL: "http"
volumes:
- "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/usr/src/app/certs"
- "${APP_DATA_DIR}/data/lightningd:/root/.lightning"
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_REST_IP}
lightningd:
image: elementsproject/lightningd:v0.11.1
restart: on-failure
ports:
- ${APP_CORE_LIGHTNING_DAEMON_PORT}:9735
command:
- --bitcoin-rpcconnect=${APP_BITCOIN_NODE_IP}
- --bitcoin-rpcuser=${APP_BITCOIN_RPC_USER}
- --bitcoin-rpcpassword=${APP_BITCOIN_RPC_PASS}
- --proxy=${TOR_PROXY_IP}:${TOR_PROXY_PORT}
- --bind-addr=${APP_CORE_LIGHTNING_DAEMON_IP}:9735
- --addr=statictor:${TOR_PROXY_IP}:29051
- --tor-service-password=${TOR_PASSWORD}
- --grpc-port=${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
volumes:
- "${APP_DATA_DIR}/data/lightningd:/root/.lightning"
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_DAEMON_IP}

12
core-lightning/exports.sh Normal file
View File

@ -0,0 +1,12 @@
export APP_CORE_LIGHTNING_IP="10.21.21.94"
export APP_CORE_LIGHTNING_PORT="2103"
export APP_CORE_LIGHTNING_REST_IP="10.21.21.95"
export APP_CORE_LIGHTNING_REST_PORT="2104"
export APP_CORE_LIGHTNING_DAEMON_IP="10.21.21.96"
export APP_CORE_LIGHTNING_DAEMON_PORT="9736"
export APP_CORE_LIGHTNING_DAEMON_GRPC_PORT="2105"
export APP_CORE_LIGHTNING_REST_CERT_DIR="${EXPORTS_APP_DIR}/data/c-lightning-rest/certs"
rest_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-rest/hostname"
export APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE="$(cat "${rest_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"

View File

@ -0,0 +1,7 @@
# Core Lightning Frontend Hidden Service
HiddenServiceDir /data/app-$APP_ID
HiddenServicePort 80 $APP_PROXY_HOSTNAME:$APP_PROXY_PORT
# Core Lightning REST Hidden Service
HiddenServiceDir /data/app-$APP_ID-rest
HiddenServicePort $APP_CORE_LIGHTNING_REST_PORT $APP_CORE_LIGHTNING_REST_IP:$APP_CORE_LIGHTNING_REST_PORT

View File

@ -0,0 +1,38 @@
manifestVersion: 1
id: core-lightning
category: Finance
name: Core Lightning
version: "0.14.2-beta"
tagline: Run your personal Lightning Network node
description: >-
Run your personal Lightning Network node, and join the future of Bitcoin today.
The Lightning Network allows ultra cheap and almost instant Bitcoin transactions.
By running a Lightning node, you can not only self-custody your Bitcoin on
Lightning, but also earn sats by routing payments on the network.
Connect Zeus Wallet, Zap, or any other wallet that supports lndconnect
to remotely manage and access your node from anywhere.
Powered by LND.
An official app from Umbrel.
developer: Umbrel
website: https://umbrel.com
dependencies:
- bitcoin
repo: https://github.com/getumbrel/umbrel-lightning
support: https://community.getumbrel.com/c/bitcoin-and-lightning
port: 2103
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
- 4.jpg
- 5.jpg
path: ""
defaultPassword: ""