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

@ -140,6 +140,45 @@ services:
networks:
- rec-network
osrm-foot:
image: ghcr.io/project-osrm/osrm-backend:latest
container_name: rec-osrm-foot
command: ["osrm-routed", "--algorithm", "MLD", "/data/foot/greater-london-latest.osrm"]
volumes:
- osrm_data:/data
ports:
- "5100:5000"
networks:
- rec-network
profiles:
- routing
osrm-bicycle:
image: ghcr.io/project-osrm/osrm-backend:latest
container_name: rec-osrm-bicycle
command: ["osrm-routed", "--algorithm", "MLD", "/data/bicycle/greater-london-latest.osrm"]
volumes:
- osrm_data:/data
ports:
- "5101:5000"
networks:
- rec-network
profiles:
- routing
otp:
image: opentripplanner/opentripplanner:2.6.0
container_name: rec-otp
command: ["--load", "--serve"]
volumes:
- otp_data:/var/opentripplanner
ports:
- "8080:8080"
networks:
- rec-network
profiles:
- routing
networks:
rec-network:
driver: bridge
@ -150,3 +189,5 @@ volumes:
app_venv:
frontend_node_modules:
caddy_data:
osrm_data:
otp_data: