I see that setting the boolean requirePorts in the marathon app JSON will set the containerPort equal to the hostPort, but I need the opposite scenario - I set hostPort to 0 and now want the servicePort (I'm using marathon-lb) to be equal to the generated hostPort number.
I tried using the automatic environment variable $HOST0 for example but it would accept this in the servicePort field.
Thanks!