-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何修改默认的8090端口 #19
Comments
需要添加环境变量
|
自己走了点弯路,半天才搞明白。补充说明:
|
如果换端口,需要3个数字一致,比如
|
hanxi
added
文档
帮助文档
求助
Extra attention is needed
问题
Further information is requested
labels
Jun 28, 2024
文档类型的我都打开下,方便其他人看到。 |
Open
docker-compose 中对应关系应该是 ports:
- aaaa:bbbb
environment:
XIAOMUSIC_PORT: bbbb # 配置文件中的 port,后台:监听端口(修改后需要重启)
XIAOMUSIC_PUBLIC_PORT: aaaa # 配置文件中的 public_port,后台:外网访问端口(0表示跟监听端口一致) 以上,docker 环境中基本不存在需要修改 bbbb 的情况,也就是不用设置 XIAOMUSIC_PORT。如果需要修改端口,只需要修改两处 aaaa 另外,setting 文件存在会覆盖环境变量。启动过之后需要直接修改 settings.json 或者在后台修改 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose 修改映射端口会播放失败
从日志看继续调用了 http://10.0.0.4:8090 而不是修改映射的80,还原成
则一切正常
The text was updated successfully, but these errors were encountered: