-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-definition.json
More file actions
35 lines (33 loc) · 1.03 KB
/
task-definition.json
File metadata and controls
35 lines (33 loc) · 1.03 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
{
"family": "food-rescue-task",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "512",
"memory": "1024",
"executionRoleArn": "arn:aws:iam::749185461205:role/ecsTaskExecutionRole",
"containerDefinitions": [
{
"name": "food-rescue-optimizer",
"image": "749185461205.dkr.ecr.us-east-1.amazonaws.com/food-rescue-optimizer:latest",
"portMappings": [
{
"containerPort": 8081,
"protocol": "tcp"
}
],
"environment": [
{"name": "SPRING_DATASOURCE_URL", "value": "jdbc:postgresql://food-rescue-db.cwl0ukiem0i4.us-east-1.rds.amazonaws.com:5432/postgres"},
{"name": "SPRING_DATASOURCE_USERNAME", "value": "postgres"},
{"name": "SPRING_DATASOURCE_PASSWORD", "value": "FoodRescue2026!"}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/food-rescue",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
}
}
]
}