直接使用Docker Hub上下载的nginx镜像,但是自己的nginx的配置文件放在哪里呢?数据卷中吗?
如果是,那么要做什么设置吗,还是放在里面就不用管了,它会自动去读取?
phpcn_u15822017-04-24 16:02:14
I still prefer to put it on the host and use -v to mount it to the container
为情所困2017-04-24 16:02:14
If it is the testing stage, it is recommended to map the data volume, and when deploying the production environment, it is recommended to mirror it.
迷茫2017-04-24 16:02:14
Generally, you should mount the local configuration file, use -v to mount, the nginx image description page of Docker Hub has usage instructions: https://hub.docker.com/_/nginx/