nominatim-docker
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).
Dockerfile
links
Supported tags and respective 1.3.0
,1.3
,latest
(1.3/Dockerfile)1.3.0-trusty
,1.3-trusty
,trusty
(1.3/trusty/Dockerfile)1.2.0
,1.2
(1.2/Dockerfile)1.2.0-trusty
,1.2-trusty
(1.2/trusty/Dockerfile)1.1.0
,1.1
(1.1/Dockerfile)1.1.0-trusty
,1.1-trusty
(1.1/trusty/Dockerfile)1.0.1
,1.0
(1.0/Dockerfile)1.0.1-trusty
,1.0-trusty
(1.0/trusty/Dockerfile)
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