chatgpt-web/docker-compose/docker-compose.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

version: '3'
services:
app:
image: chenzhaoyu94/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
ports:
- 3002:3002
environment:
# 二选一
2023-03-16 21:25:16 -04:00
OPENAI_API_KEY: sk-xxx
# 二选一
2023-03-16 21:25:16 -04:00
OPENAI_ACCESS_TOKEN: xxx
# API接口地址可选设置 OPENAI_API_KEY 时可用
2023-03-16 21:25:16 -04:00
OPENAI_API_BASE_URL: xxx
# API模型可选设置 OPENAI_API_KEY 时可用
2023-03-16 21:25:16 -04:00
OPENAI_API_MODEL: xxx
# 反向代理,可选
2023-03-16 21:25:16 -04:00
API_REVERSE_PROXY: xxx
# 访问权限密钥,可选
2023-03-16 21:25:16 -04:00
AUTH_SECRET_KEY: xxx
# 每小时最大请求次数,可选,默认无限
MAX_REQUEST_PER_HOUR: 0
# 超时,单位毫秒,可选
TIMEOUT_MS: 60000
2023-03-02 22:59:16 -05:00
# Socks代理可选和 SOCKS_PROXY_PORT 一起时生效
2023-03-16 21:25:16 -04:00
SOCKS_PROXY_HOST: xxx
2023-03-02 22:59:16 -05:00
# Socks代理端口可选和 SOCKS_PROXY_HOST 一起时生效
2023-03-16 21:25:16 -04:00
SOCKS_PROXY_PORT: xxx
# HTTPS_PROXY 代理,可选
2023-03-16 21:25:16 -04:00
HTTPS_PROXY: http://xxx:7890
nginx:
image: nginx:alpine
ports:
- '80:80'
expose:
- '80'
volumes:
- ./nginx/html:/usr/share/nginx/html
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
links:
- app