Skip to content

Instantly share code, notes, and snippets.

@mozillalives
Created September 25, 2018 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mozillalives/d7cadb70151ccbdd0abfdf2886aff19e to your computer and use it in GitHub Desktop.
Save mozillalives/d7cadb70151ccbdd0abfdf2886aff19e to your computer and use it in GitHub Desktop.
Elastic Beanstalk Docker run config
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "shark-cat-app",
"host": {
"sourcePath": "/var/app/current"
}
}
],
"containerDefinitions": [
{
"name": "shark-cat-web",
"image": "custom-image/shark-cat-web",
"memory": 256,
"memoryReservation": 128,
"mountPoints": [
{
"sourceVolume": "shark-cat-app",
"containerPath": "/var/www/html"
}
],
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "shark-cat-web",
"awslogs-create-group": "true",
"awslogs-region": "us-east-2",
"awslogs-stream-prefix": "shark-cat"
}
}
},
{
"name": "shark-cat-consumer",
"image": "custom-image/shark-cat-consumer",
"memory": 256,
"memoryReservation": 128,
"mountPoints": [
{
"sourceVolume": "shark-cat-app",
"containerPath": "/var/www/html"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "shark-cat-consumer",
"awslogs-create-group": "true",
"awslogs-region": "us-east-2",
"awslogs-stream-prefix": "shark-cat"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment