请教一下通过 docker-compose up -d 启动后,如何通过IP:PORT管理?
shangdev opened this issue · 7 comments
shangdev commented
docker-compose.yml
version: "3.9"
services:
xui:
image: enwaiax/x-ui:alpha-zh
container_name: xui
volumes:
- $PWD/db/:/etc/x-ui/
- $PWD/cert/:/root/cert/
ports:
- "0.0.0.0:222:222"
restart: unless-stopped
network_mode: host
指定了端口为222,但是通过IP:222无法访问面板呢?
还是需要进入到容器内通过 x-ui 设置?
enwaiax commented
network_mode: host 的情况下无需设置port
shangdev commented
@chasing66 请教下在network_mode: host 的情况下,怎么访问x-ui面板?
enwaiax commented
@chasing66 请教下在network_mode: host 的情况下,怎么访问x-ui面板?
IP地址:54321
shangdev commented
shangdev commented
enwaiax commented
:: 相当于本地回环地址localhost,检查一下你的hosts 配置吧
enwaiax commented
如果还不行你就用nginx反向代理一下吧,反正你还得配置ssl, websocket什么的