How to setup a docker container on an aws elastic beanstalk environment as a single node container prepare a docker image which runs locally. (You can find a docker image of the routing service here) setup aws account and create organization with required roles elasticloadbalancing aws-elasticbeanstalk-service-role Install EB-CLI (Command line interface) and AWS CLI brew install awscli brew install awsebcli Inside folder of docker image create Dockerrun.aws.json and setup work environment { "AWSEBDockerrunVersion": "1", "Image": { "Name": "osrm/osrm-backend", "Update": "true" }, "Ports": [ { "ContainerPort": "5000" } ], "Volumes": [ { "HostDirectory": "/var/app/current", "ContainerDirectory": "/data" } ], "Entrypoint": "osrm-routed", "Command": "/data/berlin-latest.osrm" } access server instance via ssh (helpful to clear up folder structure) and find path directories for volumes in Dockerrun.aws.json eb ssh