This Docker image will import an OSM PBF file using imposm3 and a custom mapping configuration.
Use Geofabrik and choose the extract of your country or region. Download it and put it into the directory.
The import-osm Docker container will take the first PBF file in the volume mounted to the /import folder and import it using imposm3 using the mapping file from the $MAPPING_YAML (default /mapping/mapping.yaml).
Volumes:
/import foldermapping.yaml into the /mapping folder/cache folder for later reusedocker run --rm \
-v $(pwd):/import \
-v $(pwd):/mapping \
-e POSTGRES_USER="osm" \
-e POSTGRES_PASSWORD="osm" \
-e POSTGRES_HOST="127.0.0.1" \
-e POSTGRES_DB="osm" \
-e POSTGRES_PORT="5432" \
openmaptiles/import-osm
Content type
Image
Digest
Size
337 MB
Last updated
over 9 years ago
docker pull snodnipper/import-osm