DAN-165 Option to pull image from hub (#149)

This commit is contained in:
Yuhong Sun 2023-07-08 15:53:21 -07:00 committed by GitHub
parent 3b64d62896
commit 367330d27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 6 deletions

View File

@ -14,4 +14,4 @@ COPY ./alembic /app/alembic
COPY ./alembic.ini /app/alembic.ini
ENV PYTHONPATH /app
CMD ["/bin/sh", "-c", "alembic upgrade head && uvicorn danswer.main:app --host 0.0.0.0 --port 8080"]
CMD ["/bin/sh", "-c", "alembic upgrade head && echo \"Starting Danswer Api Server\" && uvicorn danswer.main:app --host 0.0.0.0 --port 8080"]

View File

@ -24,12 +24,11 @@ Docker Compose provides the easiest way to get Danswer up and running.
Requirements: Docker and docker compose
1. To run Danswer, navigate to `docker_compose` directory and run the following:
- `docker compose -f docker-compose.dev.yml -p danswer-stack up -d --build`
- `docker compose -f docker-compose.dev.yml -p danswer-stack up -d --pull always --force-recreate`
- or run: `docker compose -f docker-compose.dev.yml -p danswer-stack up -d --build --force-recreate`
to build from source
- This will start Web/API servers, Postgres (backend DB), Qdrant (vector DB), and the background indexing job.
- Downloading packages/requirements may take 20+ minutes depending on your internet connection and whether it needs
to install packages for GPU.
- If you want to adjust any environment variables, either use the `-e` flag or the `--env-file` flag when running the `docker compose` command,
- Downloading images or packages/requirements may take 15+ minutes depending on your internet connection.
2. To shut down the deployment, run:

View File

@ -1,6 +1,7 @@
version: '3'
services:
api_server:
image: danswer/danswer-api-server:latest
build:
context: ../../backend
dockerfile: Dockerfile
@ -21,6 +22,7 @@ services:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
background:
image: danswer/danswer-background:latest
build:
context: ../../backend
dockerfile: Dockerfile.background
@ -39,6 +41,7 @@ services:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
web_server:
image: danswer/danswer-web-server:latest
build:
context: ../../web
dockerfile: Dockerfile

View File

@ -1,6 +1,7 @@
version: '3'
services:
api_server:
image: danswer/danswer-api-server:latest
build:
context: ../../backend
dockerfile: Dockerfile
@ -19,6 +20,7 @@ services:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
background:
image: danswer/danswer-background:latest
build:
context: ../../backend
dockerfile: Dockerfile.background
@ -36,6 +38,7 @@ services:
- local_dynamic_storage:/home/storage
- file_connector_tmp_storage:/home/file_connector_storage
web_server:
image: danswer/danswer-web-server:latest
build:
context: ../../web
dockerfile: Dockerfile