From 38210857ab9952f119625f12dba1413456341d66 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 16 Jul 2018 15:12:06 +0900 Subject: [PATCH] expose gRPC --- Production/nginx.tmpl | 7 +++++++ .../docker-fragments/bitcoin-lnd.yml | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Production/nginx.tmpl b/Production/nginx.tmpl index 7183aad..42f9fc8 100644 --- a/Production/nginx.tmpl +++ b/Production/nginx.tmpl @@ -297,6 +297,13 @@ server { include /etc/nginx/vhost.d/default_location; {{ end }} } + + {{ if (exists "/lnd/tls.cert") }} + location /lnrpc.Lightning { + grpc_pass grpcs://lnd_bitcoin:10009; + grpc_ssl_trusted_certificate /lnd/tls.cert; + } + {{ end }} } {{ end }} diff --git a/docker-compose-generator/docker-fragments/bitcoin-lnd.yml b/docker-compose-generator/docker-fragments/bitcoin-lnd.yml index b8107c3..7522eaa 100644 --- a/docker-compose-generator/docker-fragments/bitcoin-lnd.yml +++ b/docker-compose-generator/docker-fragments/bitcoin-lnd.yml @@ -10,6 +10,7 @@ services: LND_ENVIRONMENT: "${NBITCOIN_NETWORK:-regtest}" LND_EXTRA_ARGS: | restlisten=0.0.0.0:8080 + rpclisten=0.0.0.0:10009 bitcoin.node=bitcoind bitcoind.rpchost=bitcoind:43782 bitcoind.zmqpath=tcp://bitcoind:28332 @@ -45,6 +46,17 @@ services: zmqpubhashblock=tcp://0.0.0.0:28332 expose: - "28332" + + nginx: + links: + - "lnd_bitcoin" + volumes: + - "lnd_bitcoin_datadir:/lnd" + nginx-gen: + links: + - "lnd_bitcoin" + volumes: + - "lnd_bitcoin_datadir:/lnd" volumes: lnd_bitcoin_datadir: \ No newline at end of file