8000 GitHub - yathit/nominatim-docker: 100% working container for Nominatim
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yathit/nominatim-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nominatim Docker

100% working container for Nominatim.

Supported tags and respective Dockerfile links

Run http://wiki.openstreetmap.org/wiki/Nominatim in a docker container. Clones the current master and builds it. This is always the latest version, be cautious as it may be unstable.

Uses Ubuntu 16.04 and PostgreSQL 9.3

Country

To check that everything is set up correctly, download and load to Postgres PBF file with minimal size - Europe/Monacco (latest) from geofabrik.de.

If a different country should be used you can set PBF_DATA on build.

  1. Clone repository
# git clone git@github.com:mediagis/nominatim-docker.git
# cd nominatim-docker/3.0
  1. Modify Dockerfile, set your url for PBF (No need, updated in this repo)
ENV PBF_DATA http://download.geofabrik.de/asia/myanmar-latest.osm.pbf
  1. Configure incrimental update. By default CONST_Replication_Url configured for Myanmar. If you want a different update source, you will need to declare CONST_Replication_Url in local.php. Documentation [here] (https://github.com/openstreetmap/Nominatim/blob/master/docs/Import-and-Update.md#updates). For example, to use the daily country extracts diffs for Myanmar from geofabrik add the following:
@define('CONST_Replication_Url', 'http://download.geofabrik.de/asia/myanmar-updates');
  1. Build
docker build -t nominatim .
  1. Run

Enable firewall, sudo ufw allow 8185 if not yet so.

docker run --restart=always -d -p 8185:8185 --name nominatim-myanmar nominatim

If this succeeds, open http://localhost:8185/ in a web browser

Running

You can run Docker image from docker hub.

docker run --restart=always -d -p 8185:8185 --name nominatim mediagis/nominatim:latest

Service will run on http://localhost:8185/

Update

Full documentation for Nominatim update available here. For a list of other methods see the output of:

docker exec -it nominatim sudo -u nominatim ./src/build/utils/update.p
5083
hp --help

The following command will keep your database constantly up to date:

docker exec -it nominatim sudo -u nominatim ./src/build/utils/update.php --import-osmosis-all

If you have imported multiple country extracts and want to keep them up-to-date, have a look at the script in issue #60.

About

100% working container for Nominatim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 78.2%
  • PHP 19.5%
  • Shell 2.3%
0