|
1 | 1 | ---
|
2 |
| -title: 'DigitalOcean' |
| 2 | +title: 'Install on DigitalOcean' |
3 | 3 | tags: ['Open Source']
|
4 | 4 | keywords : ['NocoDB installation', 'NocoDB Digital Ocean installation', 'NocoDB prerequisites']
|
5 | 5 | ---
|
6 | 6 |
|
7 |
| -Follow these steps to deploy NocoDB on DigitalOcean using their App Platform. |
| 7 | +This guide outlines how to deploy **NocoDB** on [DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform), a fully managed solution for container-based applications. It covers provisioning databases, object storage, and setting environment variables for a reliable, scalable setup. |
8 | 8 |
|
9 |
| -### Deployment Steps |
| 9 | +## Step 1: Set Up Required Services |
10 | 10 |
|
11 |
| -1. On the DigitalOcean homepage, click on the Create icon and select "Apps (Deploy your code)". |
| 11 | +Since DigitalOcean App Platform doesn't support persistent volumes, NocoDB's data must be stored using **managed services**. You’ll need: |
12 | 12 |
|
13 |
| -  |
14 |
| -2. Choose "Docker Hub" as the source. |
| 13 | +* **PostgreSQL database** |
| 14 | +* **Redis instance** |
| 15 | +* **Spaces bucket (S3-compatible storage)** |
15 | 16 |
|
16 |
| -  |
| 17 | +### PostgreSQL |
17 | 18 |
|
18 |
| -3. Set the source repository as nocodb/nocodb. You can optionally specify a release tag if you want a specific NocoDB version. |
| 19 | +1. Go to **Databases → Create Database**. |
| 20 | +2. Choose **PostgreSQL v15** and a region. |
| 21 | +3. Use at least 1 vCPU / 1GB RAM for smaller workloads. |
| 22 | +4. Once created, go to the connection info and switch to the **Connection String** view—copy this for later. |
19 | 23 |
|
20 |
| -  |
| 24 | +### Redis |
21 | 25 |
|
22 |
| -4. Configure any additional settings as needed. |
| 26 | +1. Go to **Databases → Create Database** again. |
| 27 | +2. Select **Redis v7**, same region. |
| 28 | +3. Minimum specs: 1 vCPU / 1GB RAM. |
| 29 | +4. Copy the Redis connection string from the details page. |
23 | 30 |
|
24 |
| -  |
| 31 | +### Spaces (Object Storage) |
25 | 32 |
|
26 |
| -5. Name your web service and select the nearest region for cloud hosting. |
| 33 | +1. Go to **Spaces Object Storage → Create Spaces Bucket**. |
| 34 | +2. Choose the same region used for your DB/Redis. |
| 35 | +3. Then go to **API → Generate New Key** to get your `Access Key` and `Secret Key`. |
27 | 36 |
|
28 |
| -  |
| 37 | +## Step 2: Deploy the NocoDB App |
29 | 38 |
|
30 |
| -6. Choose your preferred hosting plan and click on "Launch Basic App". |
| 39 | +1. Navigate to **Apps → Create App**. |
31 | 40 |
|
32 |
| -  |
| 41 | +2. Choose **Docker Hub** as the source. |
33 | 42 |
|
34 |
| - Your application will be built, and the URL will be live shortly. The URL will look something like https://your-app-name.ondigitalocean.app/. |
| 43 | +3. Enter: |
35 | 44 |
|
| 45 | +* `Repository: nocodb/nocodb` |
| 46 | +* `Tag: latest` |
36 | 47 |
|
37 |
| -### Important Notes |
| 48 | +4. Proceed and edit the **HTTP Port** to `8080`. |
38 | 49 |
|
39 |
| -- Ensure you configure environment variables for database connections if needed. |
40 |
| -- Set up persistent storage for your NocoDB data. |
41 |
| -- You can scale your app as needed using DigitalOcean's App Platform. |
42 |
| -- Consider enabling automatic deployments for easier updates. |
| 50 | +5. In the environment variables section, add the following: |
| 51 | + |
| 52 | +* `NC_AUTH_JWT_SECRET` |
| 53 | +* `NC_PUBLIC_URL` |
| 54 | +* `NC_DB` |
| 55 | +* `NC_REDIS_URL` |
| 56 | +* `NC_S3_ACCESS_KEY` |
| 57 | +* `NC_S3_ACCESS_SECRET` |
| 58 | +* `NC_S3_BUCKET_NAME` |
| 59 | +* `NC_S3_REGION` |
| 60 | +* `NC_S3_ENDPOINT` |
| 61 | + |
| 62 | +> ⚠️ Ensure the `NC_PUBLIC_URL` matches your actual app domain without a trailing slash. |
| 63 | +
|
| 64 | +6. Set resources to **1 container with 2GB RAM / 1 vCPU** at a minimum. |
| 65 | +7. Complete deployment by clicking **Create Resources**. |
| 66 | + |
| 67 | +## Step 3: Secure the Setup |
| 68 | + |
| 69 | +For PostgreSQL and Redis, add your NocoDB app as a **trusted source**: |
| 70 | + |
| 71 | +* Navigate to your database → **Settings → Trusted Sources** → Add the app. |
| 72 | + |
| 73 | +## Updating NocoDB |
| 74 | + |
| 75 | +To upgrade to a new NocoDB version: |
| 76 | + |
| 77 | +1. Go to **App Settings → Source → Edit Component**. |
| 78 | +2. Change the image tag (e.g., `latest`, or a specific version). |
| 79 | +3. Save to trigger a redeploy. |
| 80 | + |
| 81 | +You're all set! Visit your app URL to access your NocoDB workspace. |
0 commit comments