xize11
4
ah I see 
I think what you want is include /opt in /etc/sysupgrade.conf.
this way you let OpenWrt know it should include it in the backup mechanism, now I’m not sure if it keeps it also if you upgrade with the keep settings checkbox, I would expect it will be but don’t count me on this yet ! making a backup is very advised 
if your compose file is stored somewhere else it works the same way as adding /opt 
Do you know how to get access and edit this file in your router with ssh or winscp by chance ? 
if not no problem I will help 