Docker nginx basic configuration problem

  docker, question

I have just learned Docker and am currently using it.
Docker run -d -p 80:80 nginx is used as a program that starts a Nginx and listens on port 80. When accessing the server ip, there is a default page for nginx.

How to configure a corresponding nginx.conf file to access the static files in the specified directory?

Attach the configuration directory and static file directory to the outside of the host system