nginx.yml

 

2023-10-14

Docker Compose 配置文件:

1
version: "3.7"
2
3
services:
4
nginx:
5
image: nginx:latest
6
container_name: nginx
7
restart: always
8
volumes:
9
- /data/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
10
- /data/nginx/html:/usr/share/nginx/html
11
- /data/nginx/logs:/var/log/nginx
12
- /data/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
13
- /data/nginx/cert:/etc/nginx/cert
14
ports:
15
- 80:80
16
- 443:443

查看 Nginx#SSL 配置。