Skip to content

Instantly share code, notes, and snippets.

@Kushal712
Created August 3, 2017 15:56
Show Gist options
  • Save Kushal712/485534de5efbf0eebab2658cb6fd9568 to your computer and use it in GitHub Desktop.
Save Kushal712/485534de5efbf0eebab2658cb6fd9568 to your computer and use it in GitHub Desktop.
ECS setup configuration file that defines a task definition used in a service creation.
{
"networkMode": "bridge",
"containerDefinitions": [
{
"volumesFrom": [],
"portMappings": [
{
"hostPort": 0,
"containerPort": "__CONTAINER_PORT__",
"protocol": "tcp"
}
],
"essential": true,
"entryPoint": [],
"mountPoints": [
{
"containerPath": "/usr/src/app/logs",
"sourceVolume": "logs"
}
],
"name": "__CONTAINER__",
"ulimits": [
{
"softLimit": "__SOFT_LIMIT__",
"hardLimit": "__HARD_LIMIT__",
"name": "nofile"
}
],
"environment": [],
"workingDirectory": "/usr/src/app",
"image": "__ECR_URI__/__REPO__:__IMAGE_TAG__",
"command": [
"/bin/bash",
"./docker_run.sh",
"__ENV__",
"__IMAGE_TAG__"
],
"memoryReservation": "__SOFT_MEMORY_RESERVATION__",
"cpu": "__SOFT_CPU_UNITS__"
}
],
"volumes": [
{
"host": {
"sourcePath": "SOURCE_PATH"
},
"name": "logs"
}
],
"family": "__TASK__"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment