-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtask-definition.json
104 lines (104 loc) · 2.29 KB
/
task-definition.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"containerDefinitions": [
{
"cpu": 0,
"memoryReservation": 128,
"image": "docker.io/projectreclass/toynet-mininet:f903173c5cdd00a91d3f6f5ce08669128daa6ad6",
"name": "mininet"
},
{
"cpu": 0,
"environment": [
{
"name": "COMPOSE_NETWORK",
"value": "bridge"
},
{
"name": "FLASK_APP",
"value": "flasksrc"
},
{
"name": "MINI_FLASK_PORT",
"value": "5000"
},
{
"name": "TOYNET_IMAGE_TAG",
"value": "docker.io/projectreclass/toynet-mininet:f903173c5cdd00a91d3f6f5ce08669128daa6ad6"
}
],
"mountPoints": [
{
"containerPath": "/var/run/docker.sock",
"sourceVolume": "docker-socket"
},
{
"containerPath": "/lib/modules",
"sourceVolume": "lib-modules"
}
],
"memoryReservation": 128,
"image": "docker.io/projectreclass/toynet-backend:f903173c5cdd00a91d3f6f5ce08669128daa6ad6",
"name": "backend"
},
{
"portMappings": [
{
"hostPort": 80,
"protocol": "tcp",
"containerPort": 80
}
],
"cpu": 0,
"environment": [
{
"name": "SERVER_URI",
"value": "http://backend:5000"
}
],
"memoryReservation": 128,
"image": "docker.io/projectreclass/toynet-frontend:d13d781955396eb82854f87a436ac79b4d3f5cba",
"dependsOn": [
{
"containerName": "backend",
"condition": "START"
}
],
"links": [
"backend:backend"
],
"name": "frontend"
}
],
"placementConstraints": [],
"memory": null,
"taskRoleArn": null,
"family": "ToyNet",
"requiresAttributes": [
{
"name": "com.amazonaws.ecs.capability.privileged-container"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.21"
},
{
"name": "ecs.capability.container-ordering"
}
],
"requiresCompatibilities": [
"EC2"
],
"volumes": [
{
"name": "lib-modules",
"host": {
"sourcePath": "/lib/modules"
}
},
{
"name": "docker-socket",
"host": {
"sourcePath": "/var/run/docker.sock"
}
}
]
}