feat: 添加 Let's Encrypt SSL 证书管理
- 新增独立 certbot 服务项目 - nginx 配置添加 HTTPS 8443 端口监听 - frpc.toml HTTPS 代理指向 nginx:8443 - 支持自动续签并重载 nginx - 共享 Docker volume 传递证书
This commit is contained in:
24
certbot/docker-compose.yml
Normal file
24
certbot/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
certbot:
|
||||
build: .
|
||||
container_name: certbot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- certbot-webroot:/var/www/certbot
|
||||
- certbot-certs:/etc/letsencrypt
|
||||
- certbot-logs:/var/log/letsencrypt
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
networks:
|
||||
- trim-default
|
||||
|
||||
volumes:
|
||||
certbot-webroot:
|
||||
driver: local
|
||||
certbot-certs:
|
||||
driver: local
|
||||
certbot-logs:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
trim-default:
|
||||
external: true
|
||||
Reference in New Issue
Block a user