2020年5月24日 星期日

[Docker] docker compose nginx template


自己常使用的 nginx 建構方式的筆記



version: "3.5"
services:
  web:
    image: nginx
    volumes:
      - ./ca:/ca
      - ./default.conf:/etc/nginx/conf.d/default.conf
    ports:
      - "80:80"
      - "443:443"
    networks:
      - default
networks:
  default:
    name: custom





沒有留言:

張貼留言