mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-26 15:54:28 +01:00
only write stuff to config files, when its actually there
This commit is contained in:
@@ -3,11 +3,17 @@ BITCOIN_INTERNAL=<%= (bitcoin_mode==="internal"?'true':'false') %>
|
||||
FEATURE_LIGHTNING=<%= (features.indexOf('lightning') != -1)?'true':'false' %>
|
||||
FEATURE_OTSCLIENT=<%= (features.indexOf('otsclient') != -1)?'true':'false' %>
|
||||
LIGHTNING_IMPLEMENTATION=<%= lightning_implementation %>
|
||||
BITCOIN_DATAPATH=<%= bitcoin_datapath %>
|
||||
LIGHTNING_DATAPATH=<%= lightning_datapath %>
|
||||
OTSCLIENT_DATAPATH=<%= otsclient_datapath %>
|
||||
PROXY_DATAPATH=<%= proxy_datapath %>
|
||||
GATEKEEPER_DATAPATH=<%= gatekeeper_datapath %>
|
||||
DOCKER_MODE=<%= docker_mode %>
|
||||
RUN_AS_USER=<%= run_as_different_user?username:'' %>
|
||||
CLEANUP=<%= installer_cleanup?'true':'false' %>
|
||||
<% if ( features.indexOf('lightning') !== -1 && lightning_implementation === 'c-lightning' ) { %>
|
||||
OTSCLIENT_DATAPATH=<%= otsclient_datapath %>
|
||||
<% } %>
|
||||
<% if ( features.indexOf('otsclient') !== -1 ) { %>
|
||||
LIGHTNING_DATAPATH=<%= lightning_datapath %>
|
||||
<% } %>
|
||||
<% if ( bitcoin_mode==="internal" ) { %>
|
||||
BITCOIN_DATAPATH=<%= bitcoin_datapath %>
|
||||
<% } %>
|
||||
|
||||
@@ -48,8 +48,13 @@ services:
|
||||
<% } %>
|
||||
volumes:
|
||||
- "<%= proxy_datapath %>:/proxy/db"
|
||||
<% if ( features.indexOf('lightning') !== -1 && lightning_implementation === 'c-lightning' ) { %>
|
||||
- "<%= lightning_datapath %>:/.lightning"
|
||||
<% } %>
|
||||
<% if ( features.indexOf('otsclient') !== -1 ) { %>
|
||||
- "<%= otsclient_datapath %>:/proxy/otsfiles"
|
||||
<% } %>
|
||||
|
||||
# deploy:
|
||||
# placement:
|
||||
# constraints: [node.hostname==dev]
|
||||
|
||||
Reference in New Issue
Block a user