Wire up env vars

This commit is contained in:
Luke Childs 2022-06-07 09:01:10 +07:00
parent 183e4ccb55
commit f0419cc13b
4 changed files with 33 additions and 12 deletions

View File

@ -10,7 +10,7 @@ services:
# volumes: # volumes:
# - ${APP_DATA_DIR}/data/app:/data # - ${APP_DATA_DIR}/data/app:/data
# environment: # environment:
# PORT: "3006" # PORT: "${APP_CORE_LIGHTNING_IP}"
# VUE_APP_API_URL: # VUE_APP_API_URL:
# BACKUP_STATUS_FILE: /data/backup-status.json # BACKUP_STATUS_FILE: /data/backup-status.json
# LND_REST_HIDDEN_SERVICE: rest.onion # LND_REST_HIDDEN_SERVICE: rest.onion
@ -21,7 +21,11 @@ services:
# TOR_PROXY_IP: tor # TOR_PROXY_IP: tor
# TOR_PROXY_PORT: 9050 # TOR_PROXY_PORT: 9050
# ports: # ports:
# - "3006:3006" # - "${APP_CORE_LIGHTNING_IP}:${APP_CORE_LIGHTNING_IP}"
# networks:
# default:
# ipv4_address: ${APP_CORE_LIGHTNING_IP}
rtl: rtl:
image: shahanafarooqui/rtl:0.12.3 image: shahanafarooqui/rtl:0.12.3
@ -31,42 +35,44 @@ services:
environment: environment:
APP_PASSWORD: moneyprintergomoo APP_PASSWORD: moneyprintergomoo
LN_IMPLEMENTATION: CLT LN_IMPLEMENTATION: CLT
LN_SERVER_URL: http://c-lightning-rest:3001/v1 LN_SERVER_URL: http://${APP_CORE_LIGHTNING_REST_IP}:${APP_CORE_LIGHTNING_REST_PORT}/v1
MACAROON_PATH: /c-lightning-rest/certs MACAROON_PATH: /c-lightning-rest/certs
RTL_CONFIG_PATH: /data/ RTL_CONFIG_PATH: /data/
RTL_COOKIE_PATH: /data/.cookie RTL_COOKIE_PATH: /data/.cookie
volumes: volumes:
- "${APP_DATA_DIR}/data/rtl:/data" - "${APP_DATA_DIR}/data/rtl:/data"
- "${APP_DATA_DIR}/data/c-lightning-rest/certs:/c-lightning-rest/certs" - "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/c-lightning-rest/certs"
c-lightning-rest: c-lightning-rest:
image: saubyk/c-lightning-rest:0.7.2 image: saubyk/c-lightning-rest:0.7.2
restart: on-failure restart: on-failure
ports: ports:
- 1234:3001 - ${APP_CORE_LIGHTNING_REST_PORT}:${APP_CORE_LIGHTNING_REST_PORT}
environment: environment:
PORT: "${APP_CORE_LIGHTNING_REST_PORT}"
PROTOCOL: "http" PROTOCOL: "http"
volumes: volumes:
- "${APP_DATA_DIR}/data/c-lightning-rest/certs:/usr/src/app/certs" - "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/usr/src/app/certs"
- "${APP_DATA_DIR}/data/lightningd:/root/.lightning" - "${APP_DATA_DIR}/data/lightningd:/root/.lightning"
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_REST_IP}
lightningd: lightningd:
image: elementsproject/lightningd:v0.11.1 image: elementsproject/lightningd:v0.11.1
restart: on-failure restart: on-failure
ports: ports:
- 1236:1236 - ${APP_CORE_LIGHTNING_DAEMON_PORT}:9735
- 9734:9735
command: command:
- --bitcoin-rpcconnect=${APP_BITCOIN_NODE_IP} - --bitcoin-rpcconnect=${APP_BITCOIN_NODE_IP}
- --bitcoin-rpcuser=${APP_BITCOIN_RPC_USER} - --bitcoin-rpcuser=${APP_BITCOIN_RPC_USER}
- --bitcoin-rpcpassword=${APP_BITCOIN_RPC_PASS} - --bitcoin-rpcpassword=${APP_BITCOIN_RPC_PASS}
- --proxy=${TOR_PROXY_IP}:${TOR_PROXY_PORT} - --proxy=${TOR_PROXY_IP}:${TOR_PROXY_PORT}
- --bind-addr=10.21.21.123:9735 - --bind-addr=${APP_CORE_LIGHTNING_DAEMON_IP}:9735
- --addr=statictor:${TOR_PROXY_IP}:29051 - --addr=statictor:${TOR_PROXY_IP}:29051
- --tor-service-password=${TOR_PASSWORD} - --tor-service-password=${TOR_PASSWORD}
- --grpc-port=1236
volumes: volumes:
- "${APP_DATA_DIR}/data/lightningd:/root/.lightning" - "${APP_DATA_DIR}/data/lightningd:/root/.lightning"
networks: networks:
default: default:
ipv4_address: 10.21.21.123 ipv4_address: ${APP_CORE_LIGHTNING_DAEMON_IP}

View File

@ -0,0 +1,8 @@
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_REST_CERT_DIR="${APP_DATA_DIR}/data/c-lightning-rest/certs"

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 80 $APP_CORE_LIGHTNING_REST_IP:$APP_CORE_LIGHTNING_REST_PORT

View File

@ -27,7 +27,7 @@ dependencies:
- bitcoin - bitcoin
repo: https://github.com/getumbrel/umbrel-lightning repo: https://github.com/getumbrel/umbrel-lightning
support: https://community.getumbrel.com/c/bitcoin-and-lightning support: https://community.getumbrel.com/c/bitcoin-and-lightning
port: 2101 port: 2103
gallery: gallery:
- 1.jpg - 1.jpg
- 2.jpg - 2.jpg