feat(lobe-chat): configure LobeChat app with environment variables
Update data.yml and docker-compose.yml for the LobeChat app to support configuration through environment variables. This includes setting the app's run port, OPENAI API KEY, and OpenAI proxy URL. The update aims to make the app's setup more flexible and easier to manage.
This commit is contained in:
parent
543414ec11
commit
a117c49228
|
@ -0,0 +1,27 @@
|
||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: 3210
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: LobeChat run port
|
||||||
|
labelZh: LobeChat 运行端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: sk-xxxx
|
||||||
|
edit: true
|
||||||
|
envKey: OPENAI_API_KEY
|
||||||
|
labelEn: OPENAI API KEY
|
||||||
|
labelZh: LobeChat身份验证令牌
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: http://10.2.2.2:11434/v1
|
||||||
|
edit: true
|
||||||
|
envKey: OPENAI_PROXY_URL
|
||||||
|
labelEn: OpenAI proxy url
|
||||||
|
labelZh: OpenAI代理URL
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
services:
|
||||||
|
lobe-chat:
|
||||||
|
image: lobehub/lobe-chat
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTP}:3210"
|
||||||
|
environment:
|
||||||
|
OPENAI_API_KEY: sk-xxxx
|
||||||
|
OPENAI_PROXY_URL: https://api-proxy.com/v1
|
||||||
|
ACCESS_CODE: angel.
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
Loading…
Reference in New Issue