mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-28 05:43:33 +02:00
Add QDrant to onebox setup
This commit is contained in:
@@ -7,6 +7,7 @@ RUN apt-get update \
|
|||||||
COPY ./requirements/default.txt /tmp/requirements.txt
|
COPY ./requirements/default.txt /tmp/requirements.txt
|
||||||
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
||||||
RUN playwright install
|
RUN playwright install
|
||||||
|
RUN playwright install-deps
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./danswer /app/danswer
|
COPY ./danswer /app/danswer
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
# follows https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
|
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
@@ -7,6 +6,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
- qdrant
|
||||||
# uncomment for local testing
|
# uncomment for local testing
|
||||||
# ports:
|
# ports:
|
||||||
# - "8080:8080"
|
# - "8080:8080"
|
||||||
@@ -14,6 +14,7 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST=db
|
- POSTGRES_HOST=db
|
||||||
|
- QDRANT_HOST=qdrant
|
||||||
volumes:
|
volumes:
|
||||||
- local_dynamic_storage:/home/storage
|
- local_dynamic_storage:/home/storage
|
||||||
background:
|
background:
|
||||||
@@ -22,20 +23,18 @@ services:
|
|||||||
dockerfile: Dockerfile.background
|
dockerfile: Dockerfile.background
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
- qdrant
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST=db
|
- POSTGRES_HOST=db
|
||||||
|
- QDRANT_HOST=qdrant
|
||||||
volumes:
|
volumes:
|
||||||
- local_dynamic_storage:/home/storage
|
- local_dynamic_storage:/home/storage
|
||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
context: ../web
|
context: ../web
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
|
||||||
NEXT_PUBLIC_API_URL: /api
|
|
||||||
depends_on:
|
|
||||||
- api
|
|
||||||
db:
|
db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -45,7 +44,11 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db_volume:/var/lib/postgresql/data
|
||||||
|
qdrant:
|
||||||
|
image: qdrant/qdrant:v1.1.3
|
||||||
|
volumes:
|
||||||
|
- qdrant_volume:/qdrant/storage
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.23.4-alpine
|
image: nginx:1.23.4-alpine
|
||||||
ports:
|
ports:
|
||||||
@@ -60,8 +63,7 @@ services:
|
|||||||
&& while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\""
|
&& while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\""
|
||||||
env_file:
|
env_file:
|
||||||
- .env.nginx
|
- .env.nginx
|
||||||
depends_on:
|
# follows https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
|
||||||
- api
|
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
volumes:
|
volumes:
|
||||||
@@ -70,4 +72,5 @@ services:
|
|||||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||||
volumes:
|
volumes:
|
||||||
local_dynamic_storage:
|
local_dynamic_storage:
|
||||||
db:
|
db_volume:
|
||||||
|
qdrant_volume:
|
||||||
|
Reference in New Issue
Block a user