Skip to content

Instantly share code, notes, and snippets.

@vidyuthd
Created June 8, 2019 16:39
Show Gist options
  • Save vidyuthd/a1e42a709d954ee4479701a23fd20a79 to your computer and use it in GitHub Desktop.
Save vidyuthd/a1e42a709d954ee4479701a23fd20a79 to your computer and use it in GitHub Desktop.
Multicontainer docker run for ebs deployment
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": <appname>,
"host": {
"sourcePath": "/var/app/current"
}
}
],
"containerDefinitions": [
{
"name": <appname>,
"image": <appdockerimageecrref>,
"essential": true,
"memory": 512,
"portMappings": [
{
"hostPort": 3000,
"containerPort": 3000
}
]
},
{
"name": "nginx-proxy",
"image": <nginxdockerimageecrref>,
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"mountPoints": [
{
"sourceVolume": <appname>,
"containerPath": "/webapp",
"readOnly": true
}
],
"links": [
<appname>
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment