# Self-host Teable

> A spreadsheet-style visual database backed by real PostgreSQL, an Airtable alternative.

- Page: https://levelrail.com/templates/teable/
- JSON: https://levelrail.com/templates/teable.json
- Category: Productivity
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/teableio/teable
- Upstream docs: https://help.teable.io/

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| teable | ghcr.io/teableio/teable | latest | 3000 | teable_data -> /app/.assets |
| teable-cache | redis | 7.2.4 | none | teable_cache_data -> /data |
| teable-db | postgres | 15.4 | none | teable_db_data -> /var/lib/postgresql/data |
| teable-db-migrate | ghcr.io/teableio/teable-db-migrate | latest | none | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| teable | BACKEND_CACHE_PROVIDER | preset |
| teable | BACKEND_CACHE_REDIS_URI | preset |
| teable | PORT | preset |
| teable | PRISMA_DATABASE_URL | generated |
| teable | PUBLIC_ORIGIN | preset |
| teable | SECRET_KEY | generated |
| teable-db | POSTGRES_DB | preset |
| teable-db | POSTGRES_PASSWORD | generated |
| teable-db | POSTGRES_USER | preset |
| teable-db-migrate | PRISMA_DATABASE_URL | generated |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/teable/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 Teable on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id teable for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/teableio/teable:latest, redis:7.2.4, postgres:15.4, ghcr.io/teableio/teable-db-migrate:latest is what you deploy there.

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