1
0
Fork 0

network(xunlei): 更新网络模式和端口配置

- 移除 networks 部分
- 将 network_mode 设置为 host
- 注释掉 ports 部分
This commit is contained in:
zhongkunming 2025-05-24 20:35:39 +08:00
parent 55e792d4e3
commit 949d95ca9e
2 changed files with 8 additions and 18 deletions

View File

@ -1,7 +1,3 @@
networks:
1panel-network:
external: true
services: services:
xunlei: xunlei:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -19,12 +15,11 @@ services:
image: cnk3x/xunlei:v3.20.2 image: cnk3x/xunlei:v3.20.2
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: network_mode: host
- 1panel-network # ports:
ports: # - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
privileged: true privileged: true
restart: always restart: always
volumes: volumes:
- ./data/data:/xunlei/data - ./data/data:/xunlei/data
- ./data/downloads:/xunlei/downloads - ./data/downloads:/xunlei/downloads

View File

@ -1,7 +1,3 @@
networks:
1panel-network:
external: true
services: services:
xunlei: xunlei:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -19,12 +15,11 @@ services:
image: cnk3x/xunlei:latest image: cnk3x/xunlei:latest
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: network_mode: host
- 1panel-network # ports:
ports: # - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
privileged: true privileged: true
restart: always restart: always
volumes: volumes:
- ./data/data:/xunlei/data - ./data/data:/xunlei/data
- ./data/downloads:/xunlei/downloads - ./data/downloads:/xunlei/downloads