2
This commit is contained in:
@@ -5,21 +5,20 @@ services:
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
# 主配置
|
||||
# Main config
|
||||
- ./conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro
|
||||
# HTTP 配置
|
||||
# HTTP virtual hosts
|
||||
- ./conf/conf.d:/usr/local/openresty/nginx/conf/conf.d:ro
|
||||
# Stream 配置
|
||||
# TCP/stream virtual hosts
|
||||
- ./conf/stream.d:/usr/local/openresty/nginx/conf/stream.d:ro
|
||||
# 静态网站 + acme challenge
|
||||
# Static sites and ACME HTTP-01 challenges
|
||||
- ./www:/var/www
|
||||
# SSL 证书
|
||||
# Let's Encrypt certificates
|
||||
- ./certs:/etc/letsencrypt
|
||||
# 日志
|
||||
# OpenResty logs
|
||||
- ./logs:/usr/local/openresty/nginx/logs
|
||||
|
||||
# Certbot 是给脚本或手动命令使用的工具容器,不是常驻服务。
|
||||
# ./www 用于 ACME HTTP-01 域名验证,./certs 用于持久化保存签发的证书。
|
||||
# Tool container used by scripts and manual certbot commands.
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
container_name: certbot
|
||||
|
||||
Reference in New Issue
Block a user