mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 17:14:22 +01:00
@@ -1,4 +1,5 @@
|
|||||||
{{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }}
|
{{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }}
|
||||||
|
|
||||||
{{ define "upstream" }}
|
{{ define "upstream" }}
|
||||||
{{ if .Address }}
|
{{ if .Address }}
|
||||||
{{/* If we got the containers from swarm and this container's port is published to host, use host IP:PORT */}}
|
{{/* If we got the containers from swarm and this container's port is published to host, use host IP:PORT */}}
|
||||||
@@ -309,11 +310,6 @@ server {
|
|||||||
location /lnd-rest/btc/ {
|
location /lnd-rest/btc/ {
|
||||||
rewrite ^/lnd-rest/btc/(.*) /$1 break;
|
rewrite ^/lnd-rest/btc/(.*) /$1 break;
|
||||||
proxy_pass http://lnd_bitcoin:8080/;
|
proxy_pass http://lnd_bitcoin:8080/;
|
||||||
}
|
|
||||||
{{ end }}
|
|
||||||
{{ if (eq $serviceName "lnd_bitcoin_rtl") }}
|
|
||||||
location /rtl/ {
|
|
||||||
proxy_pass http://lnd_bitcoin_rtl:3000/rtl/;
|
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if (eq $serviceName "btcqbo") }}
|
{{ if (eq $serviceName "btcqbo") }}
|
||||||
|
|||||||
@@ -37,34 +37,13 @@ services:
|
|||||||
- nbxplorer
|
- nbxplorer
|
||||||
- bitcoind
|
- bitcoind
|
||||||
|
|
||||||
lnd_bitcoin_rtl:
|
|
||||||
image: shahanafarooqui/rtl:0.2.10
|
|
||||||
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:
|
btcpayserver:
|
||||||
environment:
|
environment:
|
||||||
BTCPAY_BTCLIGHTNING: "type=lnd-rest;server=http://lnd_bitcoin:8080/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon;allowinsecure=true"
|
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_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"
|
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:
|
volumes:
|
||||||
- "lnd_bitcoin_datadir:/etc/lnd_bitcoin"
|
- "lnd_bitcoin_datadir:/etc/lnd_bitcoin"
|
||||||
- "lnd_bitcoin_rtl_datadir:/etc/lnd_bitcoin_rtl"
|
|
||||||
links:
|
links:
|
||||||
- lnd_bitcoin
|
- lnd_bitcoin
|
||||||
|
|
||||||
@@ -89,5 +68,4 @@ services:
|
|||||||
- "lnd_bitcoin_datadir:/lnd"
|
- "lnd_bitcoin_datadir:/lnd"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
lnd_bitcoin_datadir:
|
lnd_bitcoin_datadir:
|
||||||
lnd_bitcoin_rtl_datadir:
|
|
||||||
Reference in New Issue
Block a user