简体   繁体   中英

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. I'm planning to use AWS Elastic Container Service for deployment. 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.

How to use existing docker-compose.yml file in AWS Elastic Container Service?

It does seem that there is support to use the ECS CLI to use a docker-compose file using the ecs-cli-compose command.

This will translate your docker-compose file and create a task definition that is able to be used with ECS

The task definition in ECS is a mapping file for all container based configuration. Within this file you can define the container definitions for each container within the task, define port mappings, any custom commands, volume mounting etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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