如何为 Azure 容器 (Swarm) 代理打开自定义端口?

How to open a custom port for the Azure Container (Swarm) agent?

我有一个 Azure 容器服务 (Swarm)。我是 运行 一个 docker-compose,在其定义中包含多个 http aspi 和网站。我如何配置 swarm 代理以允许那些 api 的入站流量? (它们在不同的端口上 运行)。我默认只能访问api或者80端口下的网站

By default the Load Balancer has ports 80, 8080 and 443 open.If you want to connect on another port you will need to open that port on the Azure Load Balancer for the Agent Pool.

a document 向您展示了如何在 Azure 容器服务中为您的应用程序打开更多端口。