# DigitalOcean Deployment Guide {#digitalocean-deployment-guide}


Deploy Ever Gauzy to DigitalOcean using App Platform or Droplets.


## Option 1: App Platform {#option-1-app-platform}



### 1. Create App {#1-create-app}


1. Go to DigitalOcean → **App Platform**
2. Select **GitHub** as source
3. Choose the `ever-gauzy` repository
4. Select the Dockerfile for the API


### 2. Add Database & Redis {#2-add-database--redis}


From App Platform dashboard:

- Add **PostgreSQL** database component
- Add **Redis** database component


### 3. Configure {#3-configure}


Set environment variables in the App Platform settings:

```
NODE_ENV=production
DB_TYPE=postgres
JWT_SECRET=your-secret
API_BASE_URL=https://gauzy-api.ondigitalocean.app
```

Database and Redis URLs are auto-injected.


## Option 2: Droplet {#option-2-droplet}



### 1. Create Droplet {#1-create-droplet}


- Ubuntu 22.04 LTS
- 4GB RAM / 2 CPUs recommended
- Enable monitoring


### 2. Install Docker {#2-install-docker}


```bash
curl -fsSL https://get.docker.com | sh
```


### 3. Deploy {#3-deploy}


```bash
docker compose up -d
```


## Related Pages {#related-pages}


- [Production Deployment](https://sourcey-gauzy.pages.dev/devops/production-deployment/index.md) — general guide
- [Nginx Reverse Proxy](https://sourcey-gauzy.pages.dev/deployment/nginx-reverse-proxy/index.md) — proxy setup
