Offline routing phase 1: valhalla container building from the offline map's extracts, status in the Offline data panel
CI / check (push) Successful in 55s
CI / deploy (push) Successful in 2m48s

This commit is contained in:
randy committed 2026-11-13 21:24:19 +01:00
1 parent 6f5f11cb4d
commit bf912b96e5
13 files changed
+455 -36

No files matched your search

+18
View File
@@ -54,6 +54,8 @@ services:
# that only forwards to maptool itself, so app.rb's GET /kiwix/*
# proxies to this instead of handing the browser this address.
KIWIX_URL: "http://kiwix:8080"
# The valhalla service below, same story as KIWIX_URL.
VALHALLA_URL: "http://valhalla:8002"
volumes:
# Uploaded GPX files and the offline PMTiles extract — kept outside
# the image so a rebuild/redeploy doesn't wipe them (see
@@ -128,6 +130,22 @@ services:
# :z, shared for the same reason as maptool's own ./data mount above.
- ./data/kiwix/wikipedia.zim:/data/wikipedia.zim:z
# Offline routing (docs/routing-design.adoc). Valhalla's own image (it
# isn't packaged for Debian, so not in maptool's), running
# data/routing/service.sh — bin/routing-service.sh, copied there by
# maptool at boot so the two always match; the loop below waits for it
# on a first start. Mounts the whole data/ (not just data/routing/) so it
# can hard-link Geofabrik extracts from data/geofabrik_cache/ (a link
# can't cross two bind mounts). Serves port 8002 on the compose network
# only, maptool proxies to it.
valhalla:
image: ghcr.io/valhalla/valhalla:3.9.1
restart: unless-stopped
command: ["bash", "-c", "until [ -f /data/routing/service.sh ]; do sleep 5; done; exec bash /data/routing/service.sh"]
volumes:
# :z, shared for the same reason as maptool's own ./data mount above.
- ./data:/data:z
networks:
default:
enable_ipv6: true