Giter Club home page Giter Club logo

docker-web-server's Introduction

docker-web-server

volumes:

  • ./nginx.conf:/etc/nginx/nginx.conf 这种方式是将宿主机上的一个具体文件(nginx.conf)直接挂载到容器中 Nginx 的主配置文件所在的位置。通常,Nginx 的主配置文件位于 /etc/nginx/nginx.conf。这意味着您可以直接编辑宿主机上的 nginx.conf 文件,并且容器中的 Nginx 服务将使用这个文件作为其主配置。

volumes:

  • ./nginx-conf:/etc/nginx/conf.d 这种方式是将宿主机上的一个目录(nginx-conf)挂载到容器中的 /etc/nginx/conf.d 目录。在 Nginx 配置中,/etc/nginx/conf.d 目录通常用于存放服务器的配置片段或单独的站点配置。Nginx 会自动包含这个目录下的所有 .conf 文件。如果您有多个站点配置或者想要组织您的配置文件,这种方式会更加有用。

docker-web-server's People

Contributors

jiajianrong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.