diff --git a/README.md b/README.md index e4531e7..b045188 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ services: image: wongsaang/chatgpt-ui-wsgi-server:latest environment: - APP_DOMAIN=${APP_DOMAIN:-localhost:9000} # CSRF whitelist,Add the address of your chatgpt-ui-web-server here, default is localhost:9000 + - SERVER_WORKERS=3 # Number of gunicorn workers, default is 3 #- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed. #- OPENAI_API_PROXY=https://openai.proxy.com/v1 # Proxy for https://api.openai.com/v1 - DJANGO_SUPERUSER_USERNAME=admin # default superuser name diff --git a/docker-compose.yml b/docker-compose.yml index 5c569ec..f6c893e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: image: wongsaang/chatgpt-ui-wsgi-server:latest environment: - APP_DOMAIN=${APP_DOMAIN:-localhost:9000} + - SERVER_WORKERS=3 # The number of worker processes for handling requests. # - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed. - DJANGO_SUPERUSER_USERNAME=admin # default superuser name - DJANGO_SUPERUSER_PASSWORD=password # default superuser password diff --git a/docs/zh/README.md b/docs/zh/README.md index 36b76d4..bff8a40 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -101,6 +101,7 @@ services: image: wongsaang/chatgpt-ui-wsgi-server:latest environment: - APP_DOMAIN=${APP_DOMAIN:-localhost:9000} # CSRF 白名单,在这里设置为 chatgpt-ui-web-server 的地址+端口, 默认: localhost:9000 + - SERVER_WORKERS=3 # gunicorn 的工作进程数,默认为 3 #- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # 连接外部数据库,如果不设置这个参数,则默认使用内置的 Sqlite。需要注意的是,如果不连接外部数据库,数据将在容器销毁后丢失。链接格式请看下面的 DB_URL 格式对照表 #- OPENAI_API_PROXY=https://openai.proxy.com/v1 # https://api.openai.com/v1 的代理地址 - DJANGO_SUPERUSER_USERNAME=admin # 默认超级用户