feat(digital-ocean): Update deployment instructions for Digital Ocean (#2472)

This pull request updates the deployment instructions for Digital Ocean
in the Quivr repository. The instructions now include step-by-step
details on creating a Droplet, choosing the Docker image, updating the
.env file, installing Supabase, allowing the firewall, and launching the
project. The new instructions provide a more comprehensive guide for
deploying Quivr on Digital Ocean.
This commit is contained in:
Stan Girard 2024-04-22 16:13:14 -07:00 committed by GitHub
parent 75a37491fb
commit b9ea536836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,81 @@
---
title: Deploy with Digital Ocean
description: (Coming Soon) Deploy Quivr on Digital Ocean
description: Deploy Quivr on Digital Ocean
icon: digital-ocean
---
Coming Soon
1. Go to [Digital Ocean](https://www.digitalocean.com/) and create an account.
2. Create a new Droplet.
3. Choose the Docker image from the Marketplace.
![2024-04-22-21-49-27.png](/images/2024-04-22-21-49-27.png)
4. Choose the Standard Droplet plan.
We recommended the $48/month plan for the best performance with 4 vCPUs, 8GB RAM, and 160GB SSD.
5. Wait for the Droplet to be created.
6. SSH into your Droplet.
```bash
ssh root@your-droplet-ip
```
7. Clone the Quivr repository.
```bash
git clone https://github.com/QuivrHQ/quivr.git && cd quivr
```
8. Copy the `.env.example` file.
```bash
cp .env.example .env
```
9. Update the `.env` file.
```bash
vim .env
```
- Update the `OPENAI_API_KEY`
- Update the `NEXT_PUBLIC_BACKEND_URL` with your Droplet IP -> `http://your-droplet-ip:5050`
- UPDATE the `NEXT_PUBLIC_SUPABASE_URL` with your Droplet IP -> `http://your-droplet-ip:54321`
- Update the `NEXT_PUBLIC_FRONTEND_URL` with your Droplet IP -> `http://your-droplet-ip:3000`
10. Install Supabase
```bash
apt install npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 20
nvm use 20
npx supabase start
```
11. Allow the firewall
```bash
ufw allow 54321
```
12. Launch the project
```bash
docker compose pull
docker compose up
```
It needs at least 5 minutes to build the frontend and pulling the Docker images.
13. Access the Quivr app
```bash
http://your-droplet-ip:3000
```