forked from NetCoreApps/RedisStackOverflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-definition.json
More file actions
42 lines (42 loc) · 1.16 KB
/
Copy pathtask-definition.json
File metadata and controls
42 lines (42 loc) · 1.16 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
{
"family": "${ECS_TASK}",
"networkMode": "bridge",
"containerDefinitions": [
{
"image": "${AWS_ECS_REPO_DOMAIN}/${IMAGE_NAME}:${IMAGE_VERSION}",
"name": "${IMAGE_NAME}",
"cpu": 128,
"memory": 256,
"essential": true,
"links": ["${IMAGE_NAME}-redis"],
"portMappings": [
{
"containerPort": 5000,
"hostPort": 0,
"protocol": "tcp"
}
],
"environment": [
{
"name": "VIRTUAL_HOST",
"value": "${AWS_VIRTUAL_HOST}"
},
{
"name": "SERVICESTACK_LICENSE",
"value": "${SERVICESTACK_LICENSE}"
},
{
"name": "REDIS_HOST",
"value": "${IMAGE_NAME}-redis"
}
]
},
{
"name": "${IMAGE_NAME}-redis",
"image": "redis:3.2",
"cpu": 128,
"memory": 128,
"essential": true
}
]
}