docker-compose 部署nginx配置ssl_docker compose nginx ssl-CSDN博客
version: "3"
services:
nginx:
image: nginx:1.25.0
restart: always
container_name: nginx
environment:
- TZ=Asia/Shanghai
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/logs:/var/log/nginx
- ./site:/usr/share/nginx/html
- ./nginx/letsencrypt:/etc/letsencrypt