Nothing to do with Docker per se.
It’s all app permissions.
Crawlers can’t see private posts just as anon can’t.
Discord is essentially crawling your site and oops, can’t see your post to provide a preview.
You might be able to build a bot to do this but that’s Marketplace material.