Skip to content

Dockerrun Example Single Container

danmasta edited this page Feb 12, 2018 · 1 revision

Dockerrun Example - Multi-Container

Deploy can interpolate values from your dockerrun template, just use handlebar syntax

{
  "AWSEBDockerrunVersion": 2,
  "volumes": [
  ],
  "containerDefinitions": [
    {
      "name": "{{ebApp}}",
      "image": "{{ecrUri}}:{{version}}",
      "essential": true,
      "memory": 512,
      "mountPoints": [
        {
          "sourceVolume": "awseb-logs-{{ebApp}}",
          "containerPath": "/var/log/app"
        }
      ],
      "portMappings": [
        {
          "hostPort": 80,
          "containerPort": 8080
        }
      ],
      "logConfiguration": {
        "logDriver": "awslogs",
        "options": {
          "awslogs-group": "{{ebEnv}}-app",
          "awslogs-region": "us-east-1"
        }
      }
    }
  ]
}
Clone this wiki locally