Skip to content

Commit 41f4018

Browse files
authored
Merge pull request #3 from toshihirock/fix-nginx-task-definition
Fix nginx task definition
2 parents 43b6af9 + 1da800a commit 41f4018

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

nginx/nginx_ec2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
{
77
"name": "nginx",
88
"image": "nginx:latest",
9-
"memory": "256",
10-
"cpu": "256",
9+
"memory": 256,
10+
"cpu": 256,
1111
"essential": true,
1212
"portMappings": [
1313
{

nginx/nginx_fargate.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66
{
77
"name": "nginx",
88
"image": "nginx:latest",
9-
"memory": "256",
10-
"cpu": "256",
9+
"memory": 256,
10+
"cpu": 256,
1111
"essential": true,
1212
"portMappings": [
1313
{
1414
"containerPort": 80,
1515
"protocol": "tcp"
1616
}
1717
],
18-
"logConfiguration": null
18+
"logConfiguration":{
19+
"logDriver":"awslogs",
20+
"options":{
21+
"awslogs-group":"awslogs-nginx-ecs",
22+
"awslogs-region":"us-east-1",
23+
"awslogs-stream-prefix":"ecs"
24+
}
25+
}
1926
}
2027
],
2128
"volumes": [],

0 commit comments

Comments
 (0)