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
83 lines
2.0 KiB
JSON
83 lines
2.0 KiB
JSON
{
|
|
"module": "tautulli",
|
|
"version": "1",
|
|
"emits": [
|
|
"module.tautulli.watch.recorded"
|
|
],
|
|
"own-secrets": {
|
|
"broker": "/var/lib/mesh/tautulli/broker"
|
|
},
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"listens": [
|
|
{
|
|
"port": 8181,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "watch statistics"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/tautulli",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"path": "/services/tautulli/config",
|
|
"mode": "0700",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "server",
|
|
"type": "container",
|
|
"name": "tautulli",
|
|
"image": "lscr.io/linuxserver/tautulli@sha256:13f03ecfc61a7af89d492677389771ac29682a72153ce08a5cd4faffbc0197e8",
|
|
"env": {
|
|
"PUID": "1000",
|
|
"PGID": "1000",
|
|
"TZ": "Etc/UTC"
|
|
},
|
|
"ports": [
|
|
"8181"
|
|
],
|
|
"volumes": [
|
|
"/services/tautulli/config:/config"
|
|
]
|
|
},
|
|
{
|
|
"id": "runtime-config",
|
|
"type": "file",
|
|
"path": "/var/lib/mesh/tautulli/config.json",
|
|
"mode": "0600",
|
|
"content": "{}\n",
|
|
"merge": "json"
|
|
},
|
|
{
|
|
"id": "runtime",
|
|
"type": "container",
|
|
"name": "mesh-tautulli",
|
|
"image": "mesh-runtime-tautulli@sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
"network": "host",
|
|
"volumes": [
|
|
"/var/lib/mesh/tautulli/broker:/run/secrets/broker:ro",
|
|
"/var/lib/mesh/tautulli/config.json:/run/config/config.json:ro",
|
|
"/services/tautulli/config:/var/lib/tautulli/config:ro"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "/run/secrets/broker",
|
|
"MESH_TAUTULLI_URL": "http://127.0.0.1:8181",
|
|
"MESH_TAUTULLI_CONFIG_FILE": "/run/config/config.json",
|
|
"MESH_TAUTULLI_CONFIG_DIR": "/var/lib/tautulli/config"
|
|
},
|
|
"restart-on": [
|
|
"runtime-config"
|
|
]
|
|
}
|
|
]
|
|
}
|