{
  "family": "console-sample-app-static",
  "containerDefinitions": [
    {
      "name": "simple-app",
      "image": "httpd:2.4",
      "cpu": 10,
      "memory": 300,
      "environment": [],
      "portMappings": [
        {
          "hostPort": 80,
          "containerPort": 80
        }
      ],
      "volumesFrom": [],
      "links": [],
      "mountPoints": [
        {
          "sourceVolume": "my-vol",
          "containerPath": "/usr/local/apache2/htdocs"
        }
      ],
      "essential": true
    },
    {
      "name": "busybox",
      "image": "busybox",
      "cpu": 10,
      "memory": 200,
      "entryPoint": [
        "sh",
        "-c"
      ],
      "environment": [],
      "command": [
        "/bin/sh -c \"while true; do echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p>' > top; /bin/date > date ; echo '</div></body></html>' > bottom; cat top date bottom > /usr/local/apache2/htdocs/index.html ; sleep 1; done\""
      ],
      "portMappings": [],
      "volumesFrom": [
        {
          "sourceContainer": "simple-app"
        }
      ],
      "links": [],
      "mountPoints": [],
      "essential": false
    }
  ],
  "volumes": [
    {
      "name": "my-vol",
      "host": {}
    }
  ]
}
