AWS Elastic Beanstalk Docker environment variables

How to pass environment variables to Docker containers running in AWS Elastic Beanstalk multiple docker container configuration(different for different containers)?

  • How to enable SSL in docker with nginx hosted in Ubuntu
  • godep vendor with docker
  • NPM install error running Docker on CentOS
  • Docker not running/showing long-running processes
  • Docker Remote API filters: filter out network by name
  • Connecting the Docker Daemon insde the CDK on RHEL based docker images
  • Why is the Docker vfs storage backend not considered suitable for production?
  • Docker Django migrate command Type Error [closed]
  • Start Solr cloud on Docker Swarm (1.12) without Zookeeper
  • How i can configure dockerized WildFly with HornetQ?
  • Building a docker image (.NET Core) and uploading it to Google Container Engine?
  • Starting ntp service automatically on Debian running inside Docker container
  • One Solution collect form web for “AWS Elastic Beanstalk Docker environment variables”

    Use the environment key in your container descriptions.

    {
      "containerDefinitions": [
        {
          "name": "myContainer",
          "image": "something",
          "environment": [
            {
              "name": "MY_DB_PASSWORD",
              "value": "password"
            }
          ],
          "portMappings": [
            {
              "containerPort": 80,
              "hostPort": 80
            }
          ],
          "memory": 500,
          "cpu": 10
        }]
    }
    

    For more information, see: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.