File connector (#93)

* Initial backend changes for file connector

* Add another background job to clean up files

* UI + tweaks for backend
This commit is contained in:
Chris Weaver
2023-06-09 21:28:50 -07:00
committed by GitHub
parent f10ece4411
commit f20563c9bc
32 changed files with 774 additions and 38 deletions

View File

@@ -21,6 +21,7 @@ services:
- DISABLE_AUTH=True
volumes:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
background:
build:
context: ../backend
@@ -34,8 +35,11 @@ services:
environment:
- POSTGRES_HOST=relational_db
- QDRANT_HOST=vector_db
- TYPESENSE_HOST=search_engine
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-local_dev_typesense}
volumes:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
web_server:
build:
context: ../web
@@ -99,6 +103,7 @@ services:
&& while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\""
volumes:
local_dynamic_storage:
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
db_volume:
qdrant_volume:
typesense_volume:

View File

@@ -18,6 +18,7 @@ services:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-local_dev_typesense}
volumes:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
background:
build:
context: ../backend
@@ -33,6 +34,7 @@ services:
- QDRANT_HOST=vector_db
volumes:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
web_server:
build:
context: ../web
@@ -98,6 +100,7 @@ services:
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
local_dynamic_storage:
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
db_volume:
qdrant_volume:
typesense_volume: