码迷,mamicode.com
首页 > 其他好文 > 详细

docker-compose部署nginx

时间:2020-01-26 17:24:44      阅读:1289      评论:0      收藏:0      [点我收藏+]

标签:res   proxy   dock   ice   bridge   rest   col   docke   vol   

version: 3
services:
  nginx:
    container_name: nginx
    image: nginx
    restart: always
    ports:
      - 80:80
    privileged: true
    volumes:
      - ./conf/proxy.conf:/etc/nginx/proxy.conf
      - ./conf/nginx.conf:/etc/nginx/nginx.conf
      - ./conf/conf.d/:/etc/nginx/conf.d/
      - ./html/:/usr/share/nginx/html/
      - ./logs/:/var/log/nginx/
    networks:
      - myweb

networks:
  myweb:
    driver: bridge

 

docker-compose部署nginx

标签:res   proxy   dock   ice   bridge   rest   col   docke   vol   

原文地址:https://www.cnblogs.com/ray-mmss/p/12234304.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!