-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerrun.aws.json.template
More file actions
66 lines (66 loc) · 1.63 KB
/
Dockerrun.aws.json.template
File metadata and controls
66 lines (66 loc) · 1.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "<APP_NAME>-rails",
"image": "<CONTAINER_REGISTRY>/<NAMESPACE>/<APP_NAME>-rails:<RAILS_ENV>_<TAG>",
"memory": <RAILS_MEMORY>,
"command": [
"/usr/src/app/bin/start_server.sh"
],
"logConfiguration":
{
"logDriver": "awslogs",
"options":
{
"awslogs-region": "ap-northeast-1",
"awslogs-group": "<APP_NAME>-rails",
"awslogs-stream-prefix": "<RAILS_ENV>"
}
}
},
{
"name": "<APP_NAME>-sidekiq",
"image": "<CONTAINER_REGISTRY>/<NAMESPACE>/<APP_NAME>-rails:<RAILS_ENV>_<TAG>",
"memory": <SIDEKIQ_MEMORY>,
"command": [
"/usr/src/app/bin/start_sidekiq.sh"
],
"logConfiguration":
{
"logDriver": "awslogs",
"options":
{
"awslogs-region": "ap-northeast-1",
"awslogs-group": "<APP_NAME>-sidekiq",
"awslogs-stream-prefix": "<RAILS_ENV>"
}
}
},
{
"name": "<APP_NAME>-nginx",
"image": "<CONTAINER_REGISTRY>/<NAMESPACE>/<APP_NAME>-nginx:<NGINX_TAG>",
"memory": <NGINX_MEMORY>,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80,
"protocol": "tcp"
}
],
"logConfiguration":
{
"logDriver": "awslogs",
"options":
{
"awslogs-region": "ap-northeast-1",
"awslogs-group": "<APP_NAME>-nginx",
"awslogs-stream-prefix": "<RAILS_ENV>"
}
},
"links": [
"<APP_NAME>-rails:rails"
]
}
]
}