/nominatim-docker

Docker image for Nominatim

Primary LanguageDockerfileMIT LicenseMIT

nominatim-docker

CircleCI

Docker image for Nominatim, an open source tool to search OpenStreetMap data by name and address (geocoding) and to generate synthetic addresses of OSM points (reverse geocoding).

Supported tags and respective Dockerfile links

Usage

Pass the NOMINATIM_PBF_URL environment variable to the container referencing the URL of your PBF file:

docker run -d -p 8080:8080 \
-e NOMINATIM_PBF_URL='http://download.geofabrik.de/asia/maldives-latest.osm.pbf' \
--name nominatim peterevans/nominatim:latest

The PBF file will be downloaded and the database will begin building. Note that very large databases may take hours to be built.

Tail the logs to verify the database has been built and Apache is serving requests:

docker logs -f <CONTAINER ID>

Then point your web browser to http://localhost:8080/

For documentation see https://wiki.openstreetmap.org/wiki/Nominatim

Persistent Storage

For a solution to persisting the database and immutable deployments check out Nominatim for Kubernetes.

License

MIT License - see the LICENSE file for details