Are you sure you on right forum? This is for forum app named Discourse, not a forum for Nginx.
But if your issue is setting up a virtual host for a forum, and using Nginx as a reverse proxy, you have to create your conf right. As changing what port a backend, here Discourse, is listening — it can’t be 80 because it is for Nginx. And then must all other needed things set up too, of course.
Or are you meaning Nginx inside Docker doesn’t work right when installing Nginx?
So, follow up depends what is your issue actually.