Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup ECS Task Definition #75

Open
firze20 opened this issue Aug 8, 2024 · 0 comments
Open

Setup ECS Task Definition #75

firze20 opened this issue Aug 8, 2024 · 0 comments
Labels
help wanted Extra attention is needed
Milestone

Comments

@firze20
Copy link
Owner

firze20 commented Aug 8, 2024

Setup ECS Task Definition

Example:

{
  "family": "ecommerce-task",
  "networkMode": "awsvpc",
  "requiresCompatibilities": ["FARGATE"],
  "cpu": "512",
  "memory": "2048",
  "containerDefinitions": [
    {
      "name": "ecommerce-backend",
      "image": "YOUR_ECR_URL/ecommerce-backend:latest",
      "essential": true,
      "memory": 512,
      "cpu": 256,
      "portMappings": [
        {
          "containerPort": 3000,
          "hostPort": 3000
        }
      ]
    },
    {
      "name": "ecommerce-frontend",
      "image": "YOUR_ECR_URL/ecommerce-frontend:latest",
      "essential": true,
      "memory": 512,
      "cpu": 256,
      "portMappings": [
        {
          "containerPort": 3001,
          "hostPort": 3001
        }
      ]
    },
    {
      "name": "nginx",
      "image": "YOUR_ECR_URL/ecommerce-nginx:latest",
      "essential": true,
      "memory": 512,
      "cpu": 256,
      "portMappings": [
        {
          "containerPort": 80,
          "hostPort": 80
        }
      ]
    },
    {
      "name": "redis",
      "image": "redis:alpine",
      "essential": true,
      "memory": 256,
      "cpu": 128,
      "portMappings": [
        {
          "containerPort": 6379,
          "hostPort": 6379
        }
      ]
    }
  ]
}
@firze20 firze20 added the help wanted Extra attention is needed label Aug 8, 2024
@firze20 firze20 added this to the AWS CI/CD milestone Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

1 participant