Skip to content

Commit

Permalink
chore: update docker compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed May 14, 2023
1 parent d0f08fe commit d405f5d
Showing 1 changed file with 59 additions and 29 deletions.
88 changes: 59 additions & 29 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,67 @@ services:
image: soulteary/sparrow
container_name: sparrow
restart: always
expose:
- 8091
environment:
# service port
APP_PORT: 8091
# the ChatGPT client domain
# [Basic Settings]
# => The ChatGPT Web Client Domain
WEB_CLIENT_HOSTNAME: "https://your-domian"
# response generate speed, 1x ~ 99x
RESPONSE_SPEED: 1
# Enable history list
ENABLE_HISTORY_LIST: true
# Enable i18n
ENABLE_I18N: true
# Enable the data control
ENABLE_DATA_CONTROL: true
# Enable the model switch
ENABLE_MODEL_SWITCH: true
# Enable the plugin
ENABLE_PLUGIN: true
# Enable the official model
ENABLE_OPENAI_OFFICIAL_MODEL: true
# Only Enable the 3.5 model
ENABLE_OPENAI_ONLY_3_5: false
# Enable OpenAI 3.5 API
ENABLE_OPENAI_API: true
# OpenAI API Key
OPENAI_API_KEY: "sk-abcdefg"
# Enable OpenAI API Proxy
OPENAI_API_PROXY_ENABLE: false
# OpenAI API Proxy Address, eg: `"http://127.0.0.1:1234"` or ""
OPENAI_API_PROXY_ADDR: ""
# => Service port, default: 8091
# APP_PORT: 8091
# => response generate speed: 1x ~ 99x
# RESPONSE_SPEED: 1

# [Advanced Settings] *optional
# => Enable the new UI
# FEATURE_NEW_UI: true
# => Enable history list
# ENABLE_HISTORY_LIST: true
# => Enable i18n
# ENABLE_I18N: true
# => Enable the data control
# ENABLE_DATA_CONTROL: true
# => Enable the model switch
# ENABLE_MODEL_SWITCH: true

# [Plugin Settings] *optional
# => Enable the plugin
# ENABLE_PLUGIN: true
# => Enable the plugin browsing
# ENABLE_PLUGIN_BROWSING: true
# => Enable the plugin code interpreter
# ENABLE_PLUGIN_CODE_INTERPRETER: true

# [Misc Settings] *optional
# => Enable the official model
# ENABLE_OPENAI_OFFICIAL_MODEL: true
# => Only Enable the 3.5 model
# ENABLE_OPENAI_ONLY_3_5: false

# [Private OpenAI API Server Settings] *optional
# => Enable OpenAI 3.5 API
# ENABLE_OPENAI_API: true
# => OpenAI API Key
# OPENAI_API_KEY: "sk-abcdefg"
# => Enable OpenAI API Proxy
# OPENAI_API_PROXY_ENABLE: false
# => OpenAI API Proxy Address, eg: `"http://127.0.0.1:1234"` or ""
# OPENAI_API_PROXY_ADDR: ""

# [Private Midjourney Server Settings] *optional
# => Enable Midjourney
# ENABLE_MIDJOURNEY: true
# => Enable Midjourney Only
# ENABLE_MIDJOURNEY_ONLY: false
# => Midjourney API Key
# MIDJOURNEY_API_SECRET: "your-secret"
# => Midjourney API Address, eg: `"ws://...."`
# MIDJOURNEY_API_ADDR: "ws://localhost:8092/ws"

# [Private Midjourney Server Settings] *optional
# => Enable FlagStudio
# ENABLE_FLAGSTUDIO: true
# => FlagStudio API Key
# FLAGSTUDIO_API_KEY: "your-flagstudio-api-key"

logging:
driver: "json-file"
options:
Expand Down

0 comments on commit d405f5d

Please sign in to comment.