-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerrun.aws.json
85 lines (85 loc) · 1.69 KB
/
Dockerrun.aws.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
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "run_folder",
"host": {
"sourcePath": "/home/ec2-user/run"
}
},
{
"name": "assets_folder",
"host": {
"sourcePath": "/home/ec2-user/assets"
}
},
{
"name": "log_folder",
"host": {
"sourcePath": "/home/ec2-user/log"
}
}
],
"containerDefinitions": [
{
"name": "proxy",
"image": "agilesix/nginx:v1",
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"mountPoints": [
{
"sourceVolume": "run_folder",
"containerPath": "/var/run"
},
{
"sourceVolume": "assets_folder",
"containerPath": "/var/www"
},
{
"sourceVolume": "log_folder",
"containerPath": "/var/log"
}
]
},
{
"name": "web",
"image": "<AWS_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com/<NAME>:<TAG>",
"essential": true,
"memory": 644,
"mountPoints": [
{
"sourceVolume": "run_folder",
"containerPath": "/var/run"
},
{
"sourceVolume": "assets_folder",
"containerPath": "/var/www"
},
{
"sourceVolume": "log_folder",
"containerPath": "/app/log"
}
],
"environment": [
{
"name": "CONTAINER_ROLE",
"value": "app_server"
},
{
"name": "MAX_THREADS",
"value": 2
},
{
"name": "WEB_CONCURRENCY",
"value": 1
}
]
}
]
}