{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f4f33fc2-81c5-4236-9df0-4a38af02d022",
    "slug": "frappe-hrms",
    "name": "Frappe HRMS",
    "description": "Frappe HRMS v16 with ERPNext, MariaDB, Redis, and workers.",
    "url": "https://railway.com/deploy/frappe-hrms",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-frappe-hrms"
    }
  },
  "services": [
    {
      "name": "mariadb",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-frappe-hrms"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "hrms",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-frappe-hrms"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/frappe/frappe-bench/sites",
      "http": true
    },
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-frappe-hrms"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/redis",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "Compatibility alias for the MariaDB root password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_AUTO_UPGRADE",
      "service": "mariadb",
      "description": "Upgrade system tables when the image changes.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "Generated MariaDB root password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "hrms",
      "description": "Public nginx port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "BACKEND",
      "service": "hrms",
      "description": "Local Gunicorn upstream.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1:8000"
    },
    {
      "key": "DB_HOST",
      "service": "hrms",
      "description": "Private MariaDB host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "hrms",
      "description": "MariaDB port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "SOCKETIO",
      "service": "hrms",
      "description": "Local Socket.IO upstream.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1:9000"
    },
    {
      "key": "REDIS_URL",
      "service": "hrms",
      "description": "Private Redis queue and cache URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SITE_NAME",
      "service": "hrms",
      "description": "Internal Frappe site name.",
      "secret": false,
      "strategy": "default",
      "default": "frontend"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "hrms",
      "description": "Generated password for the Frappe Administrator account.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DB_ROOT_PASSWORD",
      "service": "hrms",
      "description": "MariaDB root password used for site provisioning.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GUNICORN_THREADS",
      "service": "hrms",
      "description": "Threads per Gunicorn worker.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "GUNICORN_TIMEOUT",
      "service": "hrms",
      "description": "Gunicorn request timeout.",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "GUNICORN_WORKERS",
      "service": "hrms",
      "description": "Gunicorn workers; increase with available memory.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PROXY_READ_TIMEOUT",
      "service": "hrms",
      "description": "Long request timeout in seconds.",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "CLIENT_MAX_BODY_SIZE",
      "service": "hrms",
      "description": "Maximum request and attachment size.",
      "secret": false,
      "strategy": "default",
      "default": "50m"
    },
    {
      "key": "FRAPPE_SITE_NAME_HEADER",
      "service": "hrms",
      "description": "Route every public hostname to the persistent site.",
      "secret": false,
      "strategy": "default",
      "default": "frontend"
    },
    {
      "key": "UPSTREAM_REAL_IP_HEADER",
      "service": "hrms",
      "description": "Forwarded client IP header.",
      "secret": false,
      "strategy": "default",
      "default": "X-Forwarded-For"
    },
    {
      "key": "UPSTREAM_REAL_IP_ADDRESS",
      "service": "hrms",
      "description": "Trusted proxy source for nginx.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "UPSTREAM_REAL_IP_RECURSIVE",
      "service": "hrms",
      "description": "nginx real-IP recursion.",
      "secret": false,
      "strategy": "default",
      "default": "off"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "frappe-hrms"
      }
    },
    "cli": "railway deploy --template frappe-hrms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f4f33fc2-81c5-4236-9df0-4a38af02d022",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "75d39b1e-2e1b-453a-8f14-4fb30d59674b": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "mariadb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-frappe-hrms",
                    "commitSha": "127d80575a21a22b1bc3039cdf31ec9feb1c944a",
                    "rootDirectory": "/mariadb"
                  },
                  "variables": {
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Compatibility alias for the MariaDB root password.",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "MARIADB_AUTO_UPGRADE": {
                      "isOptional": false,
                      "description": "Upgrade system tables when the image changes.",
                      "defaultValue": "1"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated MariaDB root password.",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "75d39b1e-2e1b-453a-8f14-4fb30d59674b": {
                      "mountPath": "/var/lib/mysql",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "b0629cb4-465a-4f8d-8546-5a494a758a2b": {
                  "icon": "https://raw.githubusercontent.com/frappe/hrms/v16.14.0/.github/frappe-hr-logo.png",
                  "name": "hrms",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/method/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-frappe-hrms",
                    "commitSha": "127d80575a21a22b1bc3039cdf31ec9feb1c944a",
                    "rootDirectory": "/hrms"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public nginx port.",
                      "defaultValue": "8080"
                    },
                    "BACKEND": {
                      "isOptional": false,
                      "description": "Local Gunicorn upstream.",
                      "defaultValue": "127.0.0.1:8000"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private MariaDB host.",
                      "defaultValue": "${{mariadb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MariaDB port.",
                      "defaultValue": "3306"
                    },
                    "SOCKETIO": {
                      "isOptional": false,
                      "description": "Local Socket.IO upstream.",
                      "defaultValue": "127.0.0.1:9000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis queue and cache URL.",
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "SITE_NAME": {
                      "isOptional": false,
                      "description": "Internal Frappe site name.",
                      "defaultValue": "frontend"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the Frappe Administrator account.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "DB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MariaDB root password used for site provisioning.",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "GUNICORN_THREADS": {
                      "isOptional": false,
                      "description": "Threads per Gunicorn worker.",
                      "defaultValue": "4"
                    },
                    "GUNICORN_TIMEOUT": {
                      "isOptional": false,
                      "description": "Gunicorn request timeout.",
                      "defaultValue": "120"
                    },
                    "GUNICORN_WORKERS": {
                      "isOptional": false,
                      "description": "Gunicorn workers; increase with available memory.",
                      "defaultValue": "1"
                    },
                    "PROXY_READ_TIMEOUT": {
                      "isOptional": false,
                      "description": "Long request timeout in seconds.",
                      "defaultValue": "120"
                    },
                    "CLIENT_MAX_BODY_SIZE": {
                      "isOptional": false,
                      "description": "Maximum request and attachment size.",
                      "defaultValue": "50m"
                    },
                    "FRAPPE_SITE_NAME_HEADER": {
                      "isOptional": false,
                      "description": "Route every public hostname to the persistent site.",
                      "defaultValue": "frontend"
                    },
                    "UPSTREAM_REAL_IP_HEADER": {
                      "isOptional": false,
                      "description": "Forwarded client IP header.",
                      "defaultValue": "X-Forwarded-For"
                    },
                    "UPSTREAM_REAL_IP_ADDRESS": {
                      "isOptional": false,
                      "description": "Trusted proxy source for nginx.",
                      "defaultValue": "127.0.0.1"
                    },
                    "UPSTREAM_REAL_IP_RECURSIVE": {
                      "isOptional": false,
                      "description": "nginx real-IP recursion.",
                      "defaultValue": "off"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b0629cb4-465a-4f8d-8546-5a494a758a2b": {
                      "mountPath": "/home/frappe/frappe-bench/sites",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "bbee0290-d88a-45b3-8c7a-0af0f48a2a37": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-frappe-hrms",
                    "commitSha": "127d80575a21a22b1bc3039cdf31ec9feb1c944a",
                    "rootDirectory": "/redis"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "bbee0290-d88a-45b3-8c7a-0af0f48a2a37": {
                      "mountPath": "/var/lib/redis",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "hrms",
      "method": "GET",
      "path": "/api/method/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T23:36:30.834Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c7aa2788db994d2ebd21",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 436,
    "typical_build_seconds": 214,
    "typical_start_seconds": 192,
    "slowest_service": "hrms"
  }
}
