diff --git a/website/source/guides/load-balancing/haproxy.html.md b/website/source/guides/load-balancing/haproxy.html.md index 1a4dcbb54..2dd62409f 100644 --- a/website/source/guides/load-balancing/haproxy.html.md +++ b/website/source/guides/load-balancing/haproxy.html.md @@ -129,11 +129,6 @@ job "haproxy" { image = "haproxy:2.0" network_mode = "host" - port_map { - http = 8080 - haproxy_ui = 1936 - } - volumes = [ "local/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg", ] @@ -169,7 +164,13 @@ EOF service { name = "haproxy" - port = "http" + check { + name = "alive" + type = "tcp" + port = "http" + interval = "10s" + timeout = "2s" + } } resources { diff --git a/website/source/guides/load-balancing/traefik.html.md b/website/source/guides/load-balancing/traefik.html.md index b170ac988..b541a8541 100644 --- a/website/source/guides/load-balancing/traefik.html.md +++ b/website/source/guides/load-balancing/traefik.html.md @@ -135,11 +135,6 @@ job "traefik" { image = "traefik:1.7" network_mode = "host" - port_map { - http = 8080 - api = 8081 - } - volumes = [ "local/traefik.toml:/etc/traefik/traefik.toml", ] @@ -191,8 +186,6 @@ EOF service { name = "traefik" - port = "http" - check { name = "alive" type = "tcp"