步骤一:选择目录,在目录下创建docker-compose.yaml ,输入内容如下:
version: '2.3'
services:
nginx:
container_name: nginx
restart: always
image: 仓库地址/nginx镜像
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
-
步骤一:选择目录,在目录下创建docker-compose.yaml ,输入内容如下:
version: '2.3'
services:
nginx:
container_name: nginx
restart: always
image: 仓库地址/nginx镜像
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
-