Use dynamic port for ingress

Hi everyone,

I have a job with two groups:

  1. My application (used dynamic ports allocated by Nomad). Like this:
    network {
      mode = "bridge"
      port "my_http" {}
    }
  1. Also, I have an ingress group:
  group "myapp-ingress" {
    count = 1

    network {
      mode = "bridge"
      port "myapp" {
        to     = <port>
      }
    }
    service {
      name = "myapp-ingress-${var.nomad_namespace}"
      port = "http"
      connect {
        gateway {
          proxy {}
          ingress {
            listener {
              port     = 8080
              protocol = "tcp"
              service {
                name = "myapp-${var.nomad_namespace}"
              }
            }
          }
        }
      }
    }
  }

Could I use dynamic port from my application in ingress group? Here:

        to     = <port>