🛣 The Open Source Routing Machine Docker ready!
This image is based on the official osrm-backend Docker image with the addition of some awesome features!
- Download and precomputes maps on startup only if it's necessary.
- Configurable with ENV variables.
You need to specify those env vars in order to make the startup process successfully.
Name | Description |
---|---|
OSRM_MAP_NAME | The name of the maps you want to download used as filename. |
OSRM_MAP_URL | The URL from where the map file will be downloaded. Check Geofabrik for download URLs. |
OSRM_EXT_PROFILE | The profile to use to extract the road network. See profiles for more info about them. |
OSRM_API_PARAMS | Custom flags to pass to the osrm-routed command. The list of flags is available here |
Example of usage.
$ docker pull simonepri/osrm-backend
$ docker run -d -p 5000:5000 --name osrm-api -e OSRM_MAP_NAME="center-italy" -e OSRM_MAP_URL="http://download.geofabrik.de/europe/italy/centro-latest.osm.pbf" -e OSRM_EXT_PROFILE="car" -e OSRM_API_PARAMS="--port 5000" simonepri/osrm-backend:latest