From eb925ebda3eeef764c6486fe78355d411fa312a9 Mon Sep 17 00:00:00 2001 From: "benjamin.gliech@etu.unistra.fr" <gliech.benjamin@gmail.com> Date: Mon, 13 May 2024 11:21:15 +0200 Subject: [PATCH] Removed useless configs --- configs/haproxy.hcl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/configs/haproxy.hcl b/configs/haproxy.hcl index c45ff14..3c98022 100644 --- a/configs/haproxy.hcl +++ b/configs/haproxy.hcl @@ -4,16 +4,7 @@ job "HAProxy" { group "loadbalancer" { count = 1 - network { - port "web" { - static = 8080 - host_network = "vlan" - } - port "stats" { - static = 8081 - host_network = "vlan" - } - } + # No need to specified ports since the task is in network mode host. service { name = "HAProxy" @@ -24,7 +15,6 @@ job "HAProxy" { driver = "docker" config { image = "docker.io/library/haproxy:2.7" - ports = ["web", "stats"] network_mode = "host" mount { type = "bind" -- GitLab