IIRC NAS devices don’t have local storage, but they map/install application data onto the HDDs provided.
Seems Discourse is available as official add-on: Packages | Synology Inc.
Digging deeper, this is a proprietary format with .spk. Can be extracted with tar.
https://forum.synology.com/enu/viewtopic.php?t=10575
Guess you would need to extract the data, re-build the spk file and then deploy this app again. Maybe Synology support know more about their packages, or the Discourse package maintainer over there.
I don’t have a Synology at hand, but it seems they have their own way to package Docker images and run them.