如何configurationdocker听多个端口?

我只是想configurationdocker听多个端口。 我不想要多个实例也不需要多个webapps,只有一个jetty,一个webapp,但是可以监听两个或者更多的端口。

默认的方式不支持多个条目:

<Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set> 

感谢您的帮助!

在你的jetty.xml中你有这样的东西

 <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><Property name="jetty.host" default="xyzv"/></Set> <Set name="port"><Property name="jetty.port" default="80"/></Set> <Set name="maxIdleTime">300000</Set> <Set name="Acceptors">2</Set> <Set name="statsOn">false</Set> <Set name="confidentialPort">8443</Set> <Set name="lowResourcesConnections">20000</Set> <Set name="lowResourcesMaxIdleTime">5000</Set> </New> </Arg> </Call> 

只需复制此块并更改副本中的端口。