From b1606302b0744f570c47410bab7263d1c14cd7d9 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 29 Apr 2026 16:02:33 -0400 Subject: [PATCH] Restore osrm-init profile and fix host port mapping Adds back the osrm-init service (profile: init) used by docker/osrm/update.sh to extract, partition, and customize CT map data. Also documents that the host port should be set to match the reverse proxy expectation (e.g. 8660:3000). Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 32d0dbd..35546aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,16 @@ services: + osrm-init: + image: osrm/osrm-backend + container_name: osrm-init + profiles: [init] + volumes: + - ./docker/osrm/data:/data + entrypoint: /bin/sh -c + command: > + "osrm-extract -p /opt/car.lua /data/connecticut-latest.osm.pbf && + osrm-partition /data/connecticut-latest.osrm && + osrm-customize /data/connecticut-latest.osrm" + osrm: image: osrm/osrm-backend container_name: osrm