Skip to content

Commit fac8af8

Browse files
committed
fix: make valhalla.json bind mount writable
The compose renderer defaults bind mounts to read-only, which broke the valhalla-scripted entrypoint: it runs `valhalla_build_config` at startup and tries to overwrite `/custom_files/valhalla.json`, failing with `OSError: [Errno 30] Read-only file system`. Set `readOnly: false` so the entrypoint can regenerate the config from the env vars (`serve_tiles`, `build_elevation`, etc.) on every start.
1 parent f9064a9 commit fac8af8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

services/valhalla/service.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@
3131
},
3232
"provides": ["routing-engine"],
3333
"consumes": [{ "type": "osm-pbf", "mountAt": "/custom_files", "required": true }],
34-
"bindMounts": [{ "source": "config/valhalla.json", "target": "/custom_files/valhalla.json" }],
34+
"bindMounts": [
35+
{
36+
"source": "config/valhalla.json",
37+
"target": "/custom_files/valhalla.json",
38+
"readOnly": false
39+
}
40+
],
3541
"configSchema": {
3642
"type": "object",
3743
"properties": {

0 commit comments

Comments
 (0)