Migration to a different system - How to get compose.yaml files from Apps

Hello everybody,

TrueNAS has been a huge pain to me and my homelab, mostly because of ZFS. I’m planning the switch to a more traditional system build on Devuan+BTRFS (called MOS if any of you want to know) which uses apps in docker compose style. How do I export my iX-apps to a docker compose? Or a docker command, both are OK. Then, how do I copy data from iX-volumes?

(Side note, please don’t try to convince me to stay on TrueNAS or ZFS, the decision is taken and not up for negotiation due to ZFS simply not being kind to old SSHDs and being a RAM hog)

for catalog apps the rendered compose is under /mnt/.ix-apps/app_configs//versions//templates/rendered/docker-compose.yaml

mounts and env you set live next to it in user_config.yaml in that same version folder.

ix volumes are usually /mnt/.ix-apps/app_mounts// or whatever host path you pointed at. copy those dirs to the new box and retarget the paths in the compose. custom apps you pasted yourself are just that yaml, grab it from the apps ui or the same tree.

That is a long path/filename! Thank you for your answer, I will go and check that out.

This is JSON, not YAML. In the YAML file, I get JSON.
Proof:
{“configs”: {“permissions_actions_data”: {“content”: “[{\“read_only\”: false, \“mount_path\”: \”/mnt/permission/data\“, \“is_temporary\”: false, \“identifier\”: \“data\”, \“recursive\”: fa
lse, \“mode\”: \“check\”, \“uid\”: 568, \“gid\”: 568, \“chmod\”: null}]”}}, “services”: {“navidrome”: {“cap_drop”: [“ALL”], “depends_on”: {“permissions”: {“condition”: “service_completed_s
uccessfully”}}, “deploy”: {“resources”: {“limits”: {“cpus”: “2”, “memory”: “4096M”}}}, “environment”: {“GID”: “568”, “GROUP_ID”: “568”, “ND_DATAFOLDER”: “/data”, “ND_MUSICFOLDER”: “/music”
, “ND_PORT”: “30043”, “ND_UIWELCOMEMESSAGE”: “Welcome to Navidrome”, “NVIDIA_VISIBLE_DEVICES”: “void”, “PGID”: “568”, “PUID”: “568”, “TZ”: “Etc/UTC”, “UID”: “568”, “UMASK”: “002”, “UMASK_S
ET”: “002”, “USER_ID”: “568”}, “group_add”: [568], “healthcheck”: {“interval”: “30s”, “retries”: 5, “start_interval”: “2s”, “start_period”: “15s”, “test”: [“CMD”, “wget”, “–quiet”, “–spi
der”, “http://127.0.0.1:30043/ping”], “timeout”: “5s”}, “image”: “deluan/navidrome:0.64.2@sha256:38dc2727bfcfd5ede290f8ada114fc90368146f265ae4701ddddbcbe2a44ee52”, “platform”: "linux/amd64
", “ports”: [{“mode”: “ingress”, “protocol”: “tcp”, “published”: 30043, “target”: 30043}], “privileged”: false, “restart”: “unless-stopped”, “security_opt”: [“no-new-privileges=true”], “st
din_open”: false, “tty”: false, “user”: “568:568”, “volumes”: [{“bind”: {“create_host_path”: false, “propagation”: “rprivate”}, “read_only”: false, “source”: “/mnt/.ix-apps/app_mounts/navi
drome/data”, “target”: “/data”, “type”: “bind”}, {“bind”: {“create_host_path”: false, “propagation”: “rprivate”}, “read_only”: false, “source”: “/mnt/main/Musique_Youri”, “target”: "/music
", “type”: “bind”}, {“bind”: {“create_host_path”: false, “propagation”: “rprivate”}, “read_only”: false, “source”: “/mnt/main/Musique_Papa”, “target”: “/musique-papa”, “type”: “bind”}, {“b
ind”: {“create_host_path”: false, “propagation”: “rprivate”}, “read_only”: false, “source”: “/mnt/main/Musique_Zoia”, “target”: “/musique-zoia”, “type”: “bind”}]}, “permissions”: {"cap_add
": [“CHOWN”, “DAC_OVERRIDE”, “FOWNER”], “cap_drop”: [“ALL”], “configs”: [{“mode”: 320, “source”: “permissions_actions_data”, “target”: “/script/actions.json”}], “deploy”: {“resources”: {“l
imits”: {“cpus”: “2”, “memory”: “1024M”}}}, “entrypoint”: [“python3”, “/script/permissions.py”], “environment”: {“GID”: “568”, “GROUP_ID”: “568”, “NVIDIA_VISIBLE_DEVICES”: “void”, “PGID”:
“568”, “PUID”: “568”, “TZ”: “Etc/UTC”, “UID”: “568”, “UMASK”: “002”, “UMASK_SET”: “002”, “USER_ID”: “568”}, “group_add”: [568], “healthcheck”: {“disable”: true}, “image”: “ixsystems/contai
ner-utils:1.0.2@sha256:46eba20714c1cc6784f60e245c32c33a2d9f616e47d804694a9854248c89a992”, “network_mode”: “none”, “platform”: “linux/amd64”, “privileged”: false, “restart”: “on-failure:1”,
“security_opt”: [“no-new-privileges=true”], “stdin_open”: false, “tty”: false, “user”: “0:0”, “volumes”: [{“bind”: {“create_host_path”: false, “propagation”: “rprivate”}, “read_only”: fal
se, “source”: “/mnt/.ix-apps/app_mounts/navidrome/data”, “target”: “/mnt/permission/data”, “type”: “bind”}]}}, “volumes”: {}, “x-action-required”: false, “x-notes”: “# Navidrome\n\n## Secu
rity\n\n**Read the following security precautions to ensure that you wish to continue using this application.**\n\n—\n\n### Container: [navidrome]\n\n#### Running user/group(s)\n\n- User
: 568\n- Group: 568\n- Supplementary Groups: apps\n\n—\n\n### Container: [permissions]\n\n**This container is short-lived.**\n\n#### Running user/group(s)\n\n- User: root\n- Group: root\
n- Supplementary Groups: apps\n\n—\n\n## Bug Reports and Feature Requests\n\nIf you find a bug in this app or have an idea for a new feature, please file an issue at\nhttps://github.com/
truenas/apps\n”, “x-portals”: [{“host”: “0.0.0.0”, “name”: “Web UI”, “path”: “/”, “port”: 30043, “scheme”: “http”}]}%

Convert the Truenas app to a custom app, edit the app and copy the yaml

Thank you, works great! Now I can finally initiate the migration!