@andxclfor I'm facing a similar challenge with Discourse at the moment, only it is a hosted standard-edition, which makes the transfer to self-hosted a bit tricky.
The process in general would be straightforward, you create a backup on the current Discourse, set it read only, set up the new one and import that backup.
My problem (and yours, depending on what you're using): the live version is Discourse 2.7.0.beta5 and they won't allow migrating to a lower version (Cloudron is Discourse 2.6.3, so I either have to wait until 2.7.0 is stable and the Cloudron version gets updated or I'll have to do a custom build and wait for Cloudron to catch up.
As for WordPress, there are several posts in the forum (e.g. https://forum.cloudron.io/topic/2531/complete-wordpress-migration-without-reinstalling-plugins or https://forum.cloudron.io/topic/1854/how-to-move-wordpress) and also a blogpost from Cloudron here.