Initial file structure.

This commit is contained in:
unknown
2026-06-11 15:48:12 +08:00
parent 384a596e04
commit 97c70ca47a
11 changed files with 679 additions and 0 deletions

26
proxy.yml Normal file
View File

@@ -0,0 +1,26 @@
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