/
tasks.json
58 lines (58 loc) · 1.6 KB
/
tasks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"family": "multi",
"networkMode": "host",
"containerDefinitions": [
{
"name": "nginx",
"image": "ecr-repository-number.dkr.ecr.us-west-1.amazonaws.com/nginx:latest",
"essential": true,
"memory": 128,
"cpu": 100,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
"command": [
"./nginx.sh"
]
},
{
"name": "runner",
"image": "ecr-repository-number.dkr.ecr.us-west-1.amazonaws.com/runner:latest",
"essential": true,
"memory": 128,
"cpu": 100,
"mountPoints": [
{
"sourceVolume": "runner",
"containerPath": "/var/www/app"
}
]
},
{
"name": "worker",
"image": "ecr-repository-number.dkr.ecr.us-west-1.amazonaws.com/worker:latest",
"essential": true,
"memory": 128,
"cpu": 100,
"volumesFrom": [
{
"sourceContainer": "runner",
"readOnly": false
}
],
"command": [
"./dock/worker/worker.sh"
]
},
{
"name": "rabbit",
"image": "ecr-repository-number.dkr.ecr.us-west-1.amazonaws.com/rabbit:latest",
"essential": true,
"memory": 128,
"cpu": 100
}
]
}