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: