-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecr-task-def.raw
49 lines (49 loc) · 1.3 KB
/
ecr-task-def.raw
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
{
"family": "$APP_NAME",
"networkMode": "bridge",
"containerDefinitions": [
{
"name": "$APP_NAME",
"image": "$DOCKER_REPO/$APP_NAME:$APP_VERSION",
"cpu": 64,
"memoryReservation": 128,
"memory": 256,
"portMappings": [
{
"hostPort": 0,
"containerPort": 80,
"protocol": "tcp"
}
],
"mountPoints": [
{
"sourceVolume": "docker_sock",
"containerPath": "/var/run/docker.sock",
"readOnly": false
}
],
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "$PREFIX$STAGE-$APP_NAME",
"awslogs-region": "ap-southeast-1"
}
}
}
],
"volumes": [
{
"name": "docker_sock",
"host": {
"sourcePath": "/var/run/docker.sock"
}
}
],
"placementConstraints": [
{
"expression": "attribute:instance-category-default == true",
"type": "memberOf"
}
]
}