Setup a Self-Hosted OpenRouteService Instance with Docker on Windows, Mac or Linux
Vložit
- čas přidán 4. 09. 2024
- In this video, I cover setting up your own self-hosted instance of OpenRouteService using docker. The video was filmed using Linux Mint 21 Vanessa but the same instructions can be used on Windows or Mac with minimal modifications.
Links used in the video:
OpenRouteService Github: github.com/GIS...
OpenRouteService Examples (directions example): openrouteservi...{profile}/get
Geofabrik Download Server: download.geofa...
Thank you for the clear explanation!
Currently deploying a small server for the calculation of some cluster algorithms and this had been a great help.
Thanks, would love to see some more videos on OpenRouteService if you have any!
Will definitely consider making some additional videos on openrouteservice in the future. This video appears to be more popular than expected.
ty for the "windows instructions"
flawless video tutorial, thank you.
A cool feature not shown in this video is on the classic openrouteservice maps client, you can you use your own server to compute the routes as shown in this video, and then generate routes between points on the map, search, add parameters to your query through the client all on the pbf data you selected rather than through the API,
thank you so much for the clear explanation! So much easier to understand now and I appreciate the honesty of the f-bomb; I've said that myself while running this service
I was able to successfully deploy this. My next problem is adding the frontend. I've been on this for weeks!
Great video, if possible can you also make a video of hosting the docker container in an Azure Container. It would be really helpful!!
Thank you for the content. Very helpful in getting set up and started.
Thanks for your sharing~! I think this video can help many developers
The volumes now in v8.0 look different. What would you suggest me to do? I wanted to add a custom map and I can't.
Make sure the configuration points to the location of your pbf file: giscience.github.io/openrouteservice/run-instance/configuration/
the "fvck" in 16:00 give me a loud laugh
When I git clone the url at the beginning the openrouteservices directory doesn't have a docker directory, is anybody else dealing with this problem?
The github project used in this video is a bit different from the current git hub project. The reason being is that since the creation of this video it has been made many commits, altering a bit the structure. That being said, there is no need to create the folders with mkdir as mentioned in the video
Hi, your video was very helpful to me. Now they have new version 8.1 while the folder data does not exist can you do a video to teach how to import pfb file please?
Thank you for the video, good job. We want to use openroute in one of our projects. API restrictions prevent us from progressing. Can we use this method? Do I need to install it separately for each customer? Can't we set up and host it ourselves for other customers?
do you have any vide for VROOM installation ?
This would really help because i am stuck getting vroom setup on windows with this setup
Would be great to see a sequel covering localhost bulk isochrone generation (over 60 minutes). Any chance you will do this?
Thank you for such a fantastic video.
Can you make a video with steps on how to use the optimization endpoint of openrouteserive as well? I want to set up a local instance of ORS where I could generate optimized routes for hundreds of location points but the cloud API has a limit of around 50 locations.
Given the popularity of this video, I definitely do expect to make more videos regarding openrouteservice. I'm not sure at this point when exactly they will be live however, perhaps next week. Thanks for the feedback.
hi, is it possible? I thought the optimization was only withing their API and could not be self hosted
Great tutorial, thank you.
Thank for the very clear explanation! After your tutorial I tried to add a new profile (walking) in the area I'm studying (North-West Italy) but I get an error probably due to the RAM allocation in my Docker. I know it's not 100% on topic here but if somebody knows how to do it would be great. Thanks a lot
Upon entering docker compose up, I get the error message, "no configuration file provided"
Is it possible to use two GeoJSON files with latitude and longitude values for the starting and ending points in Docker. The OPS tool in QGIS is based on the API and can't handle the amount of data that I have.
its possible using multiple pbf file ..? how the configuration ..? thanks
Do my pc has always to be connected to the internet so I can use openrouteservice on my app?
No , its an local instance
This is probably great, but could you please make a vide how install docker on mint though VM?
Can you make a video doing an optimization problem with a self-hosted ors on Python code?
Excellent video, do you have one for OpenTripPlanner?
Excelente video desde argentina. Saludos
So far I've followed the instructions both on Windows 10 and on a VM with Ubuntu installed. In both instances the osm file fails to change and is stuck on Heidelberg.. Also, the new folders in the docker directory remain empty (probably fails to create the graphs). Any idea what could be the problem?
Hmm… have you tried doing a fresh clone and setting your new osm file before the first start of the container?
good morning! I wanted to know if you could help me, I followed the whole video but when I change to the Delaway map and put the same beginning and end as the video, the localhost keeps loading
If I recall correctly this usually happens when the map data is still loading. Some maps can take a while to load depending on the power of your system. Give it a good while and try the request again, that should solve the problem.
can you make another video about openpoiservice please?
Thanks! I followed through and im stuck at the mkdir -p conf elevation_cache graphs logs/ors logs/tomcat command. Its showing syntax error and i dont understand what is the mistake. Im using Windows 10.
Are you executing this command in a bash environment (Windows Subsystem for Linux, cygwin, etc) or in cmd? It won't work in CMD. I recommend doing this from a WSL instance.
You could try put to it in brackets since CMD doesn't like spaces for example: mkdir -p conf "elevation_cache graphs logs/ors logs/tomcat command"
Hope it helps!
Thank you !
After exploring the forums, viewing the documentation, reviewing and editing the file, ors-config.json in multiple ways
Reinstall and restart the container.
I keep getting the answer.
"mistake": {
"code": 2099,
"message": "Could not get an appropriate route profile for Route Preference = drive-car"
},
and it is the same in the other profiles
Does anyone know how I can go to fix it?
Does this occur when using the a custom osm file? Are you certain the osm file is valid? Also, I believe the correct profile name is driving-car not drive-car so this could be an issue as well.
@@syntaxbyte Hello, thanks for the answer. Yes that's how it is, driving-car ! I have used the default configuration of the container. Now I'll try with not building the source, as I found in the Logs what problem is in the user permissions in the containing and the reading of the profile. I'm working on this and I'll let you know if I find the solution. Docker container cannot create lock file in directory /home/ors/ors-core/data/graphs/car.
It is running perfect! thank you so much
what if I want to download like North and South America... ??? is it possible to set those two files?? (talking about .pbf files)
Looks like you could download both files and merge them: gis.stackexchange.com/questions/242704/merging-osm-pbf-files
Thanks a lot for this tutorial. I was stuck at the part where you copy the osm.pbf file to openrouteservice. The command explorer.exe . (! include the extra dot !) helped for me. However, I can't find how to delete the 'car' folder? Windows 10 keeps telling me that I don't have administrator privileges. How to solve that?
You want to open explorer with admin privileges most likely. Try this: www.addictivetips.com/windows-tips/run-file-explorer-with-admin-rights-windows-10/
After a lot of blood, sweat and tears, I found a solution to move forward. In (e.g.) Debian, type in the following commands (you will be asked for your Linux password):
cd ~/openrouteservice/docker/graphs
sudo rm -r ./car
This allowed me to delete the car folder.
How to solve error:
ors-config.json exists in ors-conf folder. Copy config to /ors-core/openrouteservice/src/main/resources/ors-config.json
it is not an error. if you wait a little the installation will continue