-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathecs.worker.json
45 lines (45 loc) · 983 Bytes
/
ecs.worker.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
{
"cluster": "${CLUSTER}",
"servicePort": 1337,
"serviceProtocol": "HTTP",
"desiredCount": ${DESIRED_COUNT},
"loadBalancer": "datacamp-services-internal",
"containers": [
{
"containerName": "${SERVICE}-worker",
"containerImage": "${CONTAINER_IMAGE}",
"containerTag": "${CIRCLE_SHA1}",
"containerPort": 1337,
"memoryReservation": 4000,
"cpu": 256,
"essential": true
},
{
"containerName": "${SERVICE}-sqsd",
"containerImage": "sqsd",
"containerTag": "latest",
"memoryReservation": 128,
"essential": true,
"containerCommand": [
"bash",
"-c",
"eval $(aws-env) && node run-cli.js"
]
}
],
"healthCheck": {
"healthyThreshold": 3,
"unhealthyThreshold": 5,
"path": "/status",
"interval": 60,
"matcher": "200"
},
"ruleConditions": [
{
"hostname": "rdoc-worker",
"listeners": [
"https"
]
}
]
}