|
1 | 1 | # ReactiveSearch API |
2 | 2 |
|
3 | | -[](https://github.com/appbaseio/reactivesearch-api/actions/workflows/tests.yml) [](https://github.com/appbaseio/reactivesearch-api/actions/workflows/docker-image.yml) |
| 3 | +[](https://github.com/appbaseio/reactivesearch-api/actions/workflows/tests.yml) [](https://github.com/appbaseio/reactivesearch-api/actions/workflows/docker-publish.yml) |
4 | 4 |
|
5 | 5 | ReactiveSearch API is a declarative, open-source API for querying Elasticsearch, OpenSearch, Solr, MongoDB Atlas Search and OpenAI. It also acts as a reverse proxy and API gateway for Elasticsearch and OpenSearch. ReactiveSearch API is best suited for site search, app search and e-commerce search use-cases. |
6 | 6 |
|
@@ -41,29 +41,20 @@ docker network create reactivesearch |
41 | 41 | 2. Start a single node Elasticsearch cluster locally |
42 | 42 |
|
43 | 43 | ```sh |
44 | | -docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 --net=reactivesearch -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.10.3 |
| 44 | +docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 --net=reactivesearch -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.17.0 |
45 | 45 | ``` |
46 | 46 |
|
47 | | -> NOTE: It is advised to use `-e "xpack.security.enabled=false"` for local runs of ElasticSearch since otherwise ES is not available on :9200. |
| 47 | +> NOTE: It is advised to use `-e "xpack.security.enabled=false"` for local runs of Elasticsearch since otherwise ES is not available on :9200. |
48 | 48 |
|
49 | 49 | OR |
50 | 50 |
|
51 | 51 | Alternative to using Elasticsearch, you can also start a single node OpenSearch cluster locally |
52 | 52 |
|
53 | 53 | ```sh |
54 | | -docker run --name opensearch --rm -d -p 9200:9200 -e http.port=9200 -e discovery.type=single-node -e http.max_content_length=10MB -e http.cors.enabled=true -e http.cors.allow-origin=\* -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true -e "plugins.security.disabled=true" --net=reactivesearch opensearchproject/opensearch:2.10.0 |
| 54 | +docker run --name opensearch --rm -d -p 9200:9200 -e http.port=9200 -e discovery.type=single-node -e http.max_content_length=10MB -e http.cors.enabled=true -e http.cors.allow-origin=\* -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true -e "plugins.security.disabled=true" --net=reactivesearch opensearchproject/opensearch:latest |
55 | 55 | ``` |
56 | 56 |
|
57 | | -3. Start Zinc locally |
58 | | - |
59 | | -```sh |
60 | | -mkdir data |
61 | | -docker run --rm -d -v data:/data -e ZINC_DATA_PATH="/data" -p 4080:4080 --net=reactivesearch \ |
62 | | - -e ZINC_FIRST_ADMIN_USER=appbase -e ZINC_FIRST_ADMIN_PASSWORD=zincf0rappbase \ |
63 | | - --name zinc public.ecr.aws/zinclabs/zinc:latest |
64 | | -``` |
65 | | - |
66 | | -4. Start ReactiveSearch locally |
| 57 | +3. Start ReactiveSearch locally |
67 | 58 |
|
68 | 59 | ```sh |
69 | 60 | docker build -t reactivesearch . && docker run --rm --name reactivesearch -p 8000:8000 --net=reactivesearch --env-file=config/docker.env reactivesearch --log=info --diff-logs=false --enable-telemetry=false --enable-logs=true --disable-health-check=true |
|
0 commit comments