mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-21 13:34:26 +03:00
44 lines
1.9 KiB
YAML
44 lines
1.9 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: lightningmate_web_1
|
|
APP_PORT: 3001
|
|
|
|
web:
|
|
image: ghcr.io/opensourceminers/lightningmate:v0.7.0@sha256:b7c880ffdb419c45e63367e03b143a7408a1f4b2eb64d227d99f527b51f51a1a
|
|
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"
|