feat: 加入 letsencrypt 設定 #4
@@ -1,5 +1,5 @@
|
|||||||
services:
|
services:
|
||||||
# --- Proxmox VE 主要代理服務 ---
|
# --- DS116 主要代理服務 ---
|
||||||
ds116:
|
ds116:
|
||||||
# === 容器基本設定 ===
|
# === 容器基本設定 ===
|
||||||
image: alpine/socat:latest # Alpine Linux + socat 工具
|
image: alpine/socat:latest # Alpine Linux + socat 工具
|
||||||
@@ -12,7 +12,7 @@ services:
|
|||||||
|
|
||||||
# --- HTTP 服務配置 ---
|
# --- HTTP 服務配置 ---
|
||||||
- "traefik.http.services.ds116.loadbalancer.server.scheme=https" # 服務協議為 HTTPS
|
- "traefik.http.services.ds116.loadbalancer.server.scheme=https" # 服務協議為 HTTPS
|
||||||
- "traefik.http.services.ds116.loadbalancer.server.port=5001" # 後端服務連接埠 8006
|
- "traefik.http.services.ds116.loadbalancer.server.port=5001" # 後端服務連接埠 5001
|
||||||
|
|
||||||
# --- HTTP 路由 (轉導至 HTTPS) ---
|
# --- HTTP 路由 (轉導至 HTTPS) ---
|
||||||
- "traefik.http.routers.ds116.entrypoints=http" # HTTP 入口點
|
- "traefik.http.routers.ds116.entrypoints=http" # HTTP 入口點
|
||||||
@@ -43,7 +43,7 @@ services:
|
|||||||
- vlan # 使用 traefik_vlan 網路
|
- vlan # 使用 traefik_vlan 網路
|
||||||
|
|
||||||
# === Socat 代理指令 ===
|
# === Socat 代理指令 ===
|
||||||
command: "-d -d tcp-listen:5001,reuseaddr,fork tcp:192.168.1.101:5001" # TCP 代理至 Proxmox VE
|
command: "-d -d tcp-listen:5001,reuseaddr,fork tcp:192.168.1.101:5001" # TCP 代理至 DS116
|
||||||
|
|
||||||
# === 日誌管理 ===
|
# === 日誌管理 ===
|
||||||
logging:
|
logging:
|
||||||
@@ -54,7 +54,7 @@ services:
|
|||||||
# === 重新啟動策略 ===
|
# === 重新啟動策略 ===
|
||||||
restart: always # 容器異常退出時自動重啟
|
restart: always # 容器異常退出時自動重啟
|
||||||
|
|
||||||
# --- Proxmox VE 主要代理服務 ---
|
# --- DS718 主要代理服務 ---
|
||||||
ds718:
|
ds718:
|
||||||
# === 容器基本設定 ===
|
# === 容器基本設定 ===
|
||||||
image: alpine/socat:latest # Alpine Linux + socat 工具
|
image: alpine/socat:latest # Alpine Linux + socat 工具
|
||||||
@@ -67,7 +67,7 @@ services:
|
|||||||
|
|
||||||
# --- HTTP 服務配置 ---
|
# --- HTTP 服務配置 ---
|
||||||
- "traefik.http.services.ds718.loadbalancer.server.scheme=https" # 服務協議為 HTTPS
|
- "traefik.http.services.ds718.loadbalancer.server.scheme=https" # 服務協議為 HTTPS
|
||||||
- "traefik.http.services.ds718.loadbalancer.server.port=5001" # 後端服務連接埠 8006
|
- "traefik.http.services.ds718.loadbalancer.server.port=5001" # 後端服務連接埠 5001
|
||||||
|
|
||||||
# --- HTTP 路由 (轉導至 HTTPS) ---
|
# --- HTTP 路由 (轉導至 HTTPS) ---
|
||||||
- "traefik.http.routers.ds718.entrypoints=http" # HTTP 入口點
|
- "traefik.http.routers.ds718.entrypoints=http" # HTTP 入口點
|
||||||
@@ -98,7 +98,7 @@ services:
|
|||||||
- vlan # 使用 traefik_vlan 網路
|
- vlan # 使用 traefik_vlan 網路
|
||||||
|
|
||||||
# === Socat 代理指令 ===
|
# === Socat 代理指令 ===
|
||||||
command: "-d -d tcp-listen:5001,reuseaddr,fork tcp:192.168.1.102:5001" # TCP 代理至 Proxmox VE
|
command: "-d -d tcp-listen:5001,reuseaddr,fork tcp:192.168.1.102:5001" # TCP 代理至 DS718
|
||||||
|
|
||||||
# === 日誌管理 ===
|
# === 日誌管理 ===
|
||||||
logging:
|
logging:
|
||||||
|
|||||||
Reference in New Issue
Block a user