2023-03-02 05:07:54 -05:00
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
app:
|
|
|
|
|
image: chenzhaoyu94/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
|
|
|
|
|
ports:
|
|
|
|
|
- 3002:3002
|
|
|
|
|
environment:
|
|
|
|
|
# 二选一
|
2023-03-16 20:59:49 -04:00
|
|
|
|
OPENAI_API_KEY:
|
2023-03-02 05:07:54 -05:00
|
|
|
|
# 二选一
|
2023-03-16 20:59:49 -04:00
|
|
|
|
OPENAI_ACCESS_TOKEN:
|
2023-03-03 20:34:28 -05:00
|
|
|
|
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
|
2023-03-16 20:59:49 -04:00
|
|
|
|
OPENAI_API_BASE_URL:
|
2023-03-09 05:38:30 -05:00
|
|
|
|
# API模型,可选,设置 OPENAI_API_KEY 时可用
|
2023-03-16 20:59:49 -04:00
|
|
|
|
OPENAI_API_MODEL:
|
2023-03-02 05:07:54 -05:00
|
|
|
|
# 反向代理,可选
|
2023-03-16 20:59:49 -04:00
|
|
|
|
API_REVERSE_PROXY:
|
2023-03-07 09:12:15 -05:00
|
|
|
|
# 访问权限密钥,可选
|
2023-03-16 20:59:49 -04:00
|
|
|
|
AUTH_SECRET_KEY:
|
2023-03-02 05:07:54 -05:00
|
|
|
|
# 超时,单位毫秒,可选
|
|
|
|
|
TIMEOUT_MS: 60000
|
2023-03-02 22:59:16 -05:00
|
|
|
|
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
|
2023-03-16 20:59:49 -04:00
|
|
|
|
SOCKS_PROXY_HOST:
|
2023-03-02 22:59:16 -05:00
|
|
|
|
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
|
2023-03-16 20:59:49 -04:00
|
|
|
|
SOCKS_PROXY_PORT:
|
2023-03-12 07:38:59 -04:00
|
|
|
|
# HTTPS_PROXY 代理,可选
|
2023-03-16 20:59:49 -04:00
|
|
|
|
HTTPS_PROXY:
|
2023-03-02 05:07:54 -05:00
|
|
|
|
nginx:
|
2023-03-10 01:33:36 -05:00
|
|
|
|
image: nginx:alpine
|
2023-03-02 05:07:54 -05:00
|
|
|
|
ports:
|
2023-03-02 08:27:20 -05:00
|
|
|
|
- '80:80'
|
2023-03-02 05:07:54 -05:00
|
|
|
|
expose:
|
2023-03-02 08:27:20 -05:00
|
|
|
|
- '80'
|
2023-03-02 05:07:54 -05:00
|
|
|
|
volumes:
|
2023-03-10 01:33:36 -05:00
|
|
|
|
- ./nginx/html:/usr/share/nginx/html
|
|
|
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
2023-03-02 05:07:54 -05:00
|
|
|
|
links:
|
|
|
|
|
- app
|