title: How to Deploy a Flask Application on AWS Elastic Beanstalk?
body: <p>I would like to deploy a Web Flask Application to AWS Elastic Beanstalk. I found a Docker Image with Flask + Nginx + WSGI that start these three services when I up a container service.</p>
  
  <p><strong>I have two questions:</strong></p>
  
  <ol>
  <li>Is it a good practice to start more than one service in the same container? In this case: Flask + Nginx + WSGI (development/production)</li>
  </ol>
  
  <p>I read that AWS Elastic Beanstalk already has Nginx configured by default (besides load balancing, auto-scaling, etc). </p>
  
  <ol start="2">
  <li>Is it ok to start a Container with only Flask application? If so, where does the WSGI configuration go?</li>
  </ol>
  
  <p>I read this article: </p>
  
  <p><a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html</a></p>
  
  <p>And seeing this:</p>
  
  <p><strong>WARNING: Do not use the development server in a production environment. Use a production WSGI server instead.</strong></p>
  
  <p>I understood that the development environment was deployed in production. Which seems wrong.</p>