Docker Compose 配置文件:
version: "3.7"
services:
nginx:
image: nginx:latest
container_name: nginx
restart: always
volumes:
- /data/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- /data/nginx/html:/usr/share/nginx/html
- /data/nginx/logs:/var/log/nginx
- /data/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- /data/nginx/cert:/etc/nginx/cert
ports:
- 80:80
- 443:443
查看 SSL 配置。