Sign inSign up

mouhamedtec/graphhopper

By mouhamedtec

Updated 12 months ago

This Docker image provides a production-ready setup for running the GraphHopper⁠ routing engine.

Image
0

3.1K

mouhamedtec/graphhopper repository overview

🗺️ GraphHopper Docker Image by Mouhamedtec

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.


🚀 Features

  • Daily auto-builds from the latest GraphHopper GitHub repository
  • Version-tagged builds when new releases are published
  • Secure: runs as a non-root user
  • Startup health checks and minimal footprint
  • Easy startup with graphhopper.sh helper script

🏁 Quick Start

docker 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


⚙️ Environment Variables

VariableDescriptionDefault
CONFIG_FILEPath to GraphHopper config file/app/config.yml
JAVA_OPTSJVM options-Xmx1g -Xms1g
GRAPHHOPPER_CACHEPath to graph cache storage/data/gh

🧪 Development with Docker Compose

services:
  graphhopper:
    image: mouhamedtec/graphhopper:latest
    ports:
      - "8989:8989"
    volumes:
      - ./data:/data
      - ./config.yml:/app/config.yml
    environment:
      - JAVA_OPTS=-Xmx2g -Xms2g

📦 Building Specific Versions

./build.sh --build-arg GH_VERSION=8.0

🤝 Contributing

We welcome contributions! Open an issue or submit a pull request to help improve this image.

Tag summary

Content type

Image

Digest

sha256:04e6885f7

Size

129.8 MB

Last updated

12 months ago

docker pull mouhamedtec/graphhopper