Skip to content

Commit 27b2b2e

Browse files
authored
Merge pull request #2 from jungseoklee/for-nginx-ec2-fargate
Update and add Nginx task definitions for EC2 and Fargate, respectively
2 parents 8b7ed1d + 2e12987 commit 27b2b2e

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

nginx/nginx.json renamed to nginx/nginx_ec2.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"requiresCompatibilities": [
3+
"EC2"
4+
],
25
"containerDefinitions": [
36
{
47
"name": "nginx",

nginx/nginx_fargate.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"requiresCompatibilities": [
3+
"FARGATE"
4+
],
5+
"containerDefinitions": [
6+
{
7+
"name": "nginx",
8+
"image": "nginx:latest",
9+
"memory": "256",
10+
"cpu": "256",
11+
"essential": true,
12+
"portMappings": [
13+
{
14+
"containerPort": 80,
15+
"protocol": "tcp"
16+
}
17+
],
18+
"logConfiguration": null
19+
}
20+
],
21+
"volumes": [],
22+
"networkMode": "awsvpc",
23+
"placementConstraints": [],
24+
"family": "nginx",
25+
"memory": "512",
26+
"cpu": "256"
27+
}

0 commit comments

Comments
 (0)