Guest User

Untitled

a guest
Nov 1st, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. {
  2. "family": "petstore",
  3. "networkMode": "awsvpc",
  4. "containerDefinitions": [{
  5. "name": "postgres",
  6. "entryPoint": ["/bin/sh"],
  7. "command": null,
  8. "image": "<YourAccountID>.dkr.ecr.us-west-2.amazonaws.com/petstore_postgres:latest",
  9. "cpu": 512,
  10. "memoryReservation": 1024,
  11. "environment": [{
  12. "name": "POSTGRES_DB",
  13. "value": "petstore"
  14. },
  15. {
  16. "name": "POSTGRES_USER",
  17. "value": "admin"
  18. },
  19. {
  20. "name": "POSTGRES_PASSWORD",
  21. "value": "password"
  22. }
  23. ],
  24. "portMappings": [{
  25. "containerPort": 5432
  26. }],
  27. "logConfiguration": {
  28. "logDriver": "awslogs",
  29. "options": {
  30. "awslogs-group": "petstore",
  31. "awslogs-region": "us-west-2",
  32. "awslogs-stream-prefix": "petstore/postgres"
  33. }
  34. }
  35. },
  36. {
  37. "name": "petstore",
  38. "entryPoint": ["/bin/sh"],
  39. "command": null,
  40. "image": "<YourAccountID>.dkr.ecr.us-west-2.amazonaws.com/petstore_frontend:latest",
  41. "cpu": 512,
  42. "memoryReservation": 1024,
  43. "environment": [
  44. {
  45. "name": "DB_HOST",
  46. "value": "127.0.0.1"
  47. },
  48. {
  49. "name": "DB_NAME",
  50. "value": "petstore"
  51. },
  52. {
  53. "name": "DB_PASS",
  54. "value": "password"
  55. },
  56. {
  57. "name": "DB_PORT",
  58. "value": "5432"
  59. },
  60. {
  61. "name": "DB_URL",
  62. "value": "jdbc:postgresql://127.0.0.1:5432/petstore?ApplicationName=applicationPetstore"
  63. },
  64. {
  65. "name": "DB_USER",
  66. "value": "admin"
  67. }
  68. ],
  69. "portMappings": [{
  70. "containerPort": 8080
  71. }],
  72. "logConfiguration": {
  73. "logDriver": "awslogs",
  74. "options": {
  75. "awslogs-group": "petstore",
  76. "awslogs-region": "us-west-2",
  77. "awslogs-stream-prefix": "petstore/frontend"
  78. }
  79. }
  80. }
  81. ],
  82. "executionRoleArn": "arn:aws:iam::<YourAccountID>:role/petstoreExecutionRole",
  83. "requiresCompatibilities": [
  84. "FARGATE"
  85. ],
  86. "cpu": "1 vcpu",
  87. "memory": "2 gb"
  88. }
Add Comment
Please, Sign In to add comment