File size: 1,315 Bytes
0990c3f | 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 | {
"family": "nayara-api",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "4096",
"memory": "8192",
"executionRoleArn": "EXECUTION_ROLE_ARN",
"taskRoleArn": "TASK_ROLE_ARN",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"containerDefinitions": [
{
"name": "nayara-api",
"image": "ECR_IMAGE_URI",
"essential": true,
"portMappings": [{"containerPort": 8080, "protocol": "tcp"}],
"environment": [
{"name": "NAYARA_CHECKPOINT", "value": "S3_MODEL_URI"},
{"name": "NAYARA_THREADS", "value": "4"},
{"name": "NAYARA_REQUIRE_API_KEY", "value": "1"}
],
"secrets": [
{"name": "NAYARA_API_KEY", "valueFrom": "API_KEY_SECRET_ARN"}
],
"healthCheck": {
"command": ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/readyz', timeout=3)\" || exit 1"],
"interval": 30,
"timeout": 5,
"retries": 3,
"startPeriod": 180
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/nayara-api",
"awslogs-region": "AWS_REGION",
"awslogs-stream-prefix": "api"
}
}
}
]
}
|