# Self-host NocoBase

> An extensible no-code/low-code platform for building internal tools and databases.

- Page: https://levelrail.com/templates/nocobase/
- JSON: https://levelrail.com/templates/nocobase.json
- Category: Developer Tools
- Licence: LicenseRef-NocoBase (Source available)
- Source: https://github.com/nocobase/nocobase
- Upstream docs: https://docs.nocobase.com/

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 1.9.33

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| nocobase | nocobase/nocobase | 1.9.33 | 13000 | nocobase_storage -> /app/nocobase/storage |
| postgres | postgres | 17-alpine | none | nocobase_postgres_data -> /var/lib/postgresql/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| nocobase | APP_KEY | generated |
| nocobase | DB_DATABASE | preset |
| nocobase | DB_DIALECT | preset |
| nocobase | DB_HOST | preset |
| nocobase | DB_PASSWORD | generated |
| nocobase | DB_PORT | preset |
| nocobase | DB_USER | preset |
| postgres | POSTGRES_DB | preset |
| postgres | POSTGRES_PASSWORD | generated |
| postgres | POSTGRES_USER | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy nocobase --name my-nocobase
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/nocobase/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy NocoBase on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for NocoBase, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image nocobase/nocobase:1.9.33, postgres:17-alpine is what you deploy there.

Self-host NocoBase, NocoBase docker compose file, deploy NocoBase on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
