Skip to content

Instantly share code, notes, and snippets.

@MrCoffey
Created November 25, 2016 16: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 MrCoffey/7a092aa21d665c9f164ae7b2ab3b8f16 to your computer and use it in GitHub Desktop.
Save MrCoffey/7a092aa21d665c9f164ae7b2ab3b8f16 to your computer and use it in GitHub Desktop.
Depltoyment example of a basic dockerrun for multicontainers on beanstalk
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "liftit-app",
"host": {
"sourcePath": "/app"
}
},
{
"name": "RabbitMQ",
"host": {
"sourcePath": "/var/app/logs/rabbitmq"
}
}
],
"containerDefinitions": [
{
"name": "liftit-app",
"image": "ECS-URL",
"essential": false,
"memory": 128,
"links": ["RabbitMQ"],
"portMappings": [
{
"hostPort": 80,
"containerPort": 4000
}
]
},
{
"name": "RabbitMQ",
"image": "rabbitmq",
"environment": [
{
"name": "RABBITMQ_DEFAULT_USER",
"value": ""
},
{
"name": "RABBITMQ_DEFAULT_PASS",
"value": ""
}
{
"name": "HOSTNAME",
"value": ""
}
],
"memory": 128,
"essential": true,
"portMappings": [
{
"hostPort": 5672,
"containerPort": 15672
}
],
"mountPoints": [
{
"sourceVolume": "RabbitMQ",
"containerPath": "/var/log/rabbitmq"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment