Exposing gatekeeper port to the outside of docker is now optional

This commit is contained in:
SKP
2019-07-03 21:19:15 +02:00
committed by kexkey
parent 99825f0a15
commit 5b7fceebe2
2 changed files with 8 additions and 0 deletions

View File

@@ -258,6 +258,12 @@ module.exports = {
validate: utils.pathValidator,
message: prefix()+'Where is your otsclient data?'+utils.getHelp('otsclient_datapath_custom'),
},
{
type: 'confirm',
name: 'gatekeeper_expose',
default: utils.getDefault( 'gatekeeper_expose' ),
message: prefix()+'Expose gatekeeper outside of the docker network?'+utils.getHelp('gatekeeper_expose'),
},
{
when: function(props) { return installerDocker(props) && props.bitcoin_mode === 'internal' },
type: 'confirm',

View File

@@ -6,8 +6,10 @@ services:
environment:
- "TRACING=1"
image: cyphernode/gatekeeper:<%= gatekeeper_version %>
<% if( gatekeeper_expose ) { %>
ports:
- "<%= gatekeeper_port %>:443"
<% } %>
volumes:
- "<%= gatekeeper_datapath %>/certs:/etc/ssl/certs"
- "<%= gatekeeper_datapath %>/private:/etc/ssl/private"