mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 09:05:13 +01:00
added option to expose lightning node port
This commit is contained in:
@@ -337,6 +337,7 @@ module.exports = class extends Generator {
|
||||
bitcoin_node_ip: '',
|
||||
bitcoin_mode: 'internal',
|
||||
bitcoin_expose: false,
|
||||
lightning_expose: false,
|
||||
gatekeeper_apiproperties: defaultAPIProperties,
|
||||
gatekeeper_ipwhitelist: '',
|
||||
gatekeeper_keys: { configEntries: [], clientInformation: [] },
|
||||
|
||||
@@ -83,6 +83,13 @@ module.exports = {
|
||||
default: utils._getDefault( 'bitcoin_expose' ),
|
||||
message: prefix()+'Expose bitcoin full node outside of the docker network?'+utils._getHelp('bitcoin_expose'),
|
||||
},
|
||||
{
|
||||
when: function(props) { return installerDocker(props) && props.features.indexOf('lightning') !== -1 },
|
||||
type: 'confirm',
|
||||
name: 'lightning_expose',
|
||||
default: utils._getDefault( 'lightning_expose' ),
|
||||
message: prefix()+'Expose lightning node outside of the docker network?'+utils._getHelp('lightning_expose'),
|
||||
},
|
||||
{
|
||||
when: installerDocker,
|
||||
type: 'list',
|
||||
|
||||
@@ -85,8 +85,11 @@ services:
|
||||
lightning:
|
||||
command: $USER lightningd
|
||||
image: <%= devregistry?'registry.skp.rocks:5000/$ARCH/':'' %>cyphernode/clightning
|
||||
|
||||
<% if( lightning_expose ) { %>
|
||||
ports:
|
||||
- "9735:9735"
|
||||
<% } %>
|
||||
volumes:
|
||||
- "<%= lightning_datapath%>:/.lightning"
|
||||
- "<%= lightning_datapath%>/bitcoin.conf:/.bitcoin/bitcoin.conf"
|
||||
|
||||
Reference in New Issue
Block a user