{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d03cfe65-6b3e-409f-98b2-3542949f75e7",
    "slug": "teable-production",
    "name": "Teable | Open-Source Airtable Alternative with Postgres & Redis",
    "description": "No-code Postgres database with grid, kanban, forms and real-time collab",
    "url": "https://railway.com/deploy/teable-production",
    "upstream": {
      "image": "ghcr.io/teableio/teable:release.2026-10-02T04-02-20Z.3278"
    }
  },
  "services": [
    {
      "name": "Teable",
      "source": {
        "image": "ghcr.io/teableio/teable:release.2026-10-02T04-02-20Z.3278"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/.assets",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Teable",
      "description": "Port Teable listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SECRET_KEY",
      "service": "Teable",
      "description": "Master secret: signs logins and share links and encrypts stored AI keys. BACK IT UP - changing it logs everyone out and breaks stored keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PUBLIC_ORIGIN",
      "service": "Teable",
      "description": "Public URL of Teable (links, attachments, sharing) - set it to your custom domain after adding one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BACKEND_MAIL_PORT",
      "service": "Teable",
      "description": "SMTP port",
      "secret": false,
      "strategy": "default",
      "default": "465"
    },
    {
      "key": "SANDBOX_JWT_SECRET",
      "service": "Teable",
      "description": "Signs execution tokens between the backend and its built-in code sandbox (port 7070, private network only). Without it Teable falls back to a publicly known default",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_MAIL_SECURE",
      "service": "Teable",
      "description": "true for implicit TLS (port 465), false for STARTTLS (587)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PRISMA_DATABASE_URL",
      "service": "Teable",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BACKEND_CACHE_PROVIDER",
      "service": "Teable",
      "description": "Cache, queues and realtime sync run on Redis",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "BACKEND_CACHE_REDIS_URI",
      "service": "Teable",
      "description": "Redis on the private network (family=0 lets it connect over IPv6)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BACKEND_MAIL_SENDER_NAME",
      "service": "Teable",
      "description": "Sender name for Teable emails",
      "secret": false,
      "strategy": "default",
      "default": "Teable"
    },
    {
      "key": "BACKEND_MAIL_ENCRYPTION_IV",
      "service": "Teable",
      "description": "Email link IV (16 hex chars)",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_MAIL_ENCRYPTION_KEY",
      "service": "Teable",
      "description": "Encrypts email unsubscribe links (16 hex chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_STORAGE_ENCRYPTION_IV",
      "service": "Teable",
      "description": "Attachment token IV (16 hex chars)",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_STORAGE_ENCRYPTION_KEY",
      "service": "Teable",
      "description": "Encrypts attachment access tokens (16 hex chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Teable",
      "description": "First boot runs the database migrations before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "BACKEND_DATA_DB_URL_ENCRYPTION_IV",
      "service": "Teable",
      "description": "External database URL IV (16 hex chars)",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_ACCESS_TOKEN_ENCRYPTION_IV",
      "service": "Teable",
      "description": "API token IV (16 hex chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_DATA_DB_URL_ENCRYPTION_KEY",
      "service": "Teable",
      "description": "Encrypts external database URLs (16 hex chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_ACCESS_TOKEN_ENCRYPTION_KEY",
      "service": "Teable",
      "description": "Encrypts personal API tokens - changing it invalidates every token (16 hex chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "teable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "teable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "teable-production"
      }
    },
    "cli": "railway deploy --template teable-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d03cfe65-6b3e-409f-98b2-3542949f75e7",
            "serializedConfig": {
              "services": {
                "6936d3c3-007c-44d1-8b20-06ac2528015f": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/teable-railway/main/icon.svg",
                  "name": "Teable",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/teableio/teable:release.2026-10-02T04-02-20Z.3278"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Teable listens on - leave as is",
                      "defaultValue": "3000"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Master secret: signs logins and share links and encrypts stored AI keys. BACK IT UP - changing it logs everyone out and breaks stored keys",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "PUBLIC_ORIGIN": {
                      "isOptional": false,
                      "description": "Public URL of Teable (links, attachments, sharing) - set it to your custom domain after adding one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BACKEND_MAIL_HOST": {
                      "isOptional": true,
                      "description": "Optional SMTP server for invitations and password resets (Railway allows outbound SMTP on Pro only)",
                      "defaultValue": ""
                    },
                    "BACKEND_MAIL_PORT": {
                      "isOptional": true,
                      "description": "SMTP port",
                      "defaultValue": "465"
                    },
                    "SANDBOX_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs execution tokens between the backend and its built-in code sandbox (port 7070, private network only). Without it Teable falls back to a publicly known default",
                      "defaultValue": "{{SANDBOX_JWT_SECRET}}"
                    },
                    "BACKEND_MAIL_SECURE": {
                      "isOptional": true,
                      "description": "true for implicit TLS (port 465), false for STARTTLS (587)",
                      "defaultValue": "true"
                    },
                    "BACKEND_MAIL_SENDER": {
                      "isOptional": true,
                      "description": "Sender address for Teable emails",
                      "defaultValue": ""
                    },
                    "PRISMA_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "BACKEND_CACHE_PROVIDER": {
                      "isOptional": false,
                      "description": "Cache, queues and realtime sync run on Redis",
                      "defaultValue": "redis"
                    },
                    "BACKEND_MAIL_AUTH_PASS": {
                      "isOptional": true,
                      "description": "SMTP password",
                      "defaultValue": ""
                    },
                    "BACKEND_MAIL_AUTH_USER": {
                      "isOptional": true,
                      "description": "SMTP username",
                      "defaultValue": ""
                    },
                    "BACKEND_CACHE_REDIS_URI": {
                      "isOptional": false,
                      "description": "Redis on the private network (family=0 lets it connect over IPv6)",
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0?family=0"
                    },
                    "BACKEND_MAIL_SENDER_NAME": {
                      "isOptional": true,
                      "description": "Sender name for Teable emails",
                      "defaultValue": "Teable"
                    },
                    "BACKEND_MAIL_ENCRYPTION_IV": {
                      "isOptional": false,
                      "description": "Email link IV (16 hex chars)",
                      "defaultValue": "{{BACKEND_MAIL_ENCRYPTION_IV}}"
                    },
                    "BACKEND_MAIL_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts email unsubscribe links (16 hex chars)",
                      "defaultValue": "{{BACKEND_MAIL_ENCRYPTION_KEY}}"
                    },
                    "BACKEND_STORAGE_ENCRYPTION_IV": {
                      "isOptional": false,
                      "description": "Attachment token IV (16 hex chars)",
                      "defaultValue": "{{BACKEND_STORAGE_ENCRYPTION_IV}}"
                    },
                    "BACKEND_STORAGE_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts attachment access tokens (16 hex chars)",
                      "defaultValue": "{{BACKEND_STORAGE_ENCRYPTION_KEY}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot runs the database migrations before the health check can pass",
                      "defaultValue": "600"
                    },
                    "BACKEND_DATA_DB_URL_ENCRYPTION_IV": {
                      "isOptional": false,
                      "description": "External database URL IV (16 hex chars)",
                      "defaultValue": "{{BACKEND_DATA_DB_URL_ENCRYPTION_IV}}"
                    },
                    "BACKEND_ACCESS_TOKEN_ENCRYPTION_IV": {
                      "isOptional": false,
                      "description": "API token IV (16 hex chars)",
                      "defaultValue": "{{BACKEND_ACCESS_TOKEN_ENCRYPTION_IV}}"
                    },
                    "BACKEND_DATA_DB_URL_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts external database URLs (16 hex chars)",
                      "defaultValue": "{{BACKEND_DATA_DB_URL_ENCRYPTION_KEY}}"
                    },
                    "BACKEND_ACCESS_TOKEN_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts personal API tokens - changing it invalidates every token (16 hex chars)",
                      "defaultValue": "{{BACKEND_ACCESS_TOKEN_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "ef9f0997-3a81-439e-bcd1-ad98e42e840e": {
                      "mountPath": "/app/.assets"
                    }
                  }
                },
                "9dca30ef-e728-4661-b3d7-d2484041d9f8": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "teable"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "teable"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "337f32bd-8d90-4a4e-bf7a-087722e5794a": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c4f1b0a2-6d2e-4b8f-9a71-2f5d3e8c7b10": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --appendonly yes\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10.2-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "33e973ff-0fb1-41fc-a30d-3cd8c780f7e0": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Teable",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T00:14:30.614Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_020053a8108f49ae9597",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 169,
    "typical_build_seconds": 0,
    "typical_start_seconds": 91,
    "slowest_service": "Teable"
  }
}
