Skip to content

Commit 5d54e75

Browse files
committed
chore(installtion): refactor digital ocean
1 parent 4ae44d2 commit 5d54e75

File tree

1 file changed

+59
-20
lines changed

1 file changed

+59
-20
lines changed

content/self-hosting/installation/digital-ocean.mdx

Lines changed: 59 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,78 @@ tags: ['Open Source']
44
keywords : ['NocoDB installation', 'NocoDB Digital Ocean installation', 'NocoDB prerequisites']
55
---
66

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.
88

9-
### Deployment Steps
9+
## Step 1: Set Up Required Services
1010

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:
1212

13-
![DigitalOcean Create App](/img/v2/installations/digitalocean-create-app.png)
14-
2. Choose "Docker Hub" as the source.
13+
* **PostgreSQL database**
14+
* **Redis instance**
15+
* **Spaces bucket (S3-compatible storage)**
1516

16-
![DigitalOcean Docker Hub](/img/v2/installations/digitalocean-docker-hub.png)
17+
### PostgreSQL
1718

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.
1923

20-
![DigitalOcean Set Repository](/img/v2/installations/digitalocean-set-repository.png)
24+
### Redis
2125

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.
2330

24-
![DigitalOcean Configure Settings](/img/v2/installations/digitalocean-configure-settings.png)
31+
### Spaces (Object Storage)
2532

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`.
2736

28-
![DigitalOcean Name Service](/img/v2/installations/digitalocean-name-service.png)
37+
## Step 2: Deploy the NocoDB App
2938

30-
6. Choose your preferred hosting plan and click on "Launch Basic App".
39+
1. Navigate to **Apps → Create App**.
3140

32-
![DigitalOcean Hosting Plan](/img/v2/installations/digitalocean-hosting-plan.png)
41+
2. Choose **Docker Hub** as the source.
3342

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:
3544

45+
* `Repository: nocodb/nocodb`
46+
* `Tag: latest`
3647

37-
### Important Notes
48+
4. Proceed and edit the **HTTP Port** to `8080`.
3849

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

Comments
 (0)