docker run --name chatgpt-web -d -p 127.0.0.1:3888:3002 --env OPENAI_ACCESS_TOKEN=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 --env AUTH_SECRET_KEY=every dlsyaim/chatgpt-web
docker run --name chatgpt-web -d -p 127.0.0.1:3888:3002 --env OPENAI_ACCESS_TOKEN=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 --env AUTH_SECRET_KEY=every chenzhaoyu94/chatgpt-web
停止所有容器运行:docker stop $(docker ps -a -q)
删除所有停止运行的容器:docker rm $(docker ps -a -q)
https://blog.csdn.net/wd520521/article/details/129798861
https://blog.csdn.net/wd520521/article/details/112609796
gagale123.xyz
location / {
proxy_pass http://127.0.0.1:3002/; # 注意端口号
}
docker run --name chatgpt-web3 -d -p 127.0.0.1:2023:2023 --env OPENAI_ACCESS_TOKEN=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 --env AUTH_SECRET_KEY=every chenzhaoyu94/chatgpt-web
docker cp /usr/openai_bak/index-d3df6bcd.js 577e3a870aff:/app/public/assets
version: '3'
services:
app:
image: chenzhaoyu94/chatgpt-web:latest
ports:
- 3002:3002
environment:
# api秘钥
OPENAI_API_KEY: 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
# 超时,单位毫秒,可选
TIMEOUT_MS: 60000