Skip to content
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

Docker Compose 部署需手动添加端口映射 #1

Open
kul4ox opened this issue Feb 23, 2025 · 1 comment
Open

Docker Compose 部署需手动添加端口映射 #1

kul4ox opened this issue Feb 23, 2025 · 1 comment

Comments

@kul4ox
Copy link

kul4ox commented Feb 23, 2025

问题描述:

在使用 Docker Compose 部署 AstrBot 时,发现 “compose.yml” 文件中可能缺少 meme_manager 插件的端口映射配置。这导致用户需要手动修改 ”compose.yml“ 文件或在启动命令中添加 -p 5000:5000 参数才能访问 WebUI。

建议:

在 README 中说明端口映射的配置方法,提醒用户如果需要修改端口,可以在 “compose.yml” 文件中进行修改。

例如:

services:
astrbot:
image: soulter/astrbot:latest
container_name: astrbot
ports:
- "6180-6200:6180-6200"
- "11451:11451"
- "5000:5000" #加入端口映射
volumes:
- ./data:/AstrBot/data

@Geopanret
Copy link

Geopanret commented Feb 24, 2025

补充,已部署的astrbot可以参考这篇文章来手动添加5000端口,亲测有效。
(astrbot自带监听6180/6200端口,起初尝试修改webui端口为6190,但无法使用)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants