Runtime config: dedicated mergeable file + restart-on so settings take effect (issue 009)

Give each settings-config runtime a mergeable config file with its own id
(runtime-config) — the previous "config" collided with modules that already own a
config directory, so ten runtimes mounted a config file no resource declared. Point
each runtime's restart-on at it, so a settings change recreates the runtime and it
re-reads the new value (needs the mesh-host container restart-on fix on
issue/009-container-restart-on). Proven: runtime-restart-on-config e2e green.

Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
This commit is contained in:
2026-09-04 23:40:07 +02:00
parent 9e156a5b9e
commit 550393b847
19 changed files with 165 additions and 28 deletions
+12 -1
View File
@@ -81,6 +81,14 @@
"/services/media/downloads:/downloads"
]
},
{
"id": "runtime-config",
"type": "file",
"path": "/var/lib/mesh/bazarr/config.json",
"mode": "0600",
"content": "{}\n",
"merge": "json"
},
{
"id": "runtime",
"type": "container",
@@ -97,7 +105,10 @@
"MESH_BAZARR_URL": "http://127.0.0.1:6767",
"MESH_BAZARR_CONFIG_FILE": "/run/config/config.json",
"MESH_BAZARR_CONFIG_DIR": "/var/lib/bazarr/config"
}
},
"restart-on": [
"runtime-config"
]
}
]
}