So, in compose ports section "portx:porty" is correctly handled and the host port replaced by the dynamic port assigned by mesos. However, if the compose file only has "porty" to specify the container port, the dynamic host port addition does not happen.
So, in compose ports section "portx:porty" is correctly handled and the host port replaced by the dynamic port assigned by mesos. However, if the compose file only has "porty" to specify the container port, the dynamic host port addition does not happen.