Replies: 1 comment 4 replies
-
The data and flatnode volumes are not as important as the postgres one. The readme has a section on "Persistent Container data", which has an example command: https://github.com/mediagis/nominatim-docker/tree/master/4.0#persistent-container-data |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
Thank you for the image, and for consolidating a lot of things to make the installation/usability easy.
My question here is can we start the docker image with the flat file ( db data)?
Steps:
sudo docker run -it --rm --shm-size=2g -e THREADS=8 -e NOMINATIM_FLATNODE_FILE=/nominatim/flatnode/flatnode.file -e POSTGRES_SHARED_BUFFERS=1GB -e POSTGRES_MAINTAINENCE_WORK_MEM=1GB -e POSTGRES_AUTOVACUUM_WORK_MEM=1GB -e POSTGRES_WORK_MEM=50MB -e POSTGRES_EFFECTIVE_CACHE_SIZE=1GB -e POSTGRES_SYNCHRONOUS_COMMIT=off -e POSTGRES_MAX_WAL_SIZE=1GB -e POSTGRES_CHECKPOINT_TIMEOUT=10min -e POSTGRES_CHECKPOINT_COMPLETITION_TARGET=0.9 -e IMPORT_STYLE=address -e PBF_PATH=/nominatim/data/canada-latest.osm.pbf -e REPLICATION_URL=https://download.geofabrik.de/north-america/canada-updates/ -v /home/ec2-user/nominatim-docker/4.0/data:/nominatim/data -v ~/Downloads/nominatim-flatnode:/nominatim/flatnode -e NOMINATIM_PASSWORD=nominatim1234 -e IMPORT_WIKIPEDIA=false -p 8080:8080 --name nominatim nominatim
I was able to successfuly query the canda geopolygon using curl
I have stopped my container
Now I want to restart a fresh container by pointing to the flatfile , so that the download doesnt happen again, but I am unable to achieve that. Is that a possible option? If yes how can we achieve that, am i missing something here?
I have tried mounting option -v ~/Downloads/nominatim-flatnode:/nominatim/flatnode, but its running from step1 again and trying to download.
Please let me know if i am missing something here.
Regards
Beta Was this translation helpful? Give feedback.
All reactions