Is it necessary to install nginx in front of docker?

If we choose plan 2, nginx on the host will allow you add other sites on the same host, but how to write conf.d/discourse.conf to reverse proxy discourse in the docker?

Should the conf.d/discourse.conf on the host be the same as conf.d/discourse.conf in the docker?

Any example?