Each module becomes modules/<name>/ holding module.json, with room for the rest of what a module is — its tools, health checks, provisioning, lifecycle — which the conversion from hal still has to bring across. The flat <name>.json was only the resource-declaration half. Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
88 lines
2.0 KiB
JSON
88 lines
2.0 KiB
JSON
{
|
|
"module": "plex",
|
|
"version": "1",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"listens": [
|
|
{
|
|
"port": 32400,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "streaming and the app; reaching it from outside is a route grant later"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"path": "/services/plex/config",
|
|
"mode": "0700",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "transcode",
|
|
"type": "directory",
|
|
"path": "/services/plex/transcode",
|
|
"mode": "0700",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "media-movies",
|
|
"type": "directory",
|
|
"path": "/services/media/movies",
|
|
"mode": "0755",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "media-series",
|
|
"type": "directory",
|
|
"path": "/services/media/series",
|
|
"mode": "0755",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "media-anime",
|
|
"type": "directory",
|
|
"path": "/services/media/anime",
|
|
"mode": "0755",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "media-music",
|
|
"type": "directory",
|
|
"path": "/services/media/music",
|
|
"mode": "0755",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "media-audiobooks",
|
|
"type": "directory",
|
|
"path": "/services/media/audiobooks",
|
|
"mode": "0755",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "server",
|
|
"type": "container",
|
|
"name": "plex",
|
|
"image": "plexinc/pms-docker@sha256:83a425ae9e133b1cb2cc3b809556e01c61cd8ff65c582e41b4374bc2210bac9e",
|
|
"network": "host",
|
|
"env": {
|
|
"PLEX_UID": "1000",
|
|
"PLEX_GID": "1000",
|
|
"TZ": "Etc/UTC"
|
|
},
|
|
"volumes": [
|
|
"/services/plex/config:/config",
|
|
"/services/plex/transcode:/transcode",
|
|
"/services/media/movies:/movies",
|
|
"/services/media/series:/series",
|
|
"/services/media/anime:/anime",
|
|
"/services/media/music:/music",
|
|
"/services/media/audiobooks:/audiobooks"
|
|
]
|
|
}
|
|
]
|
|
}
|