switch martin port
This commit is contained in:
parent
7ec524ee7c
commit
7f61efa05b
3 changed files with 4 additions and 41 deletions
|
|
@ -113,7 +113,7 @@ podman compose restart martin
|
||||||
| backend | 8080 | Rust API gateway |
|
| backend | 8080 | Rust API gateway |
|
||||||
| postgres | 5432 | PostGIS database |
|
| postgres | 5432 | PostGIS database |
|
||||||
| redis | 6379 | Tile/route cache |
|
| redis | 6379 | Tile/route cache |
|
||||||
| martin | 3000 | Vector tile server |
|
| martin | 3001 | Vector tile server |
|
||||||
| photon | 2322 | Geocoding (search) |
|
| photon | 2322 | Geocoding (search) |
|
||||||
| osrm-driving | 5000 | Car routing |
|
| osrm-driving | 5000 | Car routing |
|
||||||
| osrm-walking | 5001 | Walking routing |
|
| osrm-walking | 5001 | Walking routing |
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
HOST: "0.0.0.0"
|
HOST: "0.0.0.0"
|
||||||
PORT: "8080"
|
PORT: "8080"
|
||||||
MARTIN_URL: "http://martin:3000"
|
MARTIN_URL: "http://martin:3001"
|
||||||
PHOTON_URL: "http://photon:2322"
|
PHOTON_URL: "http://photon:2322"
|
||||||
OSRM_DRIVING_URL: "http://osrm-driving:5000"
|
OSRM_DRIVING_URL: "http://osrm-driving:5000"
|
||||||
OSRM_WALKING_URL: "http://osrm-walking:5000"
|
OSRM_WALKING_URL: "http://osrm-walking:5000"
|
||||||
|
|
@ -58,9 +58,10 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- maps-net
|
- maps-net
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3001:3001"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: "postgres://maps:maps@postgres:5432/maps"
|
DATABASE_URL: "postgres://maps:maps@postgres:5432/maps"
|
||||||
|
command: ["--listen-addresses", "0.0.0.0:3001"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# scripts/05_import_routing.sh
|
|
||||||
# Preprocess OSM data for OSRM routing.
|
|
||||||
# OSRM tools (osrm-extract, osrm-partition, osrm-customize) only exist inside
|
|
||||||
# the osrm/osrm-backend Docker image, so we run one-off containers here.
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
PBF_FILE="${PBF_FILE:-/data/osm/region.osm.pbf}"
|
|
||||||
OSRM_DATA="/data/osrm"
|
|
||||||
NETWORK="maps-backend_maps-net"
|
|
||||||
|
|
||||||
for PROFILE in car foot bicycle; do
|
|
||||||
PROFILE_DIR="${OSRM_DATA}/${PROFILE}"
|
|
||||||
mkdir -p "$PROFILE_DIR"
|
|
||||||
cp "$PBF_FILE" "${PROFILE_DIR}/region.osm.pbf"
|
|
||||||
|
|
||||||
echo "=== Processing OSRM profile: $PROFILE ==="
|
|
||||||
|
|
||||||
podman run --rm \
|
|
||||||
-v "${PROFILE_DIR}:/data" \
|
|
||||||
docker.io/osrm/osrm-backend:latest \
|
|
||||||
osrm-extract -p "/opt/${PROFILE}.lua" /data/region.osm.pbf
|
|
||||||
|
|
||||||
podman run --rm \
|
|
||||||
-v "${PROFILE_DIR}:/data" \
|
|
||||||
docker.io/osrm/osrm-backend:latest \
|
|
||||||
osrm-partition /data/region.osrm
|
|
||||||
|
|
||||||
podman run --rm \
|
|
||||||
-v "${PROFILE_DIR}:/data" \
|
|
||||||
docker.io/osrm/osrm-backend:latest \
|
|
||||||
osrm-customize /data/region.osrm
|
|
||||||
|
|
||||||
echo "OSRM $PROFILE profile ready at $PROFILE_DIR"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "All OSRM profiles processed."
|
|
||||||
Loading…
Add table
Reference in a new issue