-
Notifications
You must be signed in to change notification settings - Fork 11.2k
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1.52 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
app:
container_name: chatgpt-web
image: chenzhaoyu94/chatgpt-web # Always use latest, just pull the tag image again when updating
ports:
- 3002:3002
environment:
# pick one of two
OPENAI_API_KEY:
# pick one of two
OPENAI_ACCESS_TOKEN:
# API interface address, optional, available when OPENAI_API_KEY is set
OPENAI_API_BASE_URL:
# API model, optional, available when OPENAI_API_KEY is set
OPENAI_API_MODEL:
# reverse proxy, optional
API_REVERSE_PROXY:
# Access permission key, optional
AUTH_SECRET_KEY:
# The maximum number of requests per hour, optional, default unlimited
MAX_REQUEST_PER_HOUR: 0
# timeout in milliseconds, optional
TIMEOUT_MS: 60000
# Socks proxy, optional, works with SOCKS_PROXY_PORT
SOCKS_PROXY_HOST:
# Socks proxy port, optional, effective when combined with SOCKS_PROXY_HOST
SOCKS_PROXY_PORT:
# Socks proxy username, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
SOCKS_PROXY_USERNAME:
# Socks proxy password, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
SOCKS_PROXY_PASSWORD:
# HTTPS_PROXY proxy, optional
HTTPS_PROXY:
nginx:
container_name: 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