Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. [
  2. {
  3. "cpu" : ${app_cpu},
  4. "essential" : true,
  5. "image" : "${account_id}.dkr.ecr.${region}.amazonaws.com/${application}:${app_branch}-${image_version}",
  6. "memory" : ${app_memory},
  7. "memoryReservation" : ${app_memory_reservation},
  8. "name" : "app-${application}",
  9. "environment" : [
  10. ....
  11. ],
  12. "ulimits": [
  13. {
  14. "name": "nofile",
  15. "softLimit": 64000,
  16. "hardLimit": 64000
  17. }
  18. ],
  19. "portMappings" : [],
  20. "mountPoints" : [],
  21. "volumesFrom" : [],
  22. "logConfiguration": {
  23. "logDriver": "awslogs",
  24. "options": {
  25. "awslogs-group": "${php_fpm_logs_group_name}",
  26. "awslogs-region": "${region}",
  27. "awslogs-stream-prefix": "service-api"
  28. }
  29. }
  30. },
  31. {
  32. "cpu": ${nginx_cpu},
  33. "essential": true,
  34. "image": "${account_id}.dkr.ecr.${region}.amazonaws.com/nginx-${application}:${app_branch}-${image_version}",
  35. "memory": ${nginx_memory},
  36. "memoryReservation": ${nginx_memory_reservation},
  37. "name": "nginx-${application}",
  38. "volumesFrom": [
  39. {
  40. "readOnly": true,
  41. "sourceContainer": "app-${application}"
  42. }
  43. ],
  44. "portMappings": [
  45. {
  46. "containerPort": 80,
  47. "hostPort": 80,
  48. "protocol": "tcp"
  49. }
  50. ],
  51. "environment": [
  52. ....
  53. ],
  54. "ulimits": [
  55. {
  56. "name": "nofile",
  57. "softLimit": 64000,
  58. "hardLimit": 64000
  59. }
  60. ],
  61. "mountPoints": [],
  62. "logConfiguration": {
  63. "logDriver": "awslogs",
  64. "options": {
  65. "awslogs-group": "${environment}-${application}/nginx",
  66. "awslogs-region": "${region}",
  67. "awslogs-stream-prefix": "${application}"
  68. }
  69. }
  70. }
  71. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement