Skip to content

Instantly share code, notes, and snippets.

@5sfayas
Last active July 24, 2022 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5sfayas/3ecade152531546cc7d765f9d1dc334e to your computer and use it in GitHub Desktop.
Save 5sfayas/3ecade152531546cc7d765f9d1dc334e to your computer and use it in GitHub Desktop.
{
"family": "Web-App-Task",
"taskDefinitionArn": "arn:aws:ecs:<region>:1234567:task-definition/Web-App-Task:1",
"networkMode": "bridge",
"revision": 1,
"volumes": [
{
"name": "php-code",
"dockerVolumeConfiguration": {
"scope": "task",
"driver": "local"
}
}
],
"containerDefinitions": [
{
"name": "php-app-container",
"image": "12345678.dkr.ecr.<region>.amazonaws.com/php-app:latest",
"cpu": 0,
"memory": 256,
"memoryReservation": 256,
"environment": [],
"mountPoints": [
{
"readOnly": null,
"containerPath": "/var/www/html/",
"sourceVolume": "php-code"
}
],
"portMappings": [
{
"hostPort": 0,
"protocol": "tcp",
"containerPort": 9000
}
]
},
{
"name": "nginx-web-container"
"image": "12345678.dkr.ecr.<region>.amazonaws.com/nginx-web:latest",
"mountPoints": [
{
"readOnly": null,
"containerPath": "/var/www/html/",
"sourceVolume": "php-code"
}
],
"portMappings": [
{
"hostPort": 0,
"protocol": "tcp",
"containerPort": 80
}
],
"essential": true,
"cpu": 256,
"memory": 256,
"links": [
"app-container:app-container"
]
}
],
"taskRoleArn": "<taskRoleArn>",
"executionRoleArn": "<executionRoleArn>",
"compatibilities": [
"EXTERNAL",
"EC2"
],
"requiresAttributes": [],
"pidMode": null,
"requiresCompatibilities": [
"EC2"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment