search

Home  >  Q&A  >  body text

How to hang external configuration files to nginx in docker?

The image is the latest version of nginx in the hub
How should it be configured in docker-compose?

PHP中文网PHP中文网2781 days ago652

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 13:19:21

    One way is to use

    docker-compose.yml

    Perform COPY instruction in Dockerfile

    Alternatively, write it directly in compose.yml

    reply
    0
  • Cancelreply