-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask-definition-stg.json
127 lines (127 loc) · 2.94 KB
/
task-definition-stg.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"family": "stg-lgtm-cat-api",
"taskRoleArn": "arn:aws:iam::${AWS_ACCOUNT_ID}:role/stg-lgtm-cat-api-ecs-task-role",
"executionRoleArn": "arn:aws:iam::${AWS_ACCOUNT_ID}:role/stg-lgtm-cat-api-ecs-task-execution-role",
"networkMode": "awsvpc",
"volumes": [],
"placementConstraints": [],
"runtimePlatform": {
"cpuArchitecture": "ARM64",
"operatingSystemFamily": "LINUX"
},
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512",
"containerDefinitions": [
{
"name": "app",
"image": "",
"cpu": 0,
"portMappings": [],
"essential": true,
"environment": [
{
"name": "ENV",
"value": "stg"
},
{
"name": "LGTM_IMAGES_CDN_DOMAIN",
"value": "stg-lgtm-images.lgtmeow.com"
},
{
"name": "REGION",
"value": "ap-northeast-1"
},
{
"name": "UPLOAD_S3_BUCKET_NAME",
"value": "stg-lgtmeow-upload-images"
}
],
"mountPoints": [],
"volumesFrom": [],
"secrets": [
{
"name": "DB_HOSTNAME",
"valueFrom": "/stg/lgtm-cat/api/DB_HOSTNAME"
},
{
"name": "DB_NAME",
"valueFrom": "/stg/lgtm-cat/api/DB_NAME"
},
{
"name": "DB_PASSWORD",
"valueFrom": "/stg/lgtm-cat/api/DB_PASSWORD"
},
{
"name": "DB_USERNAME",
"valueFrom": "/stg/lgtm-cat/api/DB_USERNAME"
},
{
"name": "SENTRY_DSN",
"valueFrom": "/stg/lgtm-cat/api/SENTRY_DSN"
},
{
"name": "COGNITO_USER_POOL_ID",
"valueFrom": "/stg/lgtm-cat/api/COGNITO_USER_POOL_ID"
}
],
"ulimits": [
{
"name": "nofile",
"softLimit": 1024000,
"hardLimit": 1024000
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "stg-lgtm-cat-api-app",
"awslogs-region": "ap-northeast-1",
"awslogs-stream-prefix": "ecs"
}
}
},
{
"name": "nginx",
"image": "",
"cpu": 0,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "PORT",
"value": "80"
},
{
"name": "BACKEND_HOST",
"value": "127.0.0.1"
}
],
"mountPoints": [],
"volumesFrom": [],
"ulimits": [
{
"name": "nofile",
"softLimit": 1024000,
"hardLimit": 1024000
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "stg-lgtm-cat-api-nginx",
"awslogs-region": "ap-northeast-1",
"awslogs-stream-prefix": "ecs"
}
}
}
]
}