Nginx configuration for discourse

No. (It’s not recommended. It would be possible, but not very easy or worthwhile.)

Yes, but if you don’t know that already, you might rather follow the link that @fefrei pointed to. If you put your app in a container, you would still need another Nginx (perhaps running in a Docker container) to reverse proxy to Discourse and your app.