{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9749b3f7-ebdb-44cf-881f-7730f588f1a3",
    "slug": "frappe-builder",
    "name": "Frappe Builder",
    "description": "Visual website builder with Frappe, MariaDB and persistent assets.",
    "url": "https://railway.com/deploy/frappe-builder",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:7.4@sha256:71da9275c5f3fcb97d0fa0c8c5b36cc995327265420f17a04bfd544f458059f7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "frappe-builder",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "mariadb",
      "source": {
        "image": "mariadb:10.11@sha256:07c0aaff7396b74cb7975cba78257178d188e30f531a5db2b617c48beef13c41"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "redis",
      "description": "Private authenticated Redis/Valkey connection URL. Automatically assembled from service references.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Generated private Redis/Valkey password, or a reference to that password. Keep secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "frappe-builder",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DB_HOST",
      "service": "frappe-builder",
      "description": "Db host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "frappe-builder",
      "description": "Db port for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "REDIS_URL",
      "service": "frappe-builder",
      "description": "Private authenticated Redis/Valkey connection URL. Automatically assembled from service references.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRAPPE_APP",
      "service": "frappe-builder",
      "description": "Frappe app for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "builder"
    },
    {
      "key": "PUBLIC_URL",
      "service": "frappe-builder",
      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WEB_WORKERS",
      "service": "frappe-builder",
      "description": "Web workers for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "frappe-builder",
      "description": "Generated admin password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ALLOW_MIGRATION",
      "service": "frappe-builder",
      "description": "For an existing site, back up its database and files before allowing migration to a changed release.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DB_ROOT_PASSWORD",
      "service": "frappe-builder",
      "description": "Db root password resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRAPPE_SITE_NAME",
      "service": "frappe-builder",
      "description": "Frappe site name for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "site.localhost"
    },
    {
      "key": "TEMPLATE_RELEASE",
      "service": "frappe-builder",
      "description": "Template release for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "v1.34.0"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "frappe-builder",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/frappe-builder/Dockerfile"
    },
    {
      "key": "MARIADB_ROOT_HOST",
      "service": "mariadb",
      "description": "Mariadb root host for mariadb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "%"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "Generated mariadb root password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "frappe-builder"
      }
    },
    "cli": "railway deploy --template frappe-builder",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9749b3f7-ebdb-44cf-881f-7730f588f1a3",
            "serializedConfig": {
              "services": {
                "382f0bf3-b65c-5d6f-a1e4-b7f1ac3703a1": {
                  "name": "redis",
                  "deploy": {
                    "startCommand": "sh -c 'exec redis-server --bind 0.0.0.0 :: --appendonly yes --maxmemory-policy noeviction --requirepass \"$REDIS_PASSWORD\"'",
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7.4@sha256:71da9275c5f3fcb97d0fa0c8c5b36cc995327265420f17a04bfd544f458059f7"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private authenticated Redis/Valkey connection URL. Automatically assembled from service references.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated private Redis/Valkey password, or a reference to that password. Keep secret.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "623ea7a2-1826-5278-87cc-fb0123bbac1d": {
                      "mountPath": "/data"
                    }
                  }
                },
                "428e0688-425d-5303-baca-c9611283bba5": {
                  "name": "frappe-builder",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/frappe-builder/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/method/ping",
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/fifteen-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Db host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{mariadb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Db port for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "3306"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private authenticated Redis/Valkey connection URL. Automatically assembled from service references.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "FRAPPE_APP": {
                      "isOptional": false,
                      "description": "Frappe app for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "builder"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{frappe-builder.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WEB_WORKERS": {
                      "isOptional": false,
                      "description": "Web workers for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "2"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated admin password. Keep private and preserve with backups.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ALLOW_MIGRATION": {
                      "isOptional": false,
                      "description": "For an existing site, back up its database and files before allowing migration to a changed release.",
                      "defaultValue": "false"
                    },
                    "DB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Db root password resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "FRAPPE_SITE_NAME": {
                      "isOptional": false,
                      "description": "Frappe site name for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "site.localhost"
                    },
                    "TEMPLATE_RELEASE": {
                      "isOptional": false,
                      "description": "Template release for frappe-builder. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "v1.34.0"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/frappe-builder/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "0bc3339c-22cc-5705-8325-2e942d653a15": {
                      "mountPath": "/data"
                    }
                  }
                },
                "94b6e552-a93f-5d79-be16-b65f839c8190": {
                  "name": "mariadb",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --skip-character-set-client-handshake",
                    "requiredMountPath": "/var/lib/mysql",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:10.11@sha256:07c0aaff7396b74cb7975cba78257178d188e30f531a5db2b617c48beef13c41"
                  },
                  "variables": {
                    "MARIADB_ROOT_HOST": {
                      "isOptional": false,
                      "description": "Mariadb root host for mariadb. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "%"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated mariadb root password. Keep private and preserve with backups.",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "0ed1fdcd-07f3-5630-9ec9-95794a648445": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "frappe-builder",
      "method": "GET",
      "path": "/api/method/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T22:14:35.692Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-13T20:11:50.422Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_e4fba4a426904488bf9b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS"
      }
    ]
  }
}
