network(xunlei): 更新网络模式和端口配置
- 移除 networks 部分 - 将 network_mode 设置为 host - 注释掉 ports 部分
This commit is contained in:
parent
55e792d4e3
commit
949d95ca9e
|
|
@ -1,7 +1,3 @@
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
xunlei:
|
xunlei:
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
|
|
@ -19,10 +15,9 @@ 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:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
xunlei:
|
xunlei:
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
|
|
@ -19,10 +15,9 @@ 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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue