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部署解决Proxy问题 #137

Open
WeYouHe opened this issue Aug 29, 2024 · 0 comments
Open

国内Docker部署解决Proxy问题 #137

WeYouHe opened this issue Aug 29, 2024 · 0 comments

Comments

@WeYouHe
Copy link

WeYouHe commented Aug 29, 2024

很简单一个东西
docker run --network host -d
--name chat2api
-v /root/chatapi/data:/app/data
-e TZ=Asia/Shanghai
-e PROXY_URL=http://YouProxyUrl
lanqian528/chat2api:latest

使用host网络模式时候直接用主机的端口了,不需要设置端口
其他参数根据自己需求配置

docker和docker-compose一样

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

1 participant