I generally use contexts.<name>.volumes for filesets and volumes that contain config files and declare volumes in the compose file that contain data files to avoid purging that data when I destroy a stack. I prefer to always delete data volumes manually. It would be nice to be able to also declare those volumes in the dockform.yaml with an additional option to ignore them. While I don't do this at the moment for networks, it seems like this could also apply there as well.
For Example:
contexts:
default:
networks:
network-1:
network-2:
destroy: false
volumes:
config-volume:
data-volume:
destroy: false
I generally use
contexts.<name>.volumesfor filesets and volumes that contain config files and declare volumes in the compose file that contain data files to avoid purging that data when I destroy a stack. I prefer to always delete data volumes manually. It would be nice to be able to also declare those volumes in thedockform.yamlwith an additional option to ignore them. While I don't do this at the moment for networks, it seems like this could also apply there as well.For Example: