From f5d60dd6e7a6ecfd87bff2dba14e36ecab3ac267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=AArome=20Rx?= Date: Wed, 8 Mar 2017 16:40:20 +0100 Subject: [PATCH] added internal ports configuration --- templates/eventstore/0/docker-compose.yml | 5 +++-- templates/eventstore/0/rancher-compose.yml | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/templates/eventstore/0/docker-compose.yml b/templates/eventstore/0/docker-compose.yml index d72440f..2497b06 100644 --- a/templates/eventstore/0/docker-compose.yml +++ b/templates/eventstore/0/docker-compose.yml @@ -17,11 +17,12 @@ services: environment: - EVENTSTORE_CLUSTER_SIZE=3 - EVENTSTORE_CLUSTER_DNS=eventstore - - EVENTSTORE_CLUSTER_GOSSIP_PORT=2112 + - EVENTSTORE_CLUSTER_GOSSIP_PORT=${internal_http_port} - EVENTSTORE_EXT_HTTP_PREFIXES=http://*:${external_http_port}/ + - EVENTSTORE_EXT_INT_HTTP_PORT=${internal_http_port} + - EVENTSTORE_EXT_INT_TCP_PORT=${internal_tcp_port} - EVENTSTORE_EXT_HTTP_PORT=${external_http_port} - EVENTSTORE_EXT_TCP_PORT=${external_tcp_port} - #- HOST_PUBLIC_IP='$(scw-metadata PUBLIC_IP_ADDRESS)' ports: - ${external_http_port}:${external_http_port}/tcp diff --git a/templates/eventstore/0/rancher-compose.yml b/templates/eventstore/0/rancher-compose.yml index 28868b5..f98dca3 100644 --- a/templates/eventstore/0/rancher-compose.yml +++ b/templates/eventstore/0/rancher-compose.yml @@ -8,15 +8,23 @@ version: '2' maintainer: "Jérôme Rx " uuid: ges-0 questions: + - variable: "internal_http_port" + label: "Internal http (and gossip) port" + required: true + default: 2112 + type: "int" + - variable: "internal_tcp_port" + label: "Internal tcp port" + required: true + default: 1112 + type: "int" - variable: "external_http_port" - description: "External http port" - label: "LB http port" + label: "External http port" required: true default: 2113 type: "int" - variable: "external_tcp_port" - description: "External tcp port" - label: "LB tcp port" + label: "External tcp port" required: true default: 1113 type: "int"