
Deploy Teable
Airtable-style spreadsheet database with Postgres, Redis and file storage.
Redis
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Just deployed
/app/.assets
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.
About Hosting Teable
This template deploys three container images directly, each pinned by digest. No GitHub repository, source fork, or build setup is required.
| Service | Image | Networking | Persistent mount |
|---|---|---|---|
| Teable | ghcr.io/teableio/teable:release.2026-11-18T03-31-20Z.3959 | Public HTTPS to port 3000 | /app/.assets |
| PostgreSQL | ghcr.io/railwayapp-templates/postgres-ssl:17 | Private port 5432; no public TCP proxy | /var/lib/postgresql/data |
| Redis | redis:8.10.3 | Private 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
- Before deploying, set
TEABLE_ADMIN_EMAILon the Teable service to your own address. The default isadmin@example.com. - Deploy all three services and wait for them to become healthy.
- Copy the generated
TEABLE_ADMIN_PASSWORDfrom 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. - 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_URLandPRISMA_DATABASE_URLreference${{Postgres.DATABASE_URL}};BACKEND_CACHE_REDIS_URIreferences${{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=trueandBACKEND_TRUST_PROXY=1account 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.
| Service | Runtime defaults |
|---|---|
| PostgreSQL | POSTGRES_USER=postgres, POSTGRES_DB=railway, PGDATA=/var/lib/postgresql/data/pgdata, PGPORT=5432, SSL_CERT_DAYS=820, RAILWAY_DEPLOYMENT_DRAINING_SECONDS=60 |
| Redis | REDISUSER=default, REDISPORT=6379, authenticated AOF persistence and snapshots |
| Teable | PORT=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
- Teable Docker deployment guide.
- Pinned Teable release source, for reference only; deployment uses the container image directly.
- PostgreSQL SSL 17 and Redis 8.10 container images listed above. Review upstream feature licensing before enabling paid functionality.
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
