Files
common-server-public/nginx/docker-compose.yml
张威33321 fb87be680d 0908
2026-09-08 20:36:17 +08:00

29 lines
744 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
nginx:
image: nginx:09051708
container_name: nginx-proxy
ports:
- "8081:80"
- "8443:8443"
volumes:
# 证书(只读)
- certbot-certs:/etc/letsencrypt:ro
# ACME 验证目录只读certbot 写入挑战文件nginx 直接对外提供
- certbot-webroot:/var/www/certbot:ro
# HTTPS server 块:默认为空,证书就绪后由 enable-ssl.sh 写入
- ./ssl.d:/etc/nginx/ssl.d:ro
restart: unless-stopped
networks:
- trim-default
volumes:
# 与 certbot/docker-compose.yml 共用,物理卷名由 certbot 侧固定为同名
certbot-certs:
external: true
certbot-webroot:
external: true
networks:
trim-default:
external: true