docker-compose 创建 nginx.yml

vim docker-compose.yml

version: '3.1'

services:

  nginx:

    restart: always

    image: nginx

    container_name: nginx

    ports:

      - 80:80

    volumes:

      - ./conf/nginx.conf:/etc/nginx/nginx.conf

      - ./html:/usr/share/nginx/html

你可能感兴趣的:(docker-compose 创建 nginx.yml)