title: When dockerizing a rails app with EC2 container service with ELB do I still need nginx?
body: <p>I have a container with a <strong>rails app</strong> and <strong>puma</strong> app server, listening on port <code>3000</code>.   </p>
  
  <p>This container is to be deployed to amazons <a href="https://aws.amazon.com/de/ecs/" rel="nofollow">ec2 container service (ECS)</a>, and should be autoscaled and load balanced via <a href="https://aws.amazon.com/de/elasticloadbalancing/" rel="nofollow">ELB</a>.</p>
  
  <p>How does <strong>nginx</strong> (if at all) fit into the picture? Do I still need it?</p>
  
  <p>If yes, should I package it inside the rails container, or should I create and deploy a seperate container instance packaged with nginx, which then provides reverse proxy functionality?</p>