{
  "manifest_version": "1.0.0",
  "template": {
    "id": "336656df-5fad-436b-b5c7-c330348b6a78",
    "slug": "frappe-crm",
    "name": "Frappe CRM",
    "description": "Sales CRM with MariaDB, persistent files, workers, and WebSockets.",
    "url": "https://railway.com/deploy/frappe-crm",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "frappe-crm",
      "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:ce66c7be32a03aabe7241d0a10993a2db827ef652a35d25727d92a832ac8ef73"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7.4@sha256:71da9275c5f3fcb97d0fa0c8c5b36cc995327265420f17a04bfd544f458059f7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "frappe-crm",
      "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-crm",
      "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-crm",
      "description": "Db port for frappe-crm. 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-crm",
      "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-crm",
      "description": "Frappe application installed at build time; do not change independently of the image.",
      "secret": false,
      "strategy": "default",
      "default": "crm"
    },
    {
      "key": "PUBLIC_URL",
      "service": "frappe-crm",
      "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-crm",
      "description": "Gunicorn worker count; tune against available memory.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "frappe-crm",
      "description": "Generated admin password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ALLOW_MIGRATION",
      "service": "frappe-crm",
      "description": "For an existing site on a different release, back up database and files before setting true for one upgrade.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DB_ROOT_PASSWORD",
      "service": "frappe-crm",
      "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-crm",
      "description": "Persistent internal site identity; keep stable when changing the public domain.",
      "secret": false,
      "strategy": "default",
      "default": "site.localhost"
    },
    {
      "key": "TEMPLATE_RELEASE",
      "service": "frappe-crm",
      "description": "Template release for frappe-crm. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "v1.83.0"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "frappe-crm",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/frappe-crm/Dockerfile"
    },
    {
      "key": "MARIADB_ROOT_HOST",
      "service": "mariadb",
      "description": "Allow the private application service to initialize its site database.",
      "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"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "frappe-crm"
      }
    },
    "cli": "railway deploy --template frappe-crm",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "336656df-5fad-436b-b5c7-c330348b6a78",
            "serializedConfig": {
              "services": {
                "3030129b-d4ef-5cbb-89da-ffcce5f0ebbe": {
                  "name": "frappe-crm",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/frappe-crm/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/method/ping",
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/remaining-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-crm. 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 application installed at build time; do not change independently of the image.",
                      "defaultValue": "crm"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{frappe-crm.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WEB_WORKERS": {
                      "isOptional": false,
                      "description": "Gunicorn worker count; tune against available memory.",
                      "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 on a different release, back up database and files before setting true for one upgrade.",
                      "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": "Persistent internal site identity; keep stable when changing the public domain.",
                      "defaultValue": "site.localhost"
                    },
                    "TEMPLATE_RELEASE": {
                      "isOptional": false,
                      "description": "Template release for frappe-crm. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "v1.83.0"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/frappe-crm/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f40144a0-16a7-5a52-9ccd-e5b85fabb402": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ac47528c-7ee2-55fc-bcb9-f11c49c86945": {
                  "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:ce66c7be32a03aabe7241d0a10993a2db827ef652a35d25727d92a832ac8ef73"
                  },
                  "variables": {
                    "MARIADB_ROOT_HOST": {
                      "isOptional": false,
                      "description": "Allow the private application service to initialize its site database.",
                      "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"
                    }
                  }
                },
                "e0bb3fd7-4332-5b98-9010-3619f41141c8": {
                  "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "frappe-crm",
      "method": "GET",
      "path": "/api/method/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T05:54:19.399Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T06:05:30.642Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_66cf1176d5184e038c41",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 441,
    "typical_build_seconds": 273,
    "typical_start_seconds": 81,
    "slowest_service": "frappe-crm"
  }
}
