Skip to content

Instantly share code, notes, and snippets.

@Thakurvaibhav
Created November 6, 2018 07:31
Show Gist options
  • Save Thakurvaibhav/ee659162e178cd2300271005c41dc182 to your computer and use it in GitHub Desktop.
Save Thakurvaibhav/ee659162e178cd2300271005c41dc182 to your computer and use it in GitHub Desktop.
Sample deploy.json file used in https://www.linkedin.com/pulse/learners-guide-deploying-docker-ecs-using-gitlab-ci-vaibhav-thakur/ . family and containerDefinitions.name are also generated when you create first ecs deployment from the console.
{
"containerDefinitions": [
{
"memory": 600,
"portMappings": [
{
"hostPort": 0,
"containerPort": 3000,
"protocol": "tcp"
},
{
"hostPort": 0,
"containerPort": 22,
"protocol": "tcp"
},
{
"hostPort": 0,
"containerPort": 6379,
"protocol": "tcp"
}
],
"environment": [
{
"name": "NODE_ENV",
"value": "N_ENV"
}
],
"essential": true,
"name": "<container-name>",
"image": "<your-docker-registry>/REPO:TAG",
"cpu": 512,
"memoryReservation": 300
}
],
"family": "<service-name>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment