Add OSRM and OTP Docker services with setup scripts

Adds osrm-foot, osrm-bicycle, and otp services to Docker Compose under
a 'routing' profile (opt-in). Setup scripts download Greater London OSM
data and pre-process for OSRM foot/bicycle profiles, plus TfL GTFS for
OTP transit. Routing engine env vars added to .env.sample.
This commit is contained in:
Viktor Barzin 2026-02-08 13:16:10 +00:00
parent 149311508e
commit bb489c2032
No known key found for this signature in database
GPG key ID: 0EB088298288D958
4 changed files with 220 additions and 0 deletions

View file

@ -63,3 +63,10 @@ EXPORT_GEOJSON_STREAM_BATCH_CAP=200 # Max batch size for streaming
# Metrics endpoint access control (comma-separated IPs/CIDRs)
METRICS_ALLOWED_IPS=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,::1
# Self-hosted routing engines (POI distance calculator)
OSRM_FOOT_URL=http://osrm-foot:5000 # OSRM walking profile
OSRM_BICYCLE_URL=http://osrm-bicycle:5000 # OSRM cycling profile
OTP_URL=http://otp:8080 # OpenTripPlanner for transit
OSRM_BATCH_SIZE=50 # Origins per OSRM /table request
OTP_MAX_CONCURRENT=10 # Max concurrent OTP requests