I have created a Docker containers using docker-compose. In my local environment, i am able to bring up my application without any issues.
Now i wanted to deploy all my docker containers to the AWS EC2 (ECS). After going over the ECS documentation, i found out that we can make use of the same docker-compose to deploy in ECS using ECS-CLI. But ECS-CLI is not available for windows instances as of now. So now i am not sure how to use my docker-compose to build all my images using a single command and deploy it to the ECS from an windows instance.
It seems like i have to deploy my docker containers one by one to ECS as like below steps,
- From the ECS Control Panel, create a Docker Image Repository.
- Connect your local Docker client with your Docker credentials in ECS:
- Copy and paste the Docker login command from the previous step. This will log you in for 24 hours
- Tag your image locally ready to push to your ECS repository – use the repo URI from the first step
- Push the image to your ECS repoository\
- create tasks with the web UI, or manually as a JSON file
- create a cluster, using the web UI.
- Run your task specifying the EC2 cluster to run on
Is there any other way of running the docker containers in ECS ?