gpt4 book ai didi

magento - Azure Container Service容器无法访问80以外的其他端口

转载 作者:行者123 更新时间:2023-12-02 20:49:33 25 4
gpt4 key购买 nike

我终于弄清楚了如何将Magento容器安装到Swarm dockers集群中,现在我可以访问其URL了,例如http://xxxagents.australiaeast.cloudapp.azure.com(端口80)

然后又遇到另一个问题:如果我使用docker-compose安装另一个具有Magento端口号83(非80)的容器,我的Web浏览器会告诉我页面无法打开。

这是我那部分的yml脚本:

magento:
image: 'bitnami/magento:latest'
environment:
- MAGENTO_HOST=xxxxagents.australiaeast.cloudapp.azure.com
- MARIADB_HOST=10.0.0.4
- MARIADB_PORT=3303
- APACHE_HTTP_PORT=83
ports:
- '83:83'

主机和端口号已成功写入core_config_data表。有谁知道我为什么不能通过 http://xxxagents.australiaeast.cloudapp.azure.com:83打开?

非常感谢!

最佳答案

您需要在Azure负载平衡器中打开端口。请参阅https://docs.microsoft.com/en-us/azure/container-service/container-service-enable-public-access(此列为使用DC / OS的ACS的文档,但过程应相同)

关于magento - Azure Container Service容器无法访问80以外的其他端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43037516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com