https://github.com/simonepri/docker-osrm-backend
🛣 The Open Source Routing Machine Docker ready!
https://github.com/simonepri/docker-osrm-backend
Last synced: over 1 year ago
JSON representation
🛣 The Open Source Routing Machine Docker ready!
- Host: GitHub
- URL: https://github.com/simonepri/docker-osrm-backend
- Owner: simonepri
- License: mit
- Created: 2017-08-18T10:42:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T12:36:46.000Z (almost 9 years ago)
- Last Synced: 2025-02-04T18:23:23.166Z (over 1 year ago)
- Language: Shell
- Homepage: http://project-osrm.org/
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-osrm-backend
> 🛣 The Open Source Routing Machine Docker ready!
This image is based on the official [osrm-backend](https://hub.docker.com/r/osrm/osrm-backend/) Docker image with the addition of some awesome features!
## Features
* Download and precomputes maps on startup only if it's necessary.
* Configurable with ENV variables.
## Configuration
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](http://download.geofabrik.de/) for download URLs.
**OSRM_EXT_PROFILE** | The profile to use to extract the road network. See [profiles](https://github.com/Project-OSRM/osrm-backend/wiki/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](https://github.com/Project-OSRM/osrm-backend/blob/8aa93f32ccd02ed3cdde2429715cdc9366be87f3/features/options/routed/help.feature#L10)
## Usage
Example of usage.
```bash
$ 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
```