fix(oci): keep every declared image data path on a volume so installs can be updated

This commit is contained in:
MacRimi
2026-09-30 22:28:20 +02:00
parent d2ac3b7638
commit c83f84398b
24 changed files with 257 additions and 65 deletions
+38
View File
@@ -74,6 +74,22 @@
"backup": true,
"default_size_gb": 4
}
},
{
"id": "volume-1",
"container_path": "/root/.cloudflared",
"compose_source_example": "/DATA/AppData/$AppID/cloudflared",
"read_only": false,
"required": true,
"installation_choice": [
"managed-volume",
"host-bind"
],
"default": "managed-volume",
"managed_volume": {
"backup": true,
"default_size_gb": 4
}
}
],
"ports": [
@@ -122,6 +138,11 @@
"type": "bind",
"source": "/DATA/AppData/cloudflared-cloudflared/config",
"target": "/config"
},
{
"type": "bind",
"source": "/DATA/AppData/$AppID/cloudflared",
"target": "/root/.cloudflared"
}
],
"container_name": "cloudflared"
@@ -151,6 +172,17 @@
"shared_with_other_lxc": false,
"source_path": null,
"source_path_prompt": null
},
{
"id": "cloudflared-volume-1",
"service": "cloudflared",
"container_path": "/root/.cloudflared",
"mode": "managed-volume",
"user_selectable": false,
"backup": true,
"shared_with_other_lxc": false,
"source_path": null,
"source_path_prompt": null
}
],
"orchestration": {
@@ -341,6 +373,12 @@
"remove_lost_found": true,
"owner_strategy": "mapped-root",
"only_when_mount_type": "managed-volume"
},
{
"container_path": "/root/.cloudflared",
"remove_lost_found": true,
"owner_strategy": "mapped-root",
"only_when_mount_type": "managed-volume"
}
]
}