This reverts commit c6c290506c.
This commit is contained in:
nicolas.dorier
2019-02-25 14:25:45 +09:00
parent c6c290506c
commit 73b09ee3e9
2 changed files with 29 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
{{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }}
{{ define "upstream" }}
{{ if .Address }}
{{/* If we got the containers from swarm and this container's port is published to host, use host IP:PORT */}}
@@ -310,6 +309,11 @@ server {
location /lnd-rest/btc/ {
rewrite ^/lnd-rest/btc/(.*) /$1 break;
proxy_pass http://lnd_bitcoin:8080/;
}
{{ end }}
{{ if (eq $serviceName "lnd_bitcoin_rtl") }}
location /rtl/ {
proxy_pass http://lnd_bitcoin_rtl:3000/rtl/;
}
{{ end }}
{{ if (eq $serviceName "btcqbo") }}

View File

@@ -37,13 +37,34 @@ services:
- nbxplorer
- bitcoind
lnd_bitcoin_rtl:
image: shahanafarooqui/rtl:0.2.11
restart: unless-stopped
environment:
LND_SERVER_URL: http://lnd_bitcoin:8080/v1
MACAROON_PATH: /etc/lnd
LND_CONFIG_PATH: /etc/lnd/lnd.conf
RTL_CONFIG_PATH: /data/RTL.conf
BITCOIND_CONFIG_PATH: /etc/bitcoin/bitcoin.conf
RTL_SSO: 1
RTL_COOKIE_PATH: /data/.cookie
LOGOUT_REDIRECT_LINK: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/server/services
volumes:
- "bitcoin_datadir:/etc/bitcoin"
- "lnd_bitcoin_datadir:/etc/lnd"
- "lnd_bitcoin_rtl_datadir:/data"
expose:
- "3000"
btcpayserver:
environment:
BTCPAY_BTCLIGHTNING: "type=lnd-rest;server=http://lnd_bitcoin:8080/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon;allowinsecure=true"
BTCPAY_BTCEXTERNALRTL: "server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}${BTCPAY_ROOTPATH:-/}rtl/api/authenticate/cookie;cookiefile=/etc/lnd_bitcoin_rtl/.cookie"
BTCPAY_BTCEXTERNALLNDGRPC: "type=lnd-grpc;server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon;macaroondirectorypath=/etc/lnd_bitcoin"
BTCPAY_BTCEXTERNALLNDREST: "type=lnd-rest;server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/lnd-rest/btc/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon;macaroondirectorypath=/etc/lnd_bitcoin"
volumes:
- "lnd_bitcoin_datadir:/etc/lnd_bitcoin"
- "lnd_bitcoin_rtl_datadir:/etc/lnd_bitcoin_rtl"
links:
- lnd_bitcoin
@@ -69,3 +90,4 @@ services:
volumes:
lnd_bitcoin_datadir:
lnd_bitcoin_rtl_datadir: