This repository holds the Dockerfiles to setup and update the geocoding and data matrix services based on OSRM.
Note:
- intended for Ubuntu 20.04
- Minimum of 8GB RAM is recommended (depending on the map)
- OSRM: Routing engine, distance & duration matrices
Based on Official OSRM docker image.
Notes:
- Supports any map from Geofabrik
- Built using
ARG
:continent
default aseurope
map
default asnetherlands-latest
- See building & running instructions below
- This give us the opportunity of store several docker images based on countries/regions
seenons/geo:netherlands-latest
seenons/geo:germany-latest
- etc.
- The instance requirements will vary depending on the size of the map
profiles
folder contains some custom profiles. Original configurations could be found in OSRM repository.
- OSRM: Routing engine, distance & duration matrices
- Ports from
5000
to5003
will serve the different profiles inprofile
folder
For the full list of continents/maps available please visit Geofabrik.
Example with --build-args
continent=europe
and map=netherlands-latest
:
# 1. Build docker image
docker build --no-cache --progress=plain --build-arg continent=europe --build-arg map=netherlands-latest -t seenons/geo:latest -f Dockerfile .
# 2. Run container
docker run -d --name geo -p 5000-5003:5000-5003 seenons/geo:latest
# Curl it!
curl "http://127.0.0.1:5000/route/v1/driving/4.8829509,52.368443;4.8831557,52.3684307?steps=true"