forked from TEAM-ONLY-4/Only4_Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-notification.json
More file actions
44 lines (43 loc) · 1.38 KB
/
task-notification.json
File metadata and controls
44 lines (43 loc) · 1.38 KB
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
{
"family": "only4-notification-task",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "1024",
"memory": "2048",
"executionRoleArn": "ECS_TASK_EXECUTION_ROLE_ARN",
"taskRoleArn": "ECS_TASK_ROLE_ARN",
"containerDefinitions": [
{
"name": "notification-container",
"image": "NOTIFICATION_IMAGE_PLACEHOLDER",
"essential": true,
"command": [
"java",
"-jar",
"app.jar",
"--spring.batch.job.name=notificationJob",
"--spring.main.web-application-type=none"
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/only4-batch",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "notification"
}
},
"dockerLabels": {
"PROMETHEUS_EXPORTER_PORT": "8080",
"PROMETHEUS_EXPORTER_PATH": "/actuator/prometheus"
},
"environment": [
{ "name": "SPRING_PROFILES_ACTIVE", "value": "prod" },
{ "name": "SPRING_BATCH_JOB_ENABLED", "value": "true" },
{ "name": "SPRING_BATCH_JOB_NAME", "value": "notificationJob" },
{ "name": "SPRING_APPLICATION_NAME", "value": "only4-notification" },
{ "name": "SPRING_BATCH_JOB_EXIT_ON_COMPLETION", "value": "true" },
{ "name": "SPRING_MAIN_WEB_APPLICATION_TYPE", "value": "servlet" }
]
}
]
}