From 949d95ca9e65bd80c8b4775e83a35d02f41f26a2 Mon Sep 17 00:00:00 2001 From: zhongkunming <73384930+zhongkunming@users.noreply.github.com> Date: Sat, 24 May 2025 20:35:39 +0800 Subject: [PATCH] =?UTF-8?q?network(xunlei):=20=E6=9B=B4=E6=96=B0=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E6=A8=A1=E5=BC=8F=E5=92=8C=E7=AB=AF=E5=8F=A3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 networks 部分 - 将 network_mode 设置为 host - 注释掉 ports 部分 --- xunlei/3.20.2/docker-compose.yml | 13 ++++--------- xunlei/latest/docker-compose.yml | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/xunlei/3.20.2/docker-compose.yml b/xunlei/3.20.2/docker-compose.yml index 52ad30da5..c60faebd4 100644 --- a/xunlei/3.20.2/docker-compose.yml +++ b/xunlei/3.20.2/docker-compose.yml @@ -1,7 +1,3 @@ -networks: - 1panel-network: - external: true - services: xunlei: container_name: ${CONTAINER_NAME} @@ -19,12 +15,11 @@ services: image: cnk3x/xunlei:v3.20.2 labels: createdBy: "Apps" - networks: - - 1panel-network - ports: - - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP} + network_mode: host + # ports: + # - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP} privileged: true restart: always volumes: - ./data/data:/xunlei/data - - ./data/downloads:/xunlei/downloads + - ./data/downloads:/xunlei/downloads \ No newline at end of file diff --git a/xunlei/latest/docker-compose.yml b/xunlei/latest/docker-compose.yml index 1d054bd4c..567fbf924 100644 --- a/xunlei/latest/docker-compose.yml +++ b/xunlei/latest/docker-compose.yml @@ -1,7 +1,3 @@ -networks: - 1panel-network: - external: true - services: xunlei: container_name: ${CONTAINER_NAME} @@ -19,12 +15,11 @@ services: image: cnk3x/xunlei:latest labels: createdBy: "Apps" - networks: - - 1panel-network - ports: - - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP} + network_mode: host + # ports: + # - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP} privileged: true restart: always volumes: - ./data/data:/xunlei/data - - ./data/downloads:/xunlei/downloads + - ./data/downloads:/xunlei/downloads \ No newline at end of file