{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ab6e7fbb-8bac-4377-985a-736009b5b91e",
    "slug": "tandoor-recipes",
    "name": "Tandoor Recipes",
    "description": "Deploy and host Tandoor Recipes with PostgreSQL and persistent storage.",
    "url": "https://railway.com/deploy/tandoor-recipes",
    "upstream": {
      "image": "vabene1111/recipes:2.6.13@sha256:f6c58afdea7a721d079ebd6ee5483f2c9da77dd1e709e16d60a82c218e80a451"
    }
  },
  "services": [
    {
      "name": "Tandoor Recipes",
      "source": {
        "image": "vabene1111/recipes:2.6.13@sha256:f6c58afdea7a721d079ebd6ee5483f2c9da77dd1e709e16d60a82c218e80a451"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/recipes/mediafiles",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16@sha256:d21c9778c3329587a33c4ed70da57fd69c323408cbb480d8ee7bc4291cec73ee"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Tandoor Recipes",
      "description": "Sets a deterministic UTC container and application timezone that can be changed after deployment.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "Tandoor Recipes",
      "description": "Tells Railway routing that Tandoor's bundled nginx listener serves HTTP on port 80.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DB_ENGINE",
      "service": "Tandoor Recipes",
      "description": "Selects Tandoor's recommended PostgreSQL production database backend.",
      "secret": false,
      "strategy": "default",
      "default": "django.db.backends.postgresql"
    },
    {
      "key": "SECRET_KEY",
      "service": "Tandoor Recipes",
      "description": "Generates a fresh 64-character Django signing key for sessions and cryptographic operations.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Tandoor Recipes",
      "description": "References the database name defined by the authoritative Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TANDOOR_PORT",
      "service": "Tandoor Recipes",
      "description": "Configures Tandoor's bundled nginx process to listen on port 80.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "ALLOWED_HOSTS",
      "service": "Tandoor Recipes",
      "description": "Allows the generated Railway public hostname and Railway's fixed internal readiness-probe hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ENABLE_SIGNUP",
      "service": "Tandoor Recipes",
      "description": "Disables ordinary public registration while preserving Tandoor's one-time first-user setup flow.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Tandoor Recipes",
      "description": "Connects Tandoor to Postgres over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "Tandoor Recipes",
      "description": "Uses the standard PostgreSQL listener port on Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Tandoor Recipes",
      "description": "References the dedicated database role defined by the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Tandoor Recipes",
      "description": "References the one generated Postgres password without copying or prompting for it.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CSRF_TRUSTED_ORIGINS",
      "service": "Tandoor Recipes",
      "description": "Trusts unsafe browser requests from the generated Railway HTTPS origin.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Stores the PostgreSQL cluster below the persistent volume mount.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Creates the dedicated database used by Tandoor Recipes.",
      "secret": false,
      "strategy": "default",
      "default": "tandoor"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Creates the dedicated PostgreSQL role used only by Tandoor Recipes.",
      "secret": false,
      "strategy": "default",
      "default": "tandoor"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generates the authoritative database password that Tandoor references automatically.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tandoor-recipes"
      }
    },
    "cli": "railway deploy --template tandoor-recipes",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ab6e7fbb-8bac-4377-985a-736009b5b91e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "01fee746-011a-4a19-abfd-ed5f82fece9d": {
                  "icon": "https://raw.githubusercontent.com/TandoorRecipes/recipes/51f1ccfabe61f1951c809f49ee7160effa0a9659/cookbook/static/assets/logo_color_512.png",
                  "name": "Tandoor Recipes",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "vabene1111/recipes:2.6.13@sha256:f6c58afdea7a721d079ebd6ee5483f2c9da77dd1e709e16d60a82c218e80a451"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Sets a deterministic UTC container and application timezone that can be changed after deployment.",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Tells Railway routing that Tandoor's bundled nginx listener serves HTTP on port 80.",
                      "defaultValue": "80"
                    },
                    "DB_ENGINE": {
                      "isOptional": false,
                      "description": "Selects Tandoor's recommended PostgreSQL production database backend.",
                      "defaultValue": "django.db.backends.postgresql"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generates a fresh 64-character Django signing key for sessions and cryptographic operations.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "References the database name defined by the authoritative Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "TANDOOR_PORT": {
                      "isOptional": false,
                      "description": "Configures Tandoor's bundled nginx process to listen on port 80.",
                      "defaultValue": "80"
                    },
                    "ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Allows the generated Railway public hostname and Railway's fixed internal readiness-probe hostname.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}},healthcheck.railway.app"
                    },
                    "ENABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Disables ordinary public registration while preserving Tandoor's one-time first-user setup flow.",
                      "defaultValue": "0"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Connects Tandoor to Postgres over Railway's private network.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": false,
                      "description": "Uses the standard PostgreSQL listener port on Railway's private network.",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "References the dedicated database role defined by the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "References the one generated Postgres password without copying or prompting for it.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "CSRF_TRUSTED_ORIGINS": {
                      "isOptional": false,
                      "description": "Trusts unsafe browser requests from the generated Railway HTTPS origin.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "01fee746-011a-4a19-abfd-ed5f82fece9d": {
                      "mountPath": "/opt/recipes/mediafiles"
                    }
                  }
                },
                "5b259518-1421-44bf-87c8-03407e54e51a": {
                  "icon": "https://www.postgresql.org/media/img/about/press/elephant.png",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16@sha256:d21c9778c3329587a33c4ed70da57fd69c323408cbb480d8ee7bc4291cec73ee"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Stores the PostgreSQL cluster below the persistent volume mount.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Creates the dedicated database used by Tandoor Recipes.",
                      "defaultValue": "tandoor"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Creates the dedicated PostgreSQL role used only by Tandoor Recipes.",
                      "defaultValue": "tandoor"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generates the authoritative database password that Tandoor references automatically.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "5b259518-1421-44bf-87c8-03407e54e51a": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Tandoor Recipes",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-08T22:36:43.028Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_c3a0db8896b047149996",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,FAILED"
      }
    ]
  }
}
