简体   繁体   English

如何从一个 ECS 容器访问客户端内容到另一个托管 docker 应用程序的 ECS 容器

[英]How to access client side content from one ECS container to another ECS container where the docker application is hosted

I have a design in thought for one of my application using AWS ECS that is to deploy the (front end )angular content in one container and docker application(server side) in the other container.我有一个使用 AWS ECS 的应用程序的设计想法,即在一个容器中部署(前端)角度内容,在另一个容器中部署 docker 应用程序(服务器端)。 I would like to know how I can access the content from one container to the docker application hosted in the other container Aws ECS我想知道如何将内容从一个容器访问到托管在另一个容器 Aws ECS 中的 docker 应用程序

Is that same as docker application how it is accessed?和 docker 应用程序是如何访问的一样吗?

Note* I converted content file from zip to war to deploy it in container.注意* 我将内容文件从 zip 转换为 war 以将其部署在容器中。

create a volume and attach that volume to the two containers.创建一个卷并将该卷附加到两个容器。 They both can access the contents in the shared volume他们都可以访问共享卷中的内容

In order to share content between containers, you can use shared volumes, as described here .为了在容器之间共享内容,您可以使用共享卷,如此所述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM