webarena icon indicating copy to clipboard operation
webarena copied to clipboard

problem of using docker to set up map

Open newlearnt opened this issue 9 months ago • 1 comments

I just run the docker of Tile Sever, Geocoding Server and three routing servers. I don't know how to follow the instruction in the installation guide: "Now, inside the file webarena/openstreetmap-website/vendor/assets/leaflet/leaflet.osm.js, change http://ogma.lti.cs.cmu.edu:8080/tile/{z}/{x}/{y}.png to http://:8080/tile/{z}/{x}/{y}.png." ,,“Now, inside the config file webarena/openstreetmap-website/config/settings.yml, update the value of fossgis_osrm_url from "http://metis.lti.cs.cmu.edu:8085/" to "http://:8085/" and “If your port is different, you can update the mapping in the aforementioned file to match your own ports.”

newlearnt avatar Mar 07 '25 02:03 newlearnt

I would like to ask how you set up the step before setting up the problem you mentioned? I tried to docker volume create osm-tiles and put the osm-data in the downloaded tar file in the volume folder and the following docker command before: docker run --volume=/var/lib/containers/storage/volumes/osm-data:/data/database/ --volume=/var/lib/containers/storage/volumes/osm-tiles:/data/tiles/ -p 8080:80 --detach=true overv/openstreetmap-tile-server run

However, the container exited immediately after a few seconds. I don't know what caused it. I would like to ask what you did before

lhyscau avatar Apr 22 '25 01:04 lhyscau

It looks like we need to import the volume first, like

docker run     -v /home/guest/xyj/webarena/openstreetmap-website/us-northeast-latest.osm.pbf:/data/region.osm.pbf     -v /home/guest/zsf/xyj/projects/ogma3/docker/volumes/osm-data:/data/database/     overv/openstreetmap-tile-server     import

Please check https://github.com/Overv/openstreetmap-tile-server for reference

TarferSoul avatar Aug 24 '25 14:08 TarferSoul

I think this should be fixed now in the most recent version of the code.

neubig avatar Oct 14 '25 21:10 neubig