mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-02-27 16:25:50 +00:00
* feat: 权限验证功能 * chore: v2.10.0 * feat: 500 服务异常页面 * feat: 只有结束才会滚动到底部 * chore: 修改 CHANGELOG * chore: 不存在时输出默认报错
36 lines
931 B
YAML
36 lines
931 B
YAML
version: '3'
|
||
|
||
services:
|
||
app:
|
||
image: chenzhaoyu94/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
|
||
ports:
|
||
- 3002:3002
|
||
environment:
|
||
# 二选一
|
||
OPENAI_API_KEY: xxxx
|
||
# 二选一
|
||
OPENAI_ACCESS_TOKEN: xxxxxx
|
||
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
|
||
OPENAI_API_BASE_URL: xxxx
|
||
# 反向代理,可选
|
||
API_REVERSE_PROXY: xxx
|
||
# 访问权限密钥,可选
|
||
AUTH_SECRET_KEY: xxx
|
||
# 超时,单位毫秒,可选
|
||
TIMEOUT_MS: 60000
|
||
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
|
||
SOCKS_PROXY_HOST: xxxx
|
||
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
|
||
SOCKS_PROXY_PORT: xxxx
|
||
nginx:
|
||
build: nginx
|
||
image: chatgpt/nginx
|
||
ports:
|
||
- '80:80'
|
||
expose:
|
||
- '80'
|
||
volumes:
|
||
- ./nginx/html/:/etc/nginx/html/
|
||
links:
|
||
- app
|