Setup a Self-Hosted OpenRouteService Instance with Docker on Windows, Mac or Linux

Sdílet
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...

Komentáře • 57

  • @blackjack2win
    @blackjack2win Před 2 lety +4

    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.

  • @adgjk1
    @adgjk1 Před 2 lety +2

    Thanks, would love to see some more videos on OpenRouteService if you have any!

    • @syntaxbyte
      @syntaxbyte  Před 2 lety +4

      Will definitely consider making some additional videos on openrouteservice in the future. This video appears to be more popular than expected.

  • @irwinpalomo7212
    @irwinpalomo7212 Před 2 lety +2

    ty for the "windows instructions"
    flawless video tutorial, thank you.

  • @ghos001
    @ghos001 Před 8 měsíci +1

    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,

  • @newwinnersblues
    @newwinnersblues Před rokem

    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

  • @nelsonokosun9270
    @nelsonokosun9270 Před rokem

    I was able to successfully deploy this. My next problem is adding the frontend. I've been on this for weeks!

  • @sunrajsharma736
    @sunrajsharma736 Před 9 měsíci +1

    Great video, if possible can you also make a video of hosting the docker container in an Azure Container. It would be really helpful!!

  • @johnyepthomi892
    @johnyepthomi892 Před rokem

    Thank you for the content. Very helpful in getting set up and started.

  • @maxwu3735
    @maxwu3735 Před rokem

    Thanks for your sharing~! I think this video can help many developers

  • @alexandrufilipescu1301
    @alexandrufilipescu1301 Před 2 měsíci +2

    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.

    • @syntaxbyte
      @syntaxbyte  Před 2 měsíci +1

      Make sure the configuration points to the location of your pbf file: giscience.github.io/openrouteservice/run-instance/configuration/

  • @tyridol
    @tyridol Před 3 měsíci +1

    the "fvck" in 16:00 give me a loud laugh

  • @remitregan4408
    @remitregan4408 Před rokem +2

    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?

    • @vitor8547
      @vitor8547 Před rokem

      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

  • @GoetheHausMeknes1
    @GoetheHausMeknes1 Před 5 měsíci +1

    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?

  • @ertugrulpehlivan4512
    @ertugrulpehlivan4512 Před 8 měsíci

    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?

  • @vibhu0610
    @vibhu0610 Před rokem +3

    do you have any vide for VROOM installation ?

    • @anthonyjobey8821
      @anthonyjobey8821 Před rokem +1

      This would really help because i am stuck getting vroom setup on windows with this setup

  • @svdm007
    @svdm007 Před rokem +1

    Would be great to see a sequel covering localhost bulk isochrone generation (over 60 minutes). Any chance you will do this?

  • @bhaskardevgoel9697
    @bhaskardevgoel9697 Před rokem +1

    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.

    • @syntaxbyte
      @syntaxbyte  Před rokem +1

      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.

    • @vitor8547
      @vitor8547 Před rokem

      hi, is it possible? I thought the optimization was only withing their API and could not be self hosted

  • @manuelli_sebastian
    @manuelli_sebastian Před rokem

    Great tutorial, thank you.

  • @MattiaScalas
    @MattiaScalas Před rokem

    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

  • @bryanpauldanganan323
    @bryanpauldanganan323 Před rokem

    Upon entering docker compose up, I get the error message, "no configuration file provided"

  • @moffia100
    @moffia100 Před rokem

    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.

  • @harisrafiq1717
    @harisrafiq1717 Před rokem

    its possible using multiple pbf file ..? how the configuration ..? thanks

  • @yoyogamesthebestgames7197
    @yoyogamesthebestgames7197 Před 5 měsíci

    Do my pc has always to be connected to the internet so I can use openrouteservice on my app?

  • @aleksandarmedarevic1959
    @aleksandarmedarevic1959 Před 7 měsíci

    This is probably great, but could you please make a vide how install docker on mint though VM?

  • @sebastianarias9790
    @sebastianarias9790 Před 10 měsíci

    Can you make a video doing an optimization problem with a self-hosted ors on Python code?

  • @abduln8414
    @abduln8414 Před rokem

    Excellent video, do you have one for OpenTripPlanner?

  • @admirableconsejero1
    @admirableconsejero1 Před rokem

    Excelente video desde argentina. Saludos

  • @tf2Replays1
    @tf2Replays1 Před rokem

    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?

    • @syntaxbyte
      @syntaxbyte  Před rokem

      Hmm… have you tried doing a fresh clone and setting your new osm file before the first start of the container?

  • @christianhampel1338
    @christianhampel1338 Před rokem

    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

    • @syntaxbyte
      @syntaxbyte  Před rokem

      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.

  • @logicaldistraction
    @logicaldistraction Před 9 měsíci

    can you make another video about openpoiservice please?

  • @rgayathri9164
    @rgayathri9164 Před rokem

    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.

    • @syntaxbyte
      @syntaxbyte  Před rokem

      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.

    • @vi-vrienden1452
      @vi-vrienden1452 Před rokem

      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!

  • @adrianjmedinac8956
    @adrianjmedinac8956 Před rokem

    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?

    • @syntaxbyte
      @syntaxbyte  Před rokem +2

      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.

    • @adrianjmedinac8956
      @adrianjmedinac8956 Před rokem +1

      @@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.

    • @adrianjmedinac8956
      @adrianjmedinac8956 Před rokem

      It is running perfect! thank you so much

  • @mxrobmx
    @mxrobmx Před rokem

    what if I want to download like North and South America... ??? is it possible to set those two files?? (talking about .pbf files)

    • @syntaxbyte
      @syntaxbyte  Před rokem

      Looks like you could download both files and merge them: gis.stackexchange.com/questions/242704/merging-osm-pbf-files

  • @svdm007
    @svdm007 Před rokem

    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?

    • @syntaxbyte
      @syntaxbyte  Před rokem

      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/

    • @svdm007
      @svdm007 Před rokem +1

      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.

  • @rssistemasitu
    @rssistemasitu Před rokem

    How to solve error:
    ors-config.json exists in ors-conf folder. Copy config to /ors-core/openrouteservice/src/main/resources/ors-config.json

    • @yazidmekhtoub
      @yazidmekhtoub Před rokem

      it is not an error. if you wait a little the installation will continue