Integration With Docker

Integration for Elastic Beanstalk with Docker

Single Docker

  • Does not use ECS behind the scene
  • Either provide
    • Dockerfile: Beanstalk will build and run docker container
    • Dockerrun.aws.json: Describe where already built docker image is

Multi Docker

  • Runs multi containers per EC2 instance
  • This will create
    • ECS Cluster
    • EC2 instances configured to use ECS cluster
    • Load Balancer
  • Provide
    • Dockerrun.aws.json at the root of source code
      • This is used to generate ECS task definition
  • Your docker image must be pre-built and stored some where (for example ECR)