Created
November 6, 2018 07:31
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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