mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-17 23:30:07 +02:00
This serves as an example for how to deploy everything on a single machine. This is not optimal, but can get you started easily and cheaply. To run:
-
Set up a
.env
file in this directory with relevant environment variables.- Use the
env.template
as a reference.
- Use the
-
SKIP this step if running locally. If you are running this for production and need https do the following:
- Set up a
.env.nginx
file in this directory based onenv.nginx.template
. chmod +x init-letsencrypt.sh
+./init-letsencrypt.sh
to set up https certificate.
- Set up a
-
Run one of the docker compose commands below depending on your environment:
- For Local:
docker compose -f docker-compose.dev.yml -p danswer-stack up -d --build
- This will start Web/API servers, Postgres (backend DB), Qdrant (vector DB), and the background indexing job.
- For Prod:
docker compose -f docker-compose.prod.yml -p danswer-stack up -d --build
- This will additionally run certbot and start Nginx.
- For Local:
-
To shut down the deployment run:
- For Local:
docker compose -f docker-compose.dev.yml -p danswer-stack stop
- For Prod:
docker compose -f docker-compose.prod.yml -p danswer-stack stop
- For Local:
-
To completely remove Danswer (WARNING, this will also erase your indexed data and all users) run:
- For Local:
docker compose -f docker-compose.dev.yml -p danswer-stack down
- For Prod:
docker compose -f docker-compose.prod.yml -p danswer-stack down
- For Local: