Deploy Teable

Airtable-style spreadsheet database with Postgres, Redis and file storage.

Deploy Teable

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host Teable on Railway

Teable is an Airtable-style spreadsheet database backed by private PostgreSQL and Redis, with persistent local attachments. Basic tables do not require a model-provider key or paid feature license.

Deploy Teable on Railway

About Hosting Teable

This template deploys three container images directly, each pinned by digest. No GitHub repository, source fork, or build setup is required.

ServiceImageNetworkingPersistent mount
Teableghcr.io/teableio/teable:release.2026-11-18T03-31-20Z.3959Public HTTPS to port 3000/app/.assets
PostgreSQLghcr.io/railwayapp-templates/postgres-ssl:17Private port 5432; no public TCP proxy/var/lib/postgresql/data
Redisredis:8.10.3Private port 6379; no public TCP proxy/data

Use one Teable replica with local attachment storage. First boot applies database migrations and creates the administrator before the public port opens. Allow up to 600 seconds for /health; upstream recommends at least 4 GB RAM and two CPU cores for the stack.

First deployment and sign-in

  1. Before deploying, set TEABLE_ADMIN_EMAIL on the Teable service to your own address. The default is admin@example.com.
  2. Deploy all three services and wait for them to become healthy.
  3. Copy the generated TEABLE_ADMIN_PASSWORD from the Teable service's Variables tab, open the app's HTTPS domain and sign in with that email and password. The variable is only used on the first boot; change your password in Teable's account settings afterwards if you like.
  4. Self-signup is closed from the start. Nobody else can create an account, and the first visitor does not become administrator. To let people sign up, open /admin/setting (Instance settings) and switch on "Allow creating new accounts"; switch it off when they are done. The template never changes that setting again.

Teable itself has no environment variable for registration, so the Teable start command handles this: on an empty database it starts Teable on an internal port the public domain does not reach, creates the administrator through Teable's signup API, closes self-signup through the admin settings API, and only then starts Teable on port 3000.

The deployment fails rather than opening the app when TEABLE_ADMIN_EMAIL or TEABLE_ADMIN_PASSWORD is empty on a new database, when the password lacks a letter or a digit, when a database read fails, when any bootstrap step fails, when the database has users but sign-up was never closed, or the stored sign-up setting is neither true nor false, and the variables do not name an existing administrator. Fix the variable or the cause and redeploy.

Connection and session settings

  • DATABASE_URL and PRISMA_DATABASE_URL reference ${{Postgres.DATABASE_URL}}; BACKEND_CACHE_REDIS_URI references ${{Redis.REDIS_URL}}.
  • PUBLIC_ORIGIN=https://${{RAILWAY_PUBLIC_DOMAIN}} is the exact app HTTPS origin without a trailing slash. For a custom domain, update it to that origin and redeploy.
  • BACKEND_SESSION_COOKIE_SECURE=true and BACKEND_TRUST_PROXY=1 account for Railway's single ingress hop. Reassess the trust count if you add another proxy; do not disable Secure cookies.
  • Keep the generated SECRET_KEY, database password and Redis password private and stable across restarts.
ServiceRuntime defaults
PostgreSQLPOSTGRES_USER=postgres, POSTGRES_DB=railway, PGDATA=/var/lib/postgresql/data/pgdata, PGPORT=5432, SSL_CERT_DAYS=820, RAILWAY_DEPLOYMENT_DRAINING_SECONDS=60
RedisREDISUSER=default, REDISPORT=6379, authenticated AOF persistence and snapshots
TeablePORT=3000, healthcheck timeout 600 seconds, TEABLE_ADMIN_EMAIL, generated TEABLE_ADMIN_PASSWORD, generated SANDBOX_JWT_SECRET, SANDBOX_HOST=127.0.0.1

Persistent storage and permissions

PostgreSQL stores accounts, schemas and rows. The Teable volume stores attachment bytes. Redis is the authenticated cache and session store, with AOF and snapshots.

Teable runs as the image's unprivileged nodejs user; the start command runs as root only long enough to give the attachment volume to that user. It also passes Railway's stop signal to Teable, so redeploys shut it down gracefully. The script sandbox that Teable runs inside its container listens only on loopback and signs its tokens with a generated SANDBOX_JWT_SECRET, not the public default. The Redis start command sets its mount to redis:redis with mode 700 before the image entrypoint drops privileges, because Railway's root-owned lost+found stops the entrypoint's own fix, and it passes the Redis password as configuration on stdin rather than as a command-line argument.

Back up PostgreSQL, attachments, Redis and secrets together; volumes and AOF are not backups. PostgreSQL 17 is for fresh volumes only. Do not attach an existing PostgreSQL 18 volume. Teable migrates its database on start and cannot return to an older release afterwards.

Validation scope

Before release, the stack was run locally with these images and start commands. The checks covered:

  • the administrator bootstrap, including refusal of an anonymous sign-up sent the moment the app first answered;
  • administrator login and wrong-password, unknown-account and anonymous denial;
  • table, row and attachment writes, with byte-exact readback;
  • reopening and closing sign-up;
  • graceful shutdown, and persistence of sessions, logins, rows, attachments and the sign-up setting after restarting all three services;
  • an upgrade from the previous Teable release's volumes.

SMTP, paid integrations, backup and restore, and production load need separate validation.

Common Use Cases

  • Team tables, internal records and spreadsheet-style workflows.
  • Structured data with PostgreSQL-backed storage.
  • Evaluating a self-hosted alternative to a hosted spreadsheet database.

Dependencies for Teable Hosting

Three Railway services, three volumes, private service references and HTTPS. SMTP/email delivery, external AI providers, optional paid features, backups and restore workflows require separate configuration and validation.

Deployment Dependencies

Why Deploy Teable on Railway?

Railway provides HTTPS routing, private database and cache networking, persistent mounts and deployment logs. You manage administrator access, registration policy, backups, licensing and resource capacity.


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
Time-series analytics on PostgreSQL: fast, familiar, scalable.

Rakit
2
View Template
Neo4j 2026.10 Community
Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

My Projects
0