diff --git a/configs/haproxy.hcl b/configs/haproxy.hcl
index c45ff1457f61caef48c6c683c31dcf2c8966d222..3c980228e61069ff0f50dba9bdad9ad42ae7e8f4 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"