You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Elasticsearch, Opensearch and Mongo backends for the stac-fastapi project
3
+
## Mongo backend for the stac-fastapi project built on top of the [sfeos](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch) core api library.
4
+
5
+
### Note: This is presently in development and for now is mostly a proof of concept showing that other databases can be plugged into the [sfeos](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch) core api library, besides for elasticsearch and opensearch.
To install the classes in your local Python env, run:
23
20
24
21
```shell
25
-
pip install -e 'stac_fastapi/elasticsearch[dev]'
26
-
```
27
-
28
-
or
29
-
30
-
```shell
31
-
pip install -e 'stac_fastapi/opensearch[dev]'
22
+
pip install -e 'stac_fastapi/mongo[dev]'
32
23
```
33
24
34
25
@@ -45,30 +36,20 @@ pre-commit run --all-files
45
36
## Build Elasticsearh API backend
46
37
47
38
```shell
48
-
docker-compose up elasticsearch
49
-
docker-compose build app-elasticsearch
39
+
docker-compose up mongo
40
+
docker-compose build app-mongo
50
41
```
51
42
52
-
## Running Elasticsearh API on localhost:8080
53
-
54
-
```shell
55
-
docker-compose up app-elasticsearch
56
-
```
57
-
58
-
By default, docker-compose uses Elasticsearch 8.x and OpenSearch 2.11.1.
59
-
If you wish to use a different version, put the following in a
60
-
file named `.env` in the same directory you run docker-compose from:
43
+
## Running Mongo API on localhost:8084
61
44
62
45
```shell
63
-
ELASTICSEARCH_VERSION=7.17.1
64
-
OPENSEARCH_VERSION=2.11.0
46
+
docker-compose up app-mongo
65
47
```
66
-
The most recent Elasticsearch 7.x versions should also work. See the [opensearch-py docs](https://github.com/opensearch-project/opensearch-py/blob/main/COMPATIBILITY.md) for compatibility information.
0 commit comments