I have an application , say an api , running as docker container on ec2. As this container has dependency on the ec2 host ( port mapping) , i am unable to run more than one instance in a same machine.
I want to achieve a state where i have 5 hosts which are fronted with an elb and i should be able to run more than 1 instance of the container in all these hosts.
I am aware that i can achieve this state using ECS.
Can i do this with Ec2 , ELB and Docker?
-Thanks