docker - 无法更改 dockers build 中的默认 worldserver 端口
问题描述
我使用 Docker 在 Windows 10 Pro 上成功安装了 AzerothCore,它在本地运行良好。我试图公开服务器,以便朋友可以从互联网连接进行测试。
由于端口8085
forworldserver
无法在我的路由器上转发(可能是 ISP 或路由器固件保留它,其他端口就可以了),我尝试了一切以在 conf 文件中更改它,实际上在任何地方都对其进行了更改,并在 2 中添加了覆盖conf.dist
。也在数据库的领域列表字段中更改了它authserver
。重新编译所有内容:8085
无论如何它都会保留(我可以使用 netstats 看到它)。
更详细地说:我将端口更改为在同一目录8086
中\azerothcore-wotlk\docker\worldserver\etc\worldserver.conf.dist
添加了该行。甚至更改了主安装目录中的端口。还更改了数据库条目中的相对字段。"WorldServerPort = 8086"
worldserver.conf
worldserver.conf.dockerdist
.env.dist
realmlist
authserver
在配置修改后,我从头开始重建所有容器并重新组合它们:worldserver
端口保持8085
。
解决方案
I managed to solve the problem with the help of Francesco Borzi: turned out dockers containers have their own ports exposed so I needed to change those too accordingly.
I edited the docker-compose.yml
file in main directory, where ports for the world server container are listed, along with the usual editings of worldserver confs and authserver database entries as usual, and recomposed from scratch.
Thanks for help.
推荐阅读
- keras - 在 Keras 自定义层中乘以 3 个矩阵
- c# - 通过 UIElement.TranslatePoint 计算子元素中心偏离正确值
- python - python3在十六进制中的奇怪行为
- reactjs - 有一个带有路由和路由的反应应用程序在刷新时出错。可能是什么原因?
- php - 将 URL 向上重写一个文件夹
- c# - 如果存在于 DataGridView 单元格上
- django - Django:UpdateView 如何更改 ModelForm 中排除的字段的值?
- python - 为什么 Python Flask-User with MongoDB 会抛出与非 MongoDB 版本相关的错误?
- java - 从 JDBC 模板获取连接时出错
- android - 实施 'com.readystatesoftware.sqliteasset:sqliteassethelper:+' 不起作用