From 9a35e3312b32401364c707a6327e7678612b1f23 Mon Sep 17 00:00:00 2001 From: Raul Sanchez Date: Thu, 10 Aug 2017 19:11:46 +0200 Subject: [PATCH] Fix issue https://github.com/rancher/community-catalog/issues/261 --- templates/consul-registrator/1/docker-compose.yml | 2 +- templates/consul-registrator/1/rancher-compose.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/consul-registrator/1/docker-compose.yml b/templates/consul-registrator/1/docker-compose.yml index 1a281b4..8a43a9b 100644 --- a/templates/consul-registrator/1/docker-compose.yml +++ b/templates/consul-registrator/1/docker-compose.yml @@ -44,7 +44,7 @@ consul: - -client=0.0.0.0 environment: CONSUL_LOCAL_CONFIG: "{\"leave_on_terminate\": true, \"datacenter\": \"${consul_datacenter}\"}" - CONSUL_BIND_INTERFACE: eth0 + CONSUL_BIND_INTERFACE: ${consul_bind_interface} volumes_from: - consul-data log_opt: {} diff --git a/templates/consul-registrator/1/rancher-compose.yml b/templates/consul-registrator/1/rancher-compose.yml index 3caabff..fd38c67 100644 --- a/templates/consul-registrator/1/rancher-compose.yml +++ b/templates/consul-registrator/1/rancher-compose.yml @@ -13,3 +13,8 @@ type: "string" required: true default: "dc1" + - variable: consul_bind_interface + label: "Consul Bind Interface" + type: "string" + required: true + default: "eth0"