-
Notifications
You must be signed in to change notification settings - Fork 0
Dockerrun Example Nginx Proxy
danmasta edited this page Feb 12, 2018
·
1 revision
Deploy can interpolate values from your dockerrun template, just use handlebar syntax
{
"AWSEBDockerrunVersion": 2,
"volumes": [
],
"containerDefinitions": [
{
"name": "app",
"image": "{{ecrUri}}:{{version}}",
"essential": true,
"memory": 512,
"mountPoints": [
{
"sourceVolume": "awseb-logs-app",
"containerPath": "/var/log/app"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "{{ebEnv}}-app",
"awslogs-region": "us-east-1"
}
}
},
{
"name": "nginx",
"image": "repositry_uri/nginx:latest",
"essential": true,
"memory": 256,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
},
{
"hostPort": 443,
"containerPort": 443
}
],
"links": [
"app:app"
],
"mountPoints": [
{
"sourceVolume": "awseb-logs-nginx",
"containerPath": "/var/log/nginx"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "{{ebEnv}}-nginx",
"awslogs-region": "us-east-1"
}
}
}
]
}