From e49d7dce771fbd3d351e9737f1a8e7f82c77f222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Mon, 19 Jan 2026 12:00:02 +0800 Subject: [PATCH] Remove XIAOMUSIC_PUBLIC_PORT from Docker commands Removed the environment variable XIAOMUSIC_PUBLIC_PORT from Docker run commands and Docker Compose configurations. --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 89271d3..59b0c43 100644 --- a/README.md +++ b/README.md @@ -24,19 +24,19 @@ 已经支持在 web 页面配置其他参数,docker 启动命令如下: ```bash -docker run -p 58090:8090 -e XIAOMUSIC_PUBLIC_PORT=58090 -v /xiaomusic_music:/app/music -v /xiaomusic_conf:/app/conf hanxi/xiaomusic +docker run -p 58090:8090 -v /xiaomusic_music:/app/music -v /xiaomusic_conf:/app/conf hanxi/xiaomusic ``` 🔥 国内: ```bash -docker run -p 58090:8090 -e XIAOMUSIC_PUBLIC_PORT=58090 -v /xiaomusic_music:/app/music -v /xiaomusic_conf:/app/conf docker.hanxi.cc/hanxi/xiaomusic +docker run -p 58090:8090 -v /xiaomusic_music:/app/music -v /xiaomusic_conf:/app/conf docker.hanxi.cc/hanxi/xiaomusic ``` 测试版: ``` -docker run -p 58090:8090 -e XIAOMUSIC_PUBLIC_PORT=58090 -v /xiaomusic_music:/app/music -v /xiaomusic_conf:/app/conf hanxi/xiaomusic:main +docker run -p 58090:8090 -v /xiaomusic_music:/app/music -v /xiaomusic_conf:/app/conf hanxi/xiaomusic:main ``` 对应的 docker compose 配置如下: @@ -49,8 +49,6 @@ services: restart: unless-stopped ports: - 58090:8090 - environment: - XIAOMUSIC_PUBLIC_PORT: 58090 volumes: - /xiaomusic_music:/app/music - /xiaomusic_conf:/app/conf @@ -66,8 +64,6 @@ services: restart: unless-stopped ports: - 58090:8090 - environment: - XIAOMUSIC_PUBLIC_PORT: 58090 volumes: - /xiaomusic_music:/app/music - /xiaomusic_conf:/app/conf @@ -83,8 +79,6 @@ services: restart: unless-stopped ports: - 58090:8090 - environment: - XIAOMUSIC_PUBLIC_PORT: 58090 volumes: - /xiaomusic_music:/app/music - /xiaomusic_conf:/app/conf