I have a few webapps and a bundle of microservices. I would like to deploy to these to ECS via Docker Compose (totally stateless), however I am struggling with some duplicity; Three of the webapps have a common microservice. I want to know if, when using Docker Compose, I can get away with having one container instance for this particular common microservice. It seems like the alternative is to have the same microservice running in triplicate.
Any thoughts? Thanks.