This file describes how to build and use JRG image
docker build ./ -t jrg --no-cache
If you will mound postgres data as docker volume:
- Create volume for geodata.
docker volume create pgdata
- Convert OSM file to geocoder format
docker run -t -v "/local/path/to/osm/data/dir:/data" -v "pgdata:/pgdata" jrg /init.sh /data/your_extract.osm.pbf
- Run container to serve geocoder requests
docker run -v "pgdata:/pgdata" -d -p 8080:80 jrg