balloon-shop/docker-compose.yml
chris b1606302b0 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 <noreply@anthropic.com>
2026-04-29 16:02:33 -04:00

39 lines
936 B
YAML

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
restart: unless-stopped
ports:
- "5002:5000"
volumes:
- ./docker/osrm/data:/data
command: osrm-routed --algorithm mld /data/connecticut-latest.osrm
balloons-shop:
build: .
container_name: balloons-shop
ports:
- "3000:3000"
env_file:
- .env
restart: unless-stopped
depends_on:
- osrm
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/catalog"]
interval: 30s
timeout: 10s
retries: 3