{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b4aad60c-7450-4290-a593-2de862eae7d5",
    "slug": "nocodb-2",
    "name": "NocoDB [Updated Sep '26]",
    "description": "NocoDB [Sep '26] (Open-Source Database UI & No-Code Automation) Self Host",
    "url": "https://railway.com/deploy/nocodb-2",
    "upstream": {
      "repo_url": "https://github.com/shruti060701/nocodb-railway"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "nocodb-railway",
      "source": {
        "repo": "https://github.com/shruti060701/nocodb-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where Postgres stores its data files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname — this is what `NC_DB` actually connects through.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on internally. Verify this is actually filled in, not left as an empty \"to be filled by the user\" placeholder — this exact composer glitch has been seen on this project's Umami template.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Database username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Database password, mirrors POSTGRES_PASSWORD — some tools/clients read the PG*-prefixed name directly instead.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name created on startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Standard connection string. Not directly used by NocoDB (which needs the `NC_DB` query-string format instead), but other tools/clients may still expect it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Username for the Postgres superuser account.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate validity period.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated superuser password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public/external connection string for reaching this database from outside Railway's network (e.g. a local GUI client).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway waits for active connections before a redeploy. Verify this is actually filled in, same empty-placeholder caveat as `PGPORT` above.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "NC_DB",
      "service": "nocodb-railway",
      "description": "Connection string for NocoDB's meta database (table schemas, views, user accounts). **Uses NocoDB's own query-string format, not a standard Postgres URL** — verified against the vendor's real docker-compose example, and confirmed working on a real live deploy (the app started cleanly and a real CSV import succeeded against this exact string). Getting this format wrong is a silent failure mode worth flagging clearly to anyone editing this later.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NC_SITE_URL",
      "service": "nocodb-railway",
      "description": "Public-facing URL, used for invitation links and password-reset emails. Uses Railway's dynamic domain reference so it resolves correctly for every future deployer, not just this test instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NC_AUTH_JWT_SECRET",
      "service": "nocodb-railway",
      "description": "Secret key for JWT token generation and session validation. Auto-generated per deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nocodb-2"
      }
    },
    "cli": "railway deploy --template nocodb-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b4aad60c-7450-4290-a593-2de862eae7d5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "45fd0193-36b6-4579-899b-16bd3bb6d21b": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Directory where Postgres stores its data files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname — this is what `NC_DB` actually connects through.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on internally. Verify this is actually filled in, not left as an empty \"to be filled by the user\" placeholder — this exact composer glitch has been seen on this project's Umami template.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database username.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Database password, mirrors POSTGRES_PASSWORD — some tools/clients read the PG*-prefixed name directly instead.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database name created on startup.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Standard connection string. Not directly used by NocoDB (which needs the `NC_DB` query-string format instead), but other tools/clients may still expect it.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Username for the Postgres superuser account.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate validity period.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated superuser password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public/external connection string for reaching this database from outside Railway's network (e.g. a local GUI client).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds Railway waits for active connections before a redeploy. Verify this is actually filled in, same empty-placeholder caveat as `PGPORT` above.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "45fd0193-36b6-4579-899b-16bd3bb6d21b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "eae677af-a7d3-41a0-89d8-475cc36757ef": {
                  "icon": "https://avatars.githubusercontent.com/u/50206778?a=.png",
                  "name": "nocodb-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/nocodb-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "NC_DB": {
                      "isOptional": false,
                      "description": "Connection string for NocoDB's meta database (table schemas, views, user accounts). **Uses NocoDB's own query-string format, not a standard Postgres URL** — verified against the vendor's real docker-compose example, and confirmed working on a real live deploy (the app started cleanly and a real CSV import succeeded against this exact string). Getting this format wrong is a silent failure mode worth flagging clearly to anyone editing this later.",
                      "defaultValue": "pg://${{Postgres.PGHOST}}:${{Postgres.PGPORT}}?u=${{Postgres.PGUSER}}&p=${{Postgres.PGPASSWORD}}&d=${{Postgres.PGDATABASE}}"
                    },
                    "NC_SITE_URL": {
                      "isOptional": false,
                      "description": "Public-facing URL, used for invitation links and password-reset emails. Uses Railway's dynamic domain reference so it resolves correctly for every future deployer, not just this test instance.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NC_AUTH_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Secret key for JWT token generation and session validation. Auto-generated per deployment.",
                      "defaultValue": "{{NC_AUTH_JWT_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "eae677af-a7d3-41a0-89d8-475cc36757ef": {
                      "mountPath": "/usr/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "nocodb-railway",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T13:09:22.574Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fb3b5989c1714e8a85fd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 97,
    "typical_build_seconds": 20,
    "typical_start_seconds": 21,
    "slowest_service": "nocodb-railway"
  }
}
