From a117c4922881d6a75984158fad5f63f914c82b3e Mon Sep 17 00:00:00 2001 From: BrightChing Date: Thu, 25 Jul 2024 09:07:34 +0800 Subject: [PATCH] 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. --- apps/lobe-chat/1.6.11/data.yml | 27 ++++++++++++++++++++++++ apps/lobe-chat/1.6.11/docker-compose.yml | 14 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 apps/lobe-chat/1.6.11/data.yml create mode 100644 apps/lobe-chat/1.6.11/docker-compose.yml diff --git a/apps/lobe-chat/1.6.11/data.yml b/apps/lobe-chat/1.6.11/data.yml new file mode 100644 index 0000000..9366e47 --- /dev/null +++ b/apps/lobe-chat/1.6.11/data.yml @@ -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 + + + diff --git a/apps/lobe-chat/1.6.11/docker-compose.yml b/apps/lobe-chat/1.6.11/docker-compose.yml new file mode 100644 index 0000000..652e714 --- /dev/null +++ b/apps/lobe-chat/1.6.11/docker-compose.yml @@ -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