{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ce0367e0-39bb-4496-b5e1-62e91cd81633",
    "slug": "nocodb-production",
    "name": "NocoDB | Open-Source Airtable Alternative with Postgres",
    "description": "Spreadsheet-style databases for your team, admin ready on first boot",
    "url": "https://railway.com/deploy/nocodb-production",
    "upstream": {
      "image": "nocodb/nocodb:2026.10.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:17.11-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "NocoDB",
      "source": {
        "image": "nocodb/nocodb:2026.10.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "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": "nocodb"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "nocodb"
    },
    {
      "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": "PORT",
      "service": "NocoDB",
      "description": "HTTP port NocoDB listens on - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NC_DB",
      "service": "NocoDB",
      "description": "Postgres connection for NocoDB's metadata and the default base (private network)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "NocoDB",
      "description": "Caps NocoDB's JavaScript heap at 512 MB so it idles at about 0.5 GB instead of 0.9 GB. Raise it (e.g. 1024) for big imports or many users.",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=512"
    },
    {
      "key": "NC_PUBLIC_URL",
      "service": "NocoDB",
      "description": "Public URL NocoDB uses in links, emails and shared views. Change it after adding a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NC_ADMIN_EMAIL",
      "service": "NocoDB",
      "description": "Email for the super admin account, created on boot. You sign in with it.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "NC_ADMIN_PASSWORD",
      "service": "NocoDB",
      "description": "Super admin password, generated at deploy time. NocoDB applies it on every boot, so change it here rather than in the app.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NC_AUTH_JWT_SECRET",
      "service": "NocoDB",
      "description": "Signs sign-in tokens. Changing it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nocodb-production"
      }
    },
    "cli": "railway deploy --template nocodb-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ce0367e0-39bb-4496-b5e1-62e91cd81633",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0af03940-09b6-45f0-93e5-71bc26a76630": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.11-alpine"
                  },
                  "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": "nocodb"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "nocodb"
                    },
                    "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": {
                    "6d0c8d19-73b0-4a7f-867e-8c773f632de6": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "7ac41f81-eea2-4e2a-a763-7d49244e5e1e": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/nocodb/main/icon.svg",
                  "name": "NocoDB",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "nocodb/nocodb:2026.10.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port NocoDB listens on - leave as is.",
                      "defaultValue": "8080"
                    },
                    "NC_DB": {
                      "isOptional": false,
                      "description": "Postgres connection for NocoDB's metadata and the default base (private network)",
                      "defaultValue": "pg://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432?u=${{Postgres.POSTGRES_USER}}&p=${{Postgres.POSTGRES_PASSWORD}}&d=${{Postgres.POSTGRES_DB}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Caps NocoDB's JavaScript heap at 512 MB so it idles at about 0.5 GB instead of 0.9 GB. Raise it (e.g. 1024) for big imports or many users.",
                      "defaultValue": "--max-old-space-size=512"
                    },
                    "NC_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL NocoDB uses in links, emails and shared views. Change it after adding a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NC_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email for the super admin account, created on boot. You sign in with it.",
                      "defaultValue": "{{NC_ADMIN_EMAIL}}"
                    },
                    "NC_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Super admin password, generated at deploy time. NocoDB applies it on every boot, so change it here rather than in the app.",
                      "defaultValue": "{{NC_ADMIN_PASSWORD}}"
                    },
                    "NC_AUTH_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs sign-in tokens. Changing it signs everyone out.",
                      "defaultValue": "{{NC_AUTH_JWT_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "a05e92b5-51c8-4b8a-b36d-a945eedd5c63": {
                      "mountPath": "/usr/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "NocoDB",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-26T16:14:50.905Z",
  "generator_version": "0.1.0"
}
