You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
Dockerfile | 5 years ago | |
README.md | 5 years ago | |
init.sh | 5 years ago | |
local.php | 5 years ago | |
nominatim.conf | 5 years ago | |
start.sh | 5 years ago |
README.md
Nominatim Docker
- Build
docker build -t nominatim .
-
Copy <your_country>.osm.pbf to a local directory (i.e. /home/docker-volumes/nominatimdata)
-
Initialize Nominatim Database
docker run -t -v /home/docker-volumes/nominatimdata:/data nominatim sh /app/init.sh /data/merged.osm.pbf postgresdata 4
Where 4 is the number of threads to use during import, set this according to the host.
You can delete the /home/docker-volumes/nominatimdata/merged.osm.pbf
once the import is finished.
- After the import is finished the
/home/docker-volumes/nominatimdata/postgresdata
folder will contain the full postgress binaries of a postgis/nominatim database.
Start the nominatim as a single node is the following:docker run --restart=always -p 7070:8080 -d -v /home/docker-volumes/nominatimdata/postgresdata:/var/lib/postgresql/9.5/main nominatim sh /app/start.sh
At this stage all database files are stored on the host and the containers are considered disposable.