{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c00e1289-f05e-42f3-b975-8311c473158e",
    "slug": "teable-1",
    "name": "teable",
    "description": "One-click Teable (open-source Airtable alternative) with Postgres + Redis",
    "url": "https://railway.com/deploy/teable-1",
    "upstream": {
      "repo_url": "https://github.com/lNamelessl/teable-railway-template"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "repo": "https://github.com/lNamelessl/teable-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "repo": "https://github.com/lNamelessl/teable-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Teable",
      "source": {
        "repo": "https://github.com/lNamelessl/teable-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/.assets",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECRET_KEY",
      "service": "Teable",
      "description": "Provide a value for SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PUBLIC_ORIGIN",
      "service": "Teable",
      "description": "Provide a value for PUBLIC_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BACKEND_JWT_SECRET",
      "service": "Teable",
      "description": "Provide a value for BACKEND_JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PRISMA_DATABASE_URL",
      "service": "Teable",
      "description": "Provide a value for PRISMA_DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BACKEND_SESSION_SECRET",
      "service": "Teable",
      "description": "Provide a value for BACKEND_SESSION_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKEND_CACHE_REDIS_URI",
      "service": "Teable",
      "description": "Provide a value for BACKEND_CACHE_REDIS_URI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "teable-1"
      }
    },
    "cli": "railway deploy --template teable-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c00e1289-f05e-42f3-b975-8311c473158e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0e9e9604-dd5a-44dc-b2c8-da8b26828189": {
                  "icon": null,
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/teable-railway-template",
                    "rootDirectory": "postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "0e9e9604-dd5a-44dc-b2c8-da8b26828189": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "421451ec-4838-4f45-b20b-39c02ffd7df1": {
                  "icon": null,
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "sh -c 'exec redis-server --appendonly yes --requirepass $REDIS_PASSWORD'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/teable-railway-template",
                    "rootDirectory": "redis"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "421451ec-4838-4f45-b20b-39c02ffd7df1": {
                      "mountPath": "/data"
                    }
                  }
                },
                "95883e46-1ab4-4b31-86df-3cfd50a40ac7": {
                  "icon": null,
                  "name": "Teable",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/teable-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SECRET_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "PUBLIC_ORIGIN": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BACKEND_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{BACKEND_JWT_SECRET}}"
                    },
                    "PRISMA_DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "BACKEND_SESSION_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{BACKEND_SESSION_SECRET}}"
                    },
                    "BACKEND_CACHE_REDIS_URI": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "95883e46-1ab4-4b31-86df-3cfd50a40ac7": {
                      "mountPath": "/app/.assets"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Teable",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-06T17:54:17.775Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T17:57:02.629Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5081e63ffc27472db162",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 108,
    "typical_build_seconds": 51,
    "typical_start_seconds": 40,
    "slowest_service": "Teable"
  }
}
