[英]Deploying a multi-container docker application to Azure Container Service
I have a multi-container docker application on Github which can be accessed here . 我在Github上有一个多容器docker应用程序,可以在这里访问。 I want to deploy this docker application on Azure using the DC/OS orchestration with the help of the ACS cluster (I am able to run the application locally).
我想在ACS群集的帮助下使用DC / OS编排在Azure上部署此docker应用程序(我可以在本地运行该应用程序)。
I followed this https://docs.microsoft.com/en-us/azure/container-service/container-service-setup-ci-cd guide on the azure docs and managed to deploy a sample application. 我遵循了有关Azure文档的https://docs.microsoft.com/zh-cn/azure/container-service/container-service-setup-ci-cd指南,并设法部署了示例应用程序。 I am not able to send a request to the server at that port.
我无法在该端口向服务器发送请求。 I tried to change the port of the docker-compose.yml file so that I can map port 5000 on the outside, to 8080 on the inside but it does not seem to work.
我试图更改docker-compose.yml文件的端口,以便可以将外部的端口5000映射到内部的8080,但它似乎不起作用。
Code can be accessed on Github 可以在Github上访问代码
The docker-compose.yml currently looks like this docker-compose.yml当前看起来像这样
services:
app:
build: ./application
image: ethercis-app
ports:
- "5000:8080"
depends_on:
- postgres
postgres:
build: ./postgres
image: ethercis-db
UPDATE: based on the additional information you provide in the comment below: 更新:根据您在以下评论中提供的其他信息:
In your LB Rule you are using a probe on port 80 but your container is exposing port 5000. See https://docs.microsoft.com/en-us/azure/container-service/container-service-enable-public-access 在“ LB规则”中,您正在对端口80使用探针,但是您的容器正在暴露端口5000。请参阅https://docs.microsoft.com/zh-cn/azure/container-service/container-service-enable-public-access
Original response: ACS uses port 8080 for Marathon on the masters, not the agents. 原始响应:ACS使用8080端口在主服务器上而不是在代理上进行Marathon。 Your workloads run on the agents so there should be no problem in the port mapping.
您的工作负载在代理上运行,因此端口映射应该没有问题。 What are the symptoms that make you say there is a port clash?
什么使您说出现端口冲突的症状?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.