“Nginx Dockerfile” Kode Jawaban

Nginx Dockerfile

FROM nginx
COPY static-html-directory /usr/share/nginx/html
Itchy Ibis

Contoh DockerFile Nginx

$ docker run --name mynginx2 --mount type=bind,source=/var/www,target=/usr/share/nginx/html,readonly --mount source=/var/nginx/conf,target=/etc/nginx/conf,readonly -p 80:80 -d nginx
Difficult Duck

Docker nginx

web:
  image: nginx
  volumes:
   - ./templates:/etc/nginx/templates
  ports:
   - "8080:80"
  environment:
   - NGINX_HOST=foobar.com
   - NGINX_PORT=80
Important Ibis

Jawaban yang mirip dengan “Nginx Dockerfile”

Pertanyaan yang mirip dengan “Nginx Dockerfile”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya