yohobuy-node-template.json 1.54 KB
{
  "containerDefinitions": [
    {
      "logConfiguration": {
        "logDriver": "awslogs",
        "options": {
          "awslogs-group": "yohobuy-log",
          "awslogs-region": "cn-north-1",
          "awslogs-stream-prefix": "awslogs-example"
        }
      },
      "portMappings": [
        {
          "hostPort": 6002,
          "protocol": "tcp",
          "containerPort": 6002
        }
      ],
      "cpu": 300,
      "environment": [
        {
          "name": "NODE_ENV",
          "value": "production"
        }
      ],
      "mountPoints": [],
      "memoryReservation": 400,
      "volumesFrom": [],
      "image": "860721417875.dkr.ecr.cn-north-1.amazonaws.com.cn/%IMAGE_VERSION%",
      "name": "yohobuy-node"
    },
    {
      "logConfiguration": {
        "logDriver": "awslogs",
        "options": {
          "awslogs-group": "yohobuy-log",
          "awslogs-region": "cn-north-1",
          "awslogs-stream-prefix": "awslogs-example"
        }
      },
      "portMappings": [
        {
          "hostPort": 80,
          "protocol": "tcp",
          "containerPort": 80
        }
      ],
      "cpu": 400,
      "environment": [],
      "mountPoints": [],
      "memoryReservation": 300,
      "volumesFrom": [],
      "image": "860721417875.dkr.ecr.cn-north-1.amazonaws.com.cn/yoho-online/nginx-yohobuy:201812257",
      "essential": true,
      "name": "nginx-yohobuy"
    }
  ],
  "memory": "1800",
  "taskRoleArn": "",
  "family": "yohobuy-node",
  "networkMode": "awsvpc",
  "cpu": "900",
  "volumes": [],
  "placementConstraints": []
}