btcpayserver-docker/docker-compose-generator/docker-fragments/opt-add-lightning-terminal.yml
d11n 18748e6dd6
Fix anonymous datadirs (#691)
* Update LiT datadir

Uses the same folder as [in the LiT Dockerfile](https://github.com/lightninglabs/lightning-terminal/blob/master/Dockerfile#L62) to prevent the creation of anonymous volumes as [described here](https://stackoverflow.com/a/62654594/183537).

* Update Monero datadirs

Uses the same folder as [in the Monero Dockerfile](https://github.com/btcpayserver/dockerfile-deps/blob/master/Monero/0.18.0.0/linuxarm64v8.Dockerfile#L41) to prevent the creation of anonymous volumes as [described here](https://stackoverflow.com/a/62654594/183537).
2022-09-23 16:33:33 +02:00

34 lines
1.0 KiB
YAML

version: "3"
services:
btcpayserver:
environment:
BTCPAY_EXTERNALSERVICES: "Lightning Terminal:${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/lit/;"
lnd_lit:
image: "lightninglabs/lightning-terminal:v0.6.7-alpha-path-prefix"
restart: unless-stopped
expose:
- "8080"
volumes:
- "lnd_lit_datadir:/root/.lnd"
- "lnd_bitcoin_datadir:/data/lnd:ro"
links:
- bitcoind
- lnd_bitcoin
command:
- "--insecure-httplisten=0.0.0.0:8080"
- "--network=${NBITCOIN_NETWORK}"
- "--uipassword=${LIT_PASSWD}"
- "--lnd-mode=remote"
- "--remote.lnd.rpcserver=lnd_bitcoin:10009"
- "--remote.lnd.macaroonpath=/data/lnd/admin.macaroon"
- "--remote.lnd.tlscertpath=/data/lnd/tls.cert"
- "--faraday.connect_bitcoin"
- "--faraday.bitcoin.host=bitcoind:43782"
- "--faraday.bitcoin.user=lnd"
- "--faraday.bitcoin.password=afixedpasswordbecauselndsuckswithcookiefile"
volumes:
lnd_lit_datadir:
required:
- "bitcoin-lnd"
- "opt-lnd-grpc"