This Docker image provides a production-ready setup for running the GraphHopper routing engine.
3.1K
This Docker image provides a production-ready setup for running the GraphHopper routing engine — a fast and flexible path-finding API based on OpenStreetMap data.
We created this image to fill the gap left by the official project, which does not provide Docker builds.
graphhopper.sh helper scriptdocker run -d \
-p 8989:8989 \
-v $(pwd)/config.yml:/app/config.yml \
-v $(pwd)/gh-data:/data \
mouhamedtec/graphhopper:latest \
--config /app/config.yml \
--graph-cache /data/gh-cache
Access the web UI at http://localhost:8989
| Variable | Description | Default |
|---|---|---|
CONFIG_FILE | Path to GraphHopper config file | /app/config.yml |
JAVA_OPTS | JVM options | -Xmx1g -Xms1g |
GRAPHHOPPER_CACHE | Path to graph cache storage | /data/gh |
services:
graphhopper:
image: mouhamedtec/graphhopper:latest
ports:
- "8989:8989"
volumes:
- ./data:/data
- ./config.yml:/app/config.yml
environment:
- JAVA_OPTS=-Xmx2g -Xms2g
./build.sh --build-arg GH_VERSION=8.0
We welcome contributions! Open an issue or submit a pull request to help improve this image.
Content type
Image
Digest
sha256:04e6885f7…
Size
129.8 MB
Last updated
12 months ago
docker pull mouhamedtec/graphhopper