docker-pgrouting icon indicating copy to clipboard operation
docker-pgrouting copied to clipboard

How would I add OSM data to this Docker Image

Open dirklieske opened this issue 9 years ago • 1 comments

I seem not to be able to get to a command prompt. Only access to psql. So how would I run Osm2pgsql to import OSM datafiles into the postgres database.

dirklieske avatar Dec 21 '15 21:12 dirklieske

Hi @dirklieske and thank you for your interest in the pgRouting Docker Image.

Simply explained you first need to start the pgrouting database container, and then you can configure osm2pgsql to connect to the database like this:

osm2pgsql \
  --host <IP address for DB container> \
  --port <PORT for DB container> \
  --database postgres

Starefossen avatar Dec 22 '15 09:12 Starefossen