[英]How to use existing docker-compose.yml file in AWS Elastic Container Service?
I have multi container application and using docker-compose.yml
file to start the application.我有多容器应用程序并使用
docker-compose.yml
文件来启动应用程序。 I'm planning to use AWS Elastic Container Service for deployment.我打算使用 AWS Elastic Container Service 进行部署。 From the tutorials, I came across to create a container definitions in task definitions instead of using user defined compose file in AWS ECS console.
从教程中,我发现在任务定义中创建容器定义,而不是在 AWS ECS 控制台中使用用户定义的组合文件。
How to use existing docker-compose.yml file in AWS Elastic Container Service?如何在 AWS Elastic Container Service 中使用现有的 docker-compose.yml 文件?
It does seem that there is support to use the ECS CLI to use a docker-compose
file using the ecs-cli-compose command.似乎确实支持使用 ECS CLI 使用ecs-cli-compose命令来使用
docker-compose
文件。
This will translate your docker-compose
file and create a task definition that is able to be used with ECS这将翻译您的
docker-compose
文件并创建能够与 ECS 一起使用的任务定义
The task definition in ECS is a mapping file for all container based configuration. ECS 中的任务定义是所有基于容器的配置的映射文件。 Within this file you can define the container definitions for each container within the task, define port mappings, any custom commands, volume mounting etc.
在此文件中,您可以为任务中的每个容器定义容器定义、定义端口映射、任何自定义命令、卷安装等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.