mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-10-19 03:52:00 +00:00
fix(oci): prepare managed volumes across stack installs
This commit is contained in:
@@ -1,24 +1,32 @@
|
||||
{
|
||||
"catalog_ui": {
|
||||
"launch": {"scheme": "http", "port": 32400, "path": "/web"}
|
||||
},
|
||||
"container_contract": {
|
||||
"ports": [{
|
||||
"container_port": 32400,
|
||||
"published_example": 32400,
|
||||
"protocol": "tcp",
|
||||
"required": true,
|
||||
"proxmox_behavior": "listener-on-dedicated-lxc-address-no-nat"
|
||||
}]
|
||||
},
|
||||
"first_run": {
|
||||
"endpoints": [{
|
||||
"label": "Plex WebUI",
|
||||
"launch": {
|
||||
"scheme": "http",
|
||||
"port": 32400,
|
||||
"path": "/web",
|
||||
"source": "linuxserver-application-setup"
|
||||
}]
|
||||
"path": "/web"
|
||||
}
|
||||
},
|
||||
"container_contract": {
|
||||
"ports": [
|
||||
{
|
||||
"container_port": 32400,
|
||||
"published_example": 32400,
|
||||
"protocol": "tcp",
|
||||
"required": true,
|
||||
"proxmox_behavior": "listener-on-dedicated-lxc-address-no-nat"
|
||||
}
|
||||
]
|
||||
},
|
||||
"first_run": {
|
||||
"endpoints": [
|
||||
{
|
||||
"label": "Plex WebUI",
|
||||
"scheme": "http",
|
||||
"port": 32400,
|
||||
"path": "/web",
|
||||
"source": "linuxserver-application-setup"
|
||||
}
|
||||
]
|
||||
},
|
||||
"proxmox": {
|
||||
"deployment_profile": {
|
||||
@@ -30,29 +38,73 @@
|
||||
"prompt": "Hardware acceleration for Plex",
|
||||
"default": "none",
|
||||
"profiles": [
|
||||
{"id": "none", "label": "No acceleration (CPU)", "device_requests": []},
|
||||
{
|
||||
"id": "none",
|
||||
"label": "No acceleration (CPU)",
|
||||
"device_requests": []
|
||||
},
|
||||
{
|
||||
"id": "vaapi",
|
||||
"label": "Intel/AMD (VA-API)",
|
||||
"environment_from_devices": {"ATTACHED_DEVICES_PERMS": ["vaapi-render"]},
|
||||
"device_requests": [{
|
||||
"id": "vaapi-render", "kind": "character-device", "purpose": "vaapi",
|
||||
"path_prompt": "GPU render device", "host_path_default": "/dev/dri/renderD128",
|
||||
"container_path_strategy": "same-as-host", "mode": "0660", "deny_write": false,
|
||||
"gid_strategy": "host-device-gid"
|
||||
}]
|
||||
"environment_from_devices": {
|
||||
"ATTACHED_DEVICES_PERMS": [
|
||||
"vaapi-render"
|
||||
]
|
||||
},
|
||||
"device_requests": [
|
||||
{
|
||||
"id": "vaapi-render",
|
||||
"kind": "character-device",
|
||||
"purpose": "vaapi",
|
||||
"path_prompt": "GPU render device",
|
||||
"host_path_default": "/dev/dri/renderD128",
|
||||
"container_path_strategy": "same-as-host",
|
||||
"mode": "0660",
|
||||
"deny_write": false,
|
||||
"gid_strategy": "host-device-gid"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nvidia",
|
||||
"label": "NVIDIA (NVENC/NVDEC)",
|
||||
"device_requests": [{
|
||||
"id": "nvidia-runtime", "kind": "nvidia-runtime",
|
||||
"purpose": "nvidia-cuda-nvenc-nvdec", "device_selection": "all-requested-by-compose"
|
||||
}],
|
||||
"environment": [{"name": "NVIDIA_VISIBLE_DEVICES", "value": "all"}]
|
||||
"device_requests": [
|
||||
{
|
||||
"id": "nvidia-runtime",
|
||||
"kind": "nvidia-runtime",
|
||||
"purpose": "nvidia-cuda-nvenc-nvdec",
|
||||
"device_selection": "all-requested-by-compose"
|
||||
}
|
||||
],
|
||||
"environment": [
|
||||
{
|
||||
"name": "NVIDIA_VISIBLE_DEVICES",
|
||||
"value": "all"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"volume_preparations": [
|
||||
{
|
||||
"container_path": "/config",
|
||||
"remove_lost_found": true,
|
||||
"owner_strategy": "mapped-root",
|
||||
"only_when_mount_type": "managed-volume"
|
||||
},
|
||||
{
|
||||
"container_path": "/tv",
|
||||
"remove_lost_found": true,
|
||||
"owner_strategy": "mapped-root",
|
||||
"only_when_mount_type": "managed-volume"
|
||||
},
|
||||
{
|
||||
"container_path": "/movies",
|
||||
"remove_lost_found": true,
|
||||
"owner_strategy": "mapped-root",
|
||||
"only_when_mount_type": "managed-volume"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user