Files
nagato-discord/proxy.yml
2026-06-11 15:48:12 +08:00

27 lines
927 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.
version: "3.8"
services:
# Nginx Proxy Manager: 用於替代 Caddy提供具備圖形化介面 (Web UI) 的反向代理與自動 SSL 憑證管理
npm:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
restart: unless-stopped
ports:
- "80:80" # HTTP 對外連線埠
- "443:443" # HTTPS 對外連線埠
- "81:81" # NPM 的網頁管理後台埠 (建議正式上線後可用防火牆鎖定,或不要對外部網路開放)
# environment:
# DB_SQLITE_FILE: "/data/database.sqlite" # 使用預設的 SQLite 資料庫(輕量化,適合單節點)
volumes:
- ./data/npm/data:/data # 儲存設定檔與資料庫
- ./data/npm/letsencrypt:/etc/letsencrypt # 儲存 Let's Encrypt 自動申請的 SSL 憑證
networks:
- npm_network
networks:
npm_network:
name: npm_network
driver: bridge