Starefossen / docker-pgrouting

:whale: Docker Image for pgRouting with PostGIS and official Postgres Docker Image
https://registry.hub.docker.com/u/starefossen/pgrouting/
MIT License
33 stars 19 forks source link

How would I add OSM data to this Docker Image #1

Open dirklieske opened 8 years ago

dirklieske commented 8 years ago

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.

Starefossen commented 8 years ago

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