mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-20 21:23:41 +03:00
Co-authored-by: opensourceminers <claude@viceholdings.ch> Co-authored-by: Nate <nmfretz@users.noreply.github.com>
47 lines
2.0 KiB
YAML
47 lines
2.0 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: lightningmate_web_1
|
|
APP_PORT: 3001
|
|
|
|
web:
|
|
image: ghcr.io/opensourceminers/lightningmate:v0.9.1@sha256:ca6881ea393a491ef6b92961193253af06b8f292dfdc463cb336a202ba0ea63d
|
|
user: "1000:1000"
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
volumes:
|
|
# Read-only access to LND's tls.cert + macaroons.
|
|
- ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
|
|
# App's own writable data dir (autopilot config + rebalance accounting).
|
|
- ${APP_DATA_DIR}/data:/data
|
|
environment:
|
|
APP_LIGHTNING_NODE_IP: "$APP_LIGHTNING_NODE_IP"
|
|
APP_LIGHTNING_NODE_GRPC_PORT: "$APP_LIGHTNING_NODE_GRPC_PORT"
|
|
LND_SOCKET: "$APP_LIGHTNING_NODE_IP:$APP_LIGHTNING_NODE_GRPC_PORT"
|
|
LND_DIR: "/lnd"
|
|
LND_CERT_PATH: "/lnd/tls.cert"
|
|
LND_MACAROON_PATH: "/lnd/data/chain/bitcoin/$APP_BITCOIN_NETWORK/readonly.macaroon"
|
|
DATA_DIR: "/data"
|
|
PORT: "3001"
|
|
# Bind all interfaces so app_proxy (which authenticates) can reach us.
|
|
LM_BIND: "0.0.0.0"
|
|
# Per-install secrets for server-side auth. Other app containers share the
|
|
# Docker network, so the whole API requires a session token proving the
|
|
# per-app password Umbrel shows the user ($APP_PASSWORD, from
|
|
# deterministicPassword); $APP_SEED signs the tokens.
|
|
APP_PASSWORD: "$APP_PASSWORD"
|
|
APP_SEED: "$APP_SEED"
|
|
# Node management needs write access (like RTL / Thunderhub / Lightning
|
|
# Terminal). The autopilot itself stays OFF until the user turns it on, and
|
|
# every fund-moving action asks for confirmation. To run read-only instead,
|
|
# comment these two lines out.
|
|
LM_ENABLE_WRITE: "true"
|
|
LND_WRITE_MACAROON_PATH: "/lnd/data/chain/bitcoin/$APP_BITCOIN_NETWORK/admin.macaroon"
|
|
LM_SELL_FEE_BPS: "100"
|
|
LM_SELL_FEE_ADDRESS: "lightningmate@btcpay.opensourceminers.de"
|
|
# Umbrel's Tor proxy (SOCKS5): every third-party lookup goes through it.
|
|
TOR_PROXY_IP: "$TOR_PROXY_IP"
|
|
TOR_PROXY_PORT: "$TOR_PROXY_PORT"
|