From fc596021b6cd9513f25e4db59b0bb287f1957261 Mon Sep 17 00:00:00 2001 From: ixxmu Date: Mon, 25 Mar 2024 10:20:26 +0800 Subject: [PATCH 1/3] Update README.md Add docker-compose config --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 6f54070..1f41442 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,28 @@ You have three options for Google Search: you can use the [SearchApi Google Sear ``` docker run -d --name search4all -e OPENAI_API_KEY=sk-XXX -e OPENAI_BASE_URL=https://api.openai.com/v1 -e LLM_MODEL=gpt-3.5-turbo-0125 -e RELATED_QUESTIONS=1 -e SEARCH1API_KEY=XXX -e BACKEND=SEARCH1API -p 8800:8800 docker.io/fatwang2/search4all ``` + +### Docker-Compose +[Hub address](https://hub.docker.com/r/fatwang2/search4all) +``` +version: '3.4' + +services: + search4all: + image: docker.io/fatwang2/search4all + restart: unless-stopped + ports: + - 8800:8800 + environment: + OPENAI_API_KEY: sk-xxx + OPENAI_BASE_URL: https://api.openai.com/v1 + LLM_MODEL: gpt-3.5-turbo-0125 + RELATED_QUESTIONS: 1 + NODE_ENV: production + SEARCH1API_KEY: xxxx + BACKEND: SEARCH1API +``` + ### Manual 1. install the requirements.txt ```shell From a9657463949cf6160adb6ac64686c758c2e966b0 Mon Sep 17 00:00:00 2001 From: ixxmu Date: Mon, 25 Mar 2024 10:26:42 +0800 Subject: [PATCH 2/3] Update README.md Label the provider name --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f41442..92e4251 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,10 @@ services: LLM_MODEL: gpt-3.5-turbo-0125 RELATED_QUESTIONS: 1 NODE_ENV: production - SEARCH1API_KEY: xxxx + # Change your search provider name here, if use another different provider BACKEND: SEARCH1API + # Set your search key from your provider here + SEARCH1API_KEY: xxxx ``` ### Manual From 2b53691acbe5b21dcb325600c63dee8c925f7f78 Mon Sep 17 00:00:00 2001 From: ixxmu Date: Mon, 25 Mar 2024 10:28:39 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92e4251..b0eb707 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ docker run -d --name search4all -e OPENAI_API_KEY=sk-XXX -e OPENAI_BASE_URL=http ### Docker-Compose [Hub address](https://hub.docker.com/r/fatwang2/search4all) -``` + +```yml version: '3.4' services: