{
  "manifest_version": "1.0.0",
  "template": {
    "id": "295c67b7-df0d-4d96-89f3-0a989b4a5cbe",
    "slug": "corteza-low-code",
    "name": "Corteza",
    "description": "Low-code apps, records, workflows, and reports",
    "url": "https://railway.com/deploy/corteza-low-code",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-corteza"
    }
  },
  "services": [
    {
      "name": "corteza",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-corteza"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-corteza"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "corteza",
      "description": "Corteza HTTP port used by the Railway domain.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DB_DSN",
      "service": "corteza",
      "description": "Private PostgreSQL connection string using a Railway reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DOMAIN",
      "service": "corteza",
      "description": "Generated public hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HTTP_ADDR",
      "service": "corteza",
      "description": "Corteza listener address.",
      "secret": false,
      "strategy": "default",
      "default": ":80"
    },
    {
      "key": "LOG_LEVEL",
      "service": "corteza",
      "description": "Production log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "ENVIRONMENT",
      "service": "corteza",
      "description": "Enables production safeguards.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "STORAGE_PATH",
      "service": "corteza",
      "description": "Persistent local object-storage directory.",
      "secret": false,
      "strategy": "default",
      "default": "/data/store"
    },
    {
      "key": "AUTH_BASE_URL",
      "service": "corteza",
      "description": "Absolute HTTPS authentication URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOMAIN_WEBAPP",
      "service": "corteza",
      "description": "Generated hostname for embedded webapps.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_JWT_SECRET",
      "service": "corteza",
      "description": "Stable JWT signing secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_CSRF_SECRET",
      "service": "corteza",
      "description": "Stable CSRF protection secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CORREDOR_ENABLED",
      "service": "corteza",
      "description": "External Corredor integration is not deployed.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "HTTP_API_ENABLED",
      "service": "corteza",
      "description": "Enable Corteza REST APIs.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_CSRF_ENABLED",
      "service": "corteza",
      "description": "Enable CSRF protection.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RBAC_BYPASS_ROLES",
      "service": "corteza",
      "description": "Keep the built-in super administrator bypass role.",
      "secret": false,
      "strategy": "default",
      "default": "super-admin"
    },
    {
      "key": "CORTEZA_ADMIN_EMAIL",
      "service": "corteza",
      "description": "Initial administrator email.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "HTTP_SSL_TERMINATED",
      "service": "corteza",
      "description": "Railway terminates HTTPS before Corteza.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HTTP_WEBAPP_ENABLED",
      "service": "corteza",
      "description": "Serve embedded Corteza web applications.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CORTEZA_ADMIN_PASSWORD",
      "service": "corteza",
      "description": "Generated initial administrator password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "HTTP_ENABLE_VERSION_ROUTE",
      "service": "corteza",
      "description": "Expose the version route for operational verification.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_SESSION_COOKIE_SECURE",
      "service": "corteza",
      "description": "Restrict authentication cookies to HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_EXTERNAL_COOKIE_SECRET",
      "service": "corteza",
      "description": "Stable external authentication cookie secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HTTP_ENABLE_HEALTHCHECK_ROUTE",
      "service": "corteza",
      "description": "Expose full dependency health checks.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "postgres",
      "description": "Private PostgreSQL port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Database directory below the volume mount root.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database initialized for Corteza.",
      "secret": false,
      "strategy": "default",
      "default": "corteza"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database application user.",
      "secret": false,
      "strategy": "default",
      "default": "corteza"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Generated PostgreSQL application password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "corteza-low-code"
      }
    },
    "cli": "railway deploy --template corteza-low-code",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "295c67b7-df0d-4d96-89f3-0a989b4a5cbe",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "87c67217-805e-40ce-b68f-f19849d3a5e6": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-corteza/86bee9e280e2019b194602bf28399c7e7c8abb29/assets/corteza-icon.png",
                  "name": "corteza",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-corteza",
                    "rootDirectory": "/corteza"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Corteza HTTP port used by the Railway domain.",
                      "defaultValue": "80"
                    },
                    "DB_DSN": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection string using a Railway reference.",
                      "defaultValue": "postgres://corteza:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/corteza?sslmode=disable"
                    },
                    "DOMAIN": {
                      "isOptional": false,
                      "description": "Generated public hostname.",
                      "defaultValue": "${{corteza.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HTTP_ADDR": {
                      "isOptional": false,
                      "description": "Corteza listener address.",
                      "defaultValue": ":80"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Production log level.",
                      "defaultValue": "info"
                    },
                    "ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Enables production safeguards.",
                      "defaultValue": "production"
                    },
                    "STORAGE_PATH": {
                      "isOptional": false,
                      "description": "Persistent local object-storage directory.",
                      "defaultValue": "/data/store"
                    },
                    "AUTH_BASE_URL": {
                      "isOptional": false,
                      "description": "Absolute HTTPS authentication URL.",
                      "defaultValue": "https://${{corteza.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOMAIN_WEBAPP": {
                      "isOptional": false,
                      "description": "Generated hostname for embedded webapps.",
                      "defaultValue": "${{corteza.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Stable JWT signing secret.",
                      "defaultValue": "{{AUTH_JWT_SECRET}}"
                    },
                    "AUTH_CSRF_SECRET": {
                      "isOptional": false,
                      "description": "Stable CSRF protection secret.",
                      "defaultValue": "{{AUTH_CSRF_SECRET}}"
                    },
                    "CORREDOR_ENABLED": {
                      "isOptional": false,
                      "description": "External Corredor integration is not deployed.",
                      "defaultValue": "false"
                    },
                    "HTTP_API_ENABLED": {
                      "isOptional": false,
                      "description": "Enable Corteza REST APIs.",
                      "defaultValue": "true"
                    },
                    "AUTH_CSRF_ENABLED": {
                      "isOptional": false,
                      "description": "Enable CSRF protection.",
                      "defaultValue": "true"
                    },
                    "RBAC_BYPASS_ROLES": {
                      "isOptional": false,
                      "description": "Keep the built-in super administrator bypass role.",
                      "defaultValue": "super-admin"
                    },
                    "CORTEZA_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Initial administrator email.",
                      "defaultValue": "admin@example.com"
                    },
                    "HTTP_SSL_TERMINATED": {
                      "isOptional": false,
                      "description": "Railway terminates HTTPS before Corteza.",
                      "defaultValue": "true"
                    },
                    "HTTP_WEBAPP_ENABLED": {
                      "isOptional": false,
                      "description": "Serve embedded Corteza web applications.",
                      "defaultValue": "true"
                    },
                    "CORTEZA_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated initial administrator password.",
                      "defaultValue": "{{CORTEZA_ADMIN_PASSWORD}}"
                    },
                    "HTTP_ENABLE_VERSION_ROUTE": {
                      "isOptional": false,
                      "description": "Expose the version route for operational verification.",
                      "defaultValue": "true"
                    },
                    "AUTH_SESSION_COOKIE_SECURE": {
                      "isOptional": false,
                      "description": "Restrict authentication cookies to HTTPS.",
                      "defaultValue": "true"
                    },
                    "AUTH_EXTERNAL_COOKIE_SECRET": {
                      "isOptional": false,
                      "description": "Stable external authentication cookie secret.",
                      "defaultValue": "{{AUTH_EXTERNAL_COOKIE_SECRET}}"
                    },
                    "HTTP_ENABLE_HEALTHCHECK_ROUTE": {
                      "isOptional": false,
                      "description": "Expose full dependency health checks.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "87c67217-805e-40ce-b68f-f19849d3a5e6": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "aa216660-ed81-45b4-af4a-e228821e445e": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-corteza/86bee9e280e2019b194602bf28399c7e7c8abb29/assets/corteza-icon.png",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-corteza",
                    "rootDirectory": "/postgres"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Private PostgreSQL port.",
                      "defaultValue": "5432"
                    },
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Database directory below the volume mount root.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database initialized for Corteza.",
                      "defaultValue": "corteza"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database application user.",
                      "defaultValue": "corteza"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated PostgreSQL application password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "aa216660-ed81-45b4-af4a-e228821e445e": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "corteza",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T12:09:06.815Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b0a2430dd9f741cc8c41",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 57,
    "typical_build_seconds": 20,
    "typical_start_seconds": 20,
    "slowest_service": "corteza"
  }
}
