{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/159","labels_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/159/comments","events_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/159/events","html_url":"https://github.com/aws/amazon-ecs-agent/issues/159","id":99587650,"number":159,"title":"Launching specified container per instance.","user":{"login":"hirokiky","id":854049,"avatar_url":"https://avatars.githubusercontent.com/u/854049?v=3","gravatar_id":"","url":"https://api.github.com/users/hirokiky","html_url":"https://github.com/hirokiky","followers_url":"https://api.github.com/users/hirokiky/followers","following_url":"https://api.github.com/users/hirokiky/following{/other_user}","gists_url":"https://api.github.com/users/hirokiky/gists{/gist_id}","starred_url":"https://api.github.com/users/hirokiky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirokiky/subscriptions","organizations_url":"https://api.github.com/users/hirokiky/orgs","repos_url":"https://api.github.com/users/hirokiky/repos","events_url":"https://api.github.com/users/hirokiky/events{/privacy}","received_events_url":"https://api.github.com/users/hirokiky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-07T06:14:05Z","updated_at":"2015-08-07T06:14:05Z","closed_at":null,"body":"Is there some way to launch specified container per ECS instances?\r\n\r\nMy case:\r\n\r\n* [nginx-proxy](https://github.com/jwilder/nginx-proxy) container per ECS instance.\r\n* Web application containers on ECS instances.\r\n\r\n```\r\n           |                       +----- [Web app]  # Tasks including one container.\r\nelb --- 80 | 80 --- [nginx-proxy] -+----- [Web app]\r\n           |                       +----- [Web app]\r\n           +-> ECS instance\r\n```\r\n\r\nIf Web application containers eat all of CPU/Memory resources of an ECS instance, before nginx-proxy starting up, nginx-proxy instance won't be up. and Of cause, we can't access any applications in that instance.\r\n\r\n## Include both containers in one TaskDefiniton?\r\n\r\nYou may think I should create TaskDefinition containing both nginx-proxy and Web application containers. But there's some problems.\r\n\r\n* nginx-proxy grab the port 80, so We can't upgrade them gracefully.\r\n* We can't add another Web application containers, without restarting Tasks.\r\n\r\n## Feature Proposal\r\n\r\nHow about to add new property to specify Task which should be launched on each Instances?\r\n"}}