docker版nginx安装ssl证书的docker-compose.yml文件
version: '3.1'
services:
nginx:
restart: always
image: nginx
container_name: nginx
ports:
- 80:80
- 443:443
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./conf/cert/xxx.key:/etc/nginx/cert/xxx.key
- ./conf/cert/xxx.pem:/etc/nginx/cert/xxx.pem
- ./wwwroot:/usr/share/nginx/wwwroot