# Self-host NocoDB

> No-code database platform that puts a spreadsheet-style interface over Postgres or SQLite data, with an API and forms. Run your own NocoDB on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

_Updated November 23, 2026_

Running your own NocoDB usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make NocoDB behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

## Just ask your agent

Open a Plus workspace (NocoDB runs in Docker, which Plus and Pro include), tap **Launch** to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

```text
Set up NocoDB on this workspace and give me the link. Follow https://envhaven.com/self-host/nocodb.md
```

Then open the link it sends and create your NocoDB account straight away, before anyone else finds the address. That is the whole request: the address in it is this page's Markdown copy, and the agent follows the instructions for it further down, with every setting NocoDB's docs require.

## Or keep it private with Tailscale

The preview URL puts NocoDB on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives NocoDB an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace's **Vars** pane as `TS_AUTHKEY`, and ask the agent:

```text
Set up NocoDB on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/nocodb.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
```

- A Tailscale container runs beside NocoDB, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
- Anything other services have to reach, such as a webhook, still needs a public address. [Keep self-hosted apps private with Tailscale](https://envhaven.com/guides/self-host-privately-with-tailscale) covers both, and what Tailscale's free plan includes.

| At a glance |  |
| --- | --- |
| What it is | Databases, backends and analytics |
| License | Sustainable Use License v1.0 |
| Runs as | Docker (`nocodb/nocodb`) |
| Memory | 2 GB minimum, 8 GB recommended (production) ([docs](https://nocodb.com/docs/self-hosting)) |
| Plan that fits | Plus or larger |
| Web port | 8080 |
| Documentation | [nocodb.com/docs/self-hosting/installation/single-server](https://nocodb.com/docs/self-hosting/installation/single-server) |

## What your agent takes care of

- **Installing it.** NocoDB runs from the official image, `nocodb/nocodb`, with its data in folders under `~/apps/nocodb`.
- **Putting it on an HTTPS address.** The workspace's preview URL serves it, and your own domain can too.
- **Locking it down first.** What NocoDB's docs say to set before it faces the internet, below.
- **Telling you what to back up**: named volume nocodb_data mounted at /usr/app/data (attachments and, without NC_DB, the SQLite file), named volume postgres_data (metadata and your data) and named volume redis_data ([docs](https://nocodb.com/docs/self-hosting/installation/quickstart)).

### The settings it needs behind a proxy

- `NC_SITE_URL` (legacy name `NC_PUBLIC_URL`): Public URL of the instance; invitation and password-reset emails and the Swagger URL are built from it. Required for outbound email links to be right. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- `NC_SITE_URL` value: Set it to the public HTTPS address; otherwise URLs derive from the incoming request and break behind a proxy. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- X-Forwarded-Proto and Host request headers: The proxy must forward both so NocoDB builds correct https callback URLs; forward HTTP traffic to port 8080. ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))
- Local mode (blank domain in the installer): Skips Traefik and SSL; NocoDB listens on port 8080 for your own proxy or tunnel. ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))
- TLS ended at a proxy: Forward the headers and NocoDB then makes https:// links. ([docs](https://nocodb.com/docs/self-hosting/troubleshooting))
- `NC_DASHBOARD_URL`: Custom path of the dashboard UI (default /dashboard); not a whole-app sub-path setting. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))

### Before it faces the internet

- Whoever signs up first becomes super admin; there is no default password, so register immediately after the stack is reachable. ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))
- Public signup can be turned off. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- The demo compose file ships a placeholder database password that must be changed. ([docs](https://github.com/nocodb/nocodb/blob/develop/docker-compose/examples/quickstart-demo/docker-compose.yml))
- NocoDB generates a random JWT secret when none is set; the README example shows a fixed UUID that must not be reused. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- Secret files written by the installer are mode 600; keep them that way and restrict the firewall to the ports you need. ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))
- Production checklist item for firewalling. ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))

## Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

- "Create the tables for a simple CRM: companies, contacts and deals."
- "Seed it with sample data so I can try the interface."
- "Move NocoDB to app.example.com." Add the domain on the dashboard's Domains page with a CNAME to `domains.envhaven.app`, and the agent changes NocoDB's address settings to match.
- "Update NocoDB to the latest release." It pulls the new image and recreates the container, data kept.

## Instructions for the agent

The agent reads these from the page's Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

```text
Set up NocoDB on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, nocodb/nocodb, starting from the docs' compose file: https://github.com/nocodb/nocodb/blob/develop/docker-compose/examples/quickstart-demo/docker-compose.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: PostgreSQL (quickstart and single-server stacks; metadata and data); Redis (cache and job queue); worker container (same nocodb/nocodb image); Traefik (added by the single-server installer for HTTPS); none required for a single-container SQLite setup.
- Keep the compose file in ~/apps/nocodb and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to NocoDB's port 8080.
- The preview URL terminates HTTPS in front of NocoDB: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/nocodb.md for the preview URL, as NocoDB's docs describe for running behind a proxy; skip any that apply only when NocoDB serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/nocodb.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set NocoDB up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.
```

## What to know

- In Docker, NocoDB's containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
- Single-server install needs ports 80 and 443 reachable for Let's Encrypt; behind an HTTP-only tunnel use local mode and let the tunnel terminate TLS. ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))
- Attachment uploads default to 20 MiB per file, under a 100 MB tunnel cap. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- API request bodies are capped at 1 MB by default (NC_REQUEST_BODY_SIZE). ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- Outbound call to NocoDB's license service every six hours over HTTPS; egress filtering must allow it (offline servers need an airgapped license). ([docs](https://nocodb.com/docs/self-hosting/installation/single-server))
- Connecting external databases on private or LAN addresses is blocked by default, which matters for a cloud VPS with no local network. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- Email needs an SMTP server (NC_SMTP_HOST, NC_SMTP_PORT and credentials). ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- Anonymous usage telemetry is on unless NC_DISABLE_TELE is set. ([docs](https://nocodb.com/docs/self-hosting/environment-variables))
- A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

## Without a workspace

The manual route, on a server you run:

1. Rent a Linux VPS, secure SSH, and create a user for the app.
2. Install Docker and write a compose file from the official image.
3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
5. Keep the firewall closed except for the proxy, and schedule backups and updates.

NocoDB's own [documentation](https://nocodb.com/docs/self-hosting/installation/single-server) covers each step for its install methods.

## Sources

Facts about NocoDB come from its own documentation, checked on 2026-11-23:

- [nocodb.com/docs/self-hosting/installation/single-server](https://nocodb.com/docs/self-hosting/installation/single-server)
- [nocodb.com/docs/self-hosting/installation/quickstart](https://nocodb.com/docs/self-hosting/installation/quickstart)
- [nocodb.com/docs/self-hosting](https://nocodb.com/docs/self-hosting)
- [nocodb.com/docs/self-hosting/environment-variables](https://nocodb.com/docs/self-hosting/environment-variables)
- [nocodb.com/docs/self-hosting/troubleshooting](https://nocodb.com/docs/self-hosting/troubleshooting)
- [github.com/nocodb/nocodb/blob/develop/docker-compose/examples/quickstart-demo/docker-compose.yml](https://github.com/nocodb/nocodb/blob/develop/docker-compose/examples/quickstart-demo/docker-compose.yml)

## Keep reading

- [Self-host any app with your agent](https://envhaven.com/self-host)
- [Self-host Supabase](https://envhaven.com/self-host/supabase)
- [Self-host Appwrite](https://envhaven.com/self-host/appwrite)
- [Self-host Baserow](https://envhaven.com/self-host/baserow)
- [Self-host Directus](https://envhaven.com/self-host/directus)
- [AI agent hosting](https://envhaven.com/guides/ai-agent-hosting)

Source: https://envhaven.com/self-host/nocodb
