No effort Open Streetmap PG Routing Server
2.0K
This container is widely impired of works of https://github.com/Smartappli/openstreetmap-tile-server. It allows you to easily set up an OpenStreetMap PG Routing server given a .osm file.
First create a Docker volume to hold the PostgreSQL database that will contain the OpenStreetMap data:
docker volume create openstreetmap-datapgr
Next, install osmctools to clean to clean osm.pbf files and screen apt install -y osmctools screen
Cretate a screen session screen -S pgrouting and change directory for opt cd /opt
Download the importation script start.sh and adapt properties and start importing of osm planet into PostgreSQL by running the script.
wget -c https://raw.githubusercontent.com/Smartappli/openstreetmap-pgrouting-server/main/start.sh
chmod +x start.sh
sh start.sh
Data import takes several days
To reconnect to the screen session in case of ssh session interruption use:
screen -x pgrouting
At the end the server will launch and will listen on 5433 port.
Note: This Docker image has been successfully tested on VPS XXL Contabo https://contabo.com/en/vps/vps-xl-ssd/?image=ubuntu.267&qty=1&contract=1
Copyright 2021 Olivier Debauche
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Content type
Image
Digest
Size
521.2 MB
Last updated
about 5 years ago
docker pull smartappli/openstreetmap-pgrouting-server