Skip to content

Instantly share code, notes, and snippets.

docker run -dt \
-v $PWD/custom_files:/custom_files \
-v nominatim-flatnode:/nominatim/flatnode \
-e PBF_PATH=/custom_files/brazil-latest.osm.pbf \
-e REVERSE_ONLY=true \
-p 8080:8080 \
--name nominatim \
mediagis/nominatim:4.4
apt-get update
apt install -y docker.io
mkdir custom_files
#wget https://download.geofabrik.de/south-america/chile-latest.osm.pbf
wget https://download.geofabrik.de/south-america/brazil-latest.osm.pbf
#wget https://download.geofabrik.de/africa/morocco-latest.osm.pbf
mv -v *.pbf custom_files
docker run -dt --name valhalla_gis-ops -p 8002:8002 -v $PWD/custom_files:/custom_files ghcr.io/gis-ops/docker-valhalla/valhalla:latest
docker run -it \
-v nominatim-flatnode:/nominatim/flatnode \
-e PBF_URL=https://osm-pds.s3.us-east-1.amazonaws.com/planet-latest.osm.pbf \
-e REVERSE_ONLY=true \
--shm-size=16g \
-p 8080:8080 \
--name nominatim \
mediagis/nominatim:4.4
@jcardus
jcardus / nominatim-sa.sh
Last active June 5, 2024 22:28
Nominatim South America
docker run -it \
-v nominatim-flatnode:/nominatim/flatnode \
-e PBF_URL=https://download.geofabrik.de/south-america-latest.osm.pbf \
-e REPLICATION_URL=https://download.geofabrik.de/south-america-updates \
-e UPDATE_MODE=catch-up \
-e REVERSE_ONLY=true \
--shm-size=16g \
-p 8080:8080 \
--name nominatim \
mediagis/nominatim:4.4
@jcardus
jcardus / valhalla-gce.tf
Last active October 8, 2023 18:05
Deploy Valhalla on Google Compute Engine using Terraform. Usage: terraform init / terraform apply
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "4.51.0"
}
}
}
variable "project" { }