This commit is contained in:
ChenKaiLiuG
2025-12-20 23:25:42 +08:00
parent 263de7f16a
commit 76a15ecabb
11 changed files with 620 additions and 744 deletions

44
proxy-docker-compose.yml Normal file
View File

@@ -0,0 +1,44 @@
version: '3.8'
services:
# Nginx Proxy Manager
npm:
image: jc21/nginx-proxy-manager:latest
container_name: tobiichiGPT-npm
restart: unless-stopped
ports:
- "10080:80" # HTTP
- "10443:443" # HTTPS
- "10081:81" # 管理介面
volumes:
- npm-data:/data
- npm-letsencrypt:/etc/letsencrypt
environment:
- TZ=Asia/Taipei
networks:
- proxy-network
- tobiichiGPT-network
# Cloudflare Tunnel
cloudflared:
image: cloudflare/cloudflared:latest
container_name: tobiichiGPT-cloudflared
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
networks:
- proxy-network
- tobiichiGPT-network
depends_on:
- npm
networks:
proxy-network:
driver: bridge
tobiichiGPT-network:
external: true # 連接到主 stack 的網路
volumes:
npm-data:
npm-letsencrypt: