简体   繁体   English

将多容器Docker应用程序部署到Azure容器服务

[英]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.

相关问题 在不使用 Azure DevOps 的情况下将多容器应用程序部署到 Azure Kubernetes 服务 - Deploying a multi-container application to Azure Kubernetes Services without using Azure DevOps 多容器 Docker 应用 - 内部 Rest API 通信 - Multi-Container Docker Application - Internal Rest API Communication Azure WebApp 多容器配置损坏 - Azure WebApp multi-container configuration corrupted Azure 应用服务多容器(预览) NGINX 连接()失败(111:连接被拒绝)问题 - Azure App Service Multi-container (preview) NGINX connect() failed (111: Connection refused) issue 如何使用 Github 操作将多容器应用程序部署到 Azure? - How to deploy a multi-container app to Azure with a Github action? 无法连接到 Azure 托管的多容器 Web 应用程序中 unix:///var/run/docker.sock 上的 Docker 守护程序 - Cannot connect to the Docker daemon at unix:///var/run/docker.sock in Azure hosted multi-container Web App 将Windows容器(使用Docker创建)部署到Azure容器服务中 - Deploying Windows Containers (created with Docker) into Azure Container Service Azure 容器实例:从 Django+Nginx+Postgres 创建多容器组 - Azure Container Instances: Create a multi-container group from Django+Nginx+Postgres 如何为包含卷的 Azure 容器注册表部署简单的多容器应用程序? - How to deploy simple multi-container app for Azure Container Registry containing Volumes? 带有 Az.Websites 的多容器 WebApp - Multi-Container WebApp with Az.Websites
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM