From 6f3ba4520cfeb616e171a02b765526ddf31957d4 Mon Sep 17 00:00:00 2001 From: Pierre Ozoux <pierre@ozoux.net> Date: Wed, 12 Oct 2016 16:09:24 +0100 Subject: [PATCH] Make it compatible with new network system --- templates/haproxy.cfg.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/haproxy.cfg.tmpl b/templates/haproxy.cfg.tmpl index 8797133..55262d3 100644 --- a/templates/haproxy.cfg.tmpl +++ b/templates/haproxy.cfg.tmpl @@ -43,7 +43,8 @@ backend {{ $host }} option http-server-close cookie SERVERID insert nocache indirect {{ range $container := $containers }} - server Server {{ $container.IP }}:80 cookie Server + {{ $network := index $container.Networks 0 }} + server Server {{ $network.IP }}:80 cookie Server {{end}} {{end}} -- GitLab