Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "cpu" : ${app_cpu},
- "essential" : true,
- "image" : "${account_id}.dkr.ecr.${region}.amazonaws.com/${application}:${app_branch}-${image_version}",
- "memory" : ${app_memory},
- "memoryReservation" : ${app_memory_reservation},
- "name" : "app-${application}",
- "environment" : [
- ....
- ],
- "ulimits": [
- {
- "name": "nofile",
- "softLimit": 64000,
- "hardLimit": 64000
- }
- ],
- "portMappings" : [],
- "mountPoints" : [],
- "volumesFrom" : [],
- "logConfiguration": {
- "logDriver": "awslogs",
- "options": {
- "awslogs-group": "${php_fpm_logs_group_name}",
- "awslogs-region": "${region}",
- "awslogs-stream-prefix": "service-api"
- }
- }
- },
- {
- "cpu": ${nginx_cpu},
- "essential": true,
- "image": "${account_id}.dkr.ecr.${region}.amazonaws.com/nginx-${application}:${app_branch}-${image_version}",
- "memory": ${nginx_memory},
- "memoryReservation": ${nginx_memory_reservation},
- "name": "nginx-${application}",
- "volumesFrom": [
- {
- "readOnly": true,
- "sourceContainer": "app-${application}"
- }
- ],
- "portMappings": [
- {
- "containerPort": 80,
- "hostPort": 80,
- "protocol": "tcp"
- }
- ],
- "environment": [
- ....
- ],
- "ulimits": [
- {
- "name": "nofile",
- "softLimit": 64000,
- "hardLimit": 64000
- }
- ],
- "mountPoints": [],
- "logConfiguration": {
- "logDriver": "awslogs",
- "options": {
- "awslogs-group": "${environment}-${application}/nginx",
- "awslogs-region": "${region}",
- "awslogs-stream-prefix": "${application}"
- }
- }
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement