简体   繁体   English

如何在 AWS Elastic Container Service 中使用现有的 docker-compose.yml 文件?

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

相关问题 我可以将 AWS Copilot 与 docker-compose.yml 文件一起使用吗? - Can I use AWS Copilot with docker-compose.yml file? AWS Elastic Beanstalk 不支持 docker-compose.yml 吗? - is docker-compose.yml not supported in AWS Elastic Beanstalk? AWS Elastic Beanstalk 与 AMI2 和 docker-compose.yml - AWS Elastic Beanstalk with AMI2 and docker-compose.yml 如何从AWS中的开发docker-compose.yml转到已部署的docker-compose.yml - how to go from development docker-compose.yml to deployed docker-compose.yml in aws 我如何真正将 docker-compose.yml 部署到云端? - How do I really deploy docker-compose.yml to the cloud? 在AWS ECS中使用docker-compose.yml和ecs-params.yml文件以不同的Lauch类型和卷安装来运行多个任务定义 - Run multiple task-definition using docker-compose.yml and ecs-params.yml file in AWS ECS with different lauch type and volume mounting 错误:撰写文件“./docker-compose.yml”无效,因为:services.jenkins.networks 包含无效类型 - ERROR: The Compose file './docker-compose.yml' is invalid because: services.jenkins.networks contains an invalid type 如何使 docker 组合使用现有的 AWS 子网 - How to make docker compose use existing AWS subnet 如何使用 Amazon Linux 2、单容器、无 Docker 在 AWS Elastic Beanstalk 上获取 SYS_PTRACE - How to get SYS_PTRACE on AWS Elastic Beanstalk with Amazon Linux 2, single-container, no Docker Compose AWS ECS-CLI docker-compose.yml depends_on 错误“services.nginx.depends_on.0 必须是字符串” - AWS ECS-CLI docker-compose.yml depends_on error "services.nginx.depends_on.0 must be a string"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM