Created
November 25, 2016 16:48
-
-
Save MrCoffey/7a092aa21d665c9f164ae7b2ab3b8f16 to your computer and use it in GitHub Desktop.
Depltoyment example of a basic dockerrun for multicontainers on beanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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