diff --git a/lobe-chat/pglite/.env.sample b/lobe-chat/pglite/.env.sample new file mode 100644 index 000000000..f31c58e39 --- /dev/null +++ b/lobe-chat/pglite/.env.sample @@ -0,0 +1,7 @@ +ACCESS_CODE="access_password" +CONTAINER_NAME="lobe-chat" +OPENAI_API_KEY="sk-xxx" +OPENAI_MODEL_LIST="" +OPENAI_PROXY_URL="https://api.openai.com/v1" +PANEL_APP_PORT_HTTP="40247" +SEARXNG_URL="https://searxng-instance.com" \ No newline at end of file diff --git a/lobe-chat/pglite/data.yml b/lobe-chat/pglite/data.yml new file mode 100644 index 000000000..7aa3f8b2a --- /dev/null +++ b/lobe-chat/pglite/data.yml @@ -0,0 +1,47 @@ +additionalProperties: + formFields: + - default: 40247 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "password" + edit: true + envKey: OPENAI_API_KEY + labelEn: OpenAI API Key + labelZh: OpenAI API 密钥 + required: false + type: password + - default: "https://api.openai.com/v1" + edit: true + envKey: OPENAI_PROXY_URL + labelEn: OpenAI Proxy URL + labelZh: OpenAI 代理 URL + required: false + type: text + - default: "" + edit: true + envKey: ACCESS_CODE + labelEn: Access Code + labelZh: 访问密码 + random: true + required: false + rule: paramComplexity + type: password + - default: "" + edit: true + envKey: OPENAI_MODEL_LIST + labelEn: OpenAI Model List + labelZh: OpenAI 模型列表 + required: false + type: text + - default: "" + edit: true + envKey: SEARXNG_URL + labelEn: SEARXNG_URL + labelZh: searxng地址 + required: false + type: text diff --git a/lobe-chat/pglite/docker-compose.yml b/lobe-chat/pglite/docker-compose.yml new file mode 100644 index 000000000..5d5ab25a8 --- /dev/null +++ b/lobe-chat/pglite/docker-compose.yml @@ -0,0 +1,21 @@ +services: + lobe-chat: + image: lobehub/lobe-chat-pglite:latest + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:3210" + environment: + - OPENAI_API_KEY=${OPENAI_API_KEY} + - OPENAI_PROXY_URL=${OPENAI_PROXY_URL} + - ACCESS_CODE=${ACCESS_CODE} + - OPENAI_MODEL_LIST=${OPENAI_MODEL_LIST} + - SEARXNG_URL=${SEARXNG_URL} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true