Skip to content

Commit

Permalink
wait qdrant
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 10, 2024
1 parent ab0aa9d commit c5817fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: "3"
services:

libre-chat:
depends_on: [qdrant]
build: .
# image: ghcr.io/vemonet/libre-chat:main
volumes:
Expand Down
7 changes: 5 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ fi
# Initialize the Llm (ddl files if not present, build vectors) runs before the API to avoid running on multiple workers
python3 /app/scripts/init.py

# Wait for Qdrant to start
sleep 10

echo "🦄 Starting gunicorn with $LIBRECHAT_WORKERS workers on $BIND for the module $APP_MODULE with a timeout of $TIMEOUT sec"
# exec gunicorn -w "$LIBRECHAT_WORKERS" -k "$WORKER_CLASS" -b "$BIND" --timeout "$TIMEOUT" "$APP_MODULE"
exec uvicorn --host "0.0.0.0" --port 8000 "$APP_MODULE"
exec gunicorn -w "$LIBRECHAT_WORKERS" -k "$WORKER_CLASS" -b "$BIND" --timeout "$TIMEOUT" "$APP_MODULE"
# exec uvicorn --host "0.0.0.0" --port 8000 "$APP_MODULE"

# -w: number of worker processes for handling requests [1]
# --threads: number of worker threads for handling requests. [1]
Expand Down

0 comments on commit c5817fc

Please sign in to comment.